Reviewers: Yang,

Description:
Remove named load from builtin in default super call.

[email protected]

Please review this at https://codereview.chromium.org/1314493006/

Base URL: https://chromium.googlesource.com/v8/v8.git@master

Affected files (+1, -7 lines):
  M src/runtime/runtime-classes.cc


Index: src/runtime/runtime-classes.cc
diff --git a/src/runtime/runtime-classes.cc b/src/runtime/runtime-classes.cc
index 8692b9b80054cd81831cf2bfa102d420da1af452..80440dc3797e90b6936c4d8baa804fcc37371728 100644
--- a/src/runtime/runtime-classes.cc
+++ b/src/runtime/runtime-classes.cc
@@ -552,13 +552,7 @@ RUNTIME_FUNCTION(Runtime_DefaultConstructorCallSuper) {
       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. + Handle<JSFunction> reflect(isolate->native_context()->reflect_construct()); Handle<Object> argv[] = {super_constructor, arguments, original_constructor};
   Handle<Object> result;
   ASSIGN_RETURN_FAILURE_ON_EXCEPTION(


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to