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

Unified Diff: src/runtime/runtime-classes.cc

Issue 1314493006: Remove named load from builtin in default super call. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comment. Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/parser.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime/runtime-classes.cc
diff --git a/src/runtime/runtime-classes.cc b/src/runtime/runtime-classes.cc
index 8692b9b80054cd81831cf2bfa102d420da1af452..c485759a191ba7fbab6e5755293830a53f5b6108 100644
--- a/src/runtime/runtime-classes.cc
+++ b/src/runtime/runtime-classes.cc
@@ -551,14 +551,8 @@ RUNTIME_FUNCTION(Runtime_DefaultConstructorCallSuper) {
Handle<JSArray> arguments = isolate->factory()->NewJSArrayWithElements(
elements, FAST_ELEMENTS, argument_count);
- // Call $reflectConstruct(<super>, <args>, <new.target>) now.
- Handle<Object> reflect;
- ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
- isolate, reflect,
- Object::GetProperty(isolate,
- handle(isolate->native_context()->builtins()),
- "$reflectConstruct"));
- RUNTIME_ASSERT(reflect->IsJSFunction()); // Depends on --harmony-reflect.
+ // Call %reflect_construct(<super>, <args>, <new.target>) now.
+ Handle<JSFunction> reflect = isolate->reflect_construct();
Handle<Object> argv[] = {super_constructor, arguments, original_constructor};
Handle<Object> result;
ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
« no previous file with comments | « src/parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698