Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(944)

Side by Side Diff: src/accessors.cc

Issue 911363002: Revert of new classes: implement new.target passing to superclass constructor. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/arm/builtins-arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api.h" 8 #include "src/api.h"
9 #include "src/compiler.h" 9 #include "src/compiler.h"
10 #include "src/contexts.h" 10 #include "src/contexts.h"
(...skipping 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after
1179 // 1179 //
1180 1180
1181 1181
1182 static Handle<Object> ArgumentsForInlinedFunction( 1182 static Handle<Object> ArgumentsForInlinedFunction(
1183 JavaScriptFrame* frame, 1183 JavaScriptFrame* frame,
1184 Handle<JSFunction> inlined_function, 1184 Handle<JSFunction> inlined_function,
1185 int inlined_frame_index) { 1185 int inlined_frame_index) {
1186 Isolate* isolate = inlined_function->GetIsolate(); 1186 Isolate* isolate = inlined_function->GetIsolate();
1187 Factory* factory = isolate->factory(); 1187 Factory* factory = isolate->factory();
1188 SlotRefValueBuilder slot_refs( 1188 SlotRefValueBuilder slot_refs(
1189 frame, inlined_frame_index, 1189 frame,
1190 inlined_function->shared()->internal_formal_parameter_count()); 1190 inlined_frame_index,
1191 inlined_function->shared()->formal_parameter_count());
1191 1192
1192 int args_count = slot_refs.args_length(); 1193 int args_count = slot_refs.args_length();
1193 Handle<JSObject> arguments = 1194 Handle<JSObject> arguments =
1194 factory->NewArgumentsObject(inlined_function, args_count); 1195 factory->NewArgumentsObject(inlined_function, args_count);
1195 Handle<FixedArray> array = factory->NewFixedArray(args_count); 1196 Handle<FixedArray> array = factory->NewFixedArray(args_count);
1196 slot_refs.Prepare(isolate); 1197 slot_refs.Prepare(isolate);
1197 for (int i = 0; i < args_count; ++i) { 1198 for (int i = 0; i < args_count; ++i) {
1198 Handle<Object> value = slot_refs.GetNext(isolate, 0); 1199 Handle<Object> value = slot_refs.GetNext(isolate, 0);
1199 array->set(i, *value); 1200 array->set(i, *value);
1200 } 1201 }
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
1533 info->set_data(Smi::FromInt(index)); 1534 info->set_data(Smi::FromInt(index));
1534 Handle<Object> getter = v8::FromCData(isolate, &ModuleGetExport); 1535 Handle<Object> getter = v8::FromCData(isolate, &ModuleGetExport);
1535 Handle<Object> setter = v8::FromCData(isolate, &ModuleSetExport); 1536 Handle<Object> setter = v8::FromCData(isolate, &ModuleSetExport);
1536 info->set_getter(*getter); 1537 info->set_getter(*getter);
1537 if (!(attributes & ReadOnly)) info->set_setter(*setter); 1538 if (!(attributes & ReadOnly)) info->set_setter(*setter);
1538 return info; 1539 return info;
1539 } 1540 }
1540 1541
1541 1542
1542 } } // namespace v8::internal 1543 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/arm/builtins-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698