Commit 7f9685c3 authored by mstarzinger's avatar mstarzinger Committed by Commit bot

Remove named load from builtin in default super call.

R=yangguo@chromium.org

Review URL: https://codereview.chromium.org/1314493006

Cr-Commit-Position: refs/heads/master@{#30389}
parent 77394fa0
......@@ -6060,7 +6060,7 @@ Expression* Parser::SpreadCall(Expression* function,
int pos) {
if (function->IsSuperCallReference()) {
// Super calls
// %ReflectConstruct(%GetPrototype(<this-function>), args, new.target))
// %reflect_construct(%GetPrototype(<this-function>), args, new.target))
ZoneList<Expression*>* tmp = new (zone()) ZoneList<Expression*>(1, zone());
tmp->Add(function->AsSuperCallReference()->this_function_var(), zone());
Expression* get_prototype =
......
......@@ -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(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment