| Index: src/interpreter/bytecode-generator.cc
|
| diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc
|
| index 7130d5204fd453af6f4b6c0598ddc71f7a67455b..4b367e9323deaa9a4e7d0b7fe17d5c78ccb9c7f8 100644
|
| --- a/src/interpreter/bytecode-generator.cc
|
| +++ b/src/interpreter/bytecode-generator.cc
|
| @@ -2504,11 +2504,9 @@ void BytecodeGenerator::VisitCallSuper(Call* expr) {
|
| SuperCallReference* super = expr->expression()->AsSuperCallReference();
|
|
|
| // Prepare the constructor to the super call.
|
| - Register this_function = VisitForRegisterValue(super->this_function_var());
|
| - builder()->CallRuntime(Runtime::kInlineGetSuperConstructor, this_function);
|
| -
|
| - Register constructor = this_function; // Re-use dead this_function register.
|
| - builder()->StoreAccumulatorInRegister(constructor);
|
| + VisitForAccumulatorValue(super->this_function_var());
|
| + Register constructor = register_allocator()->NewRegister();
|
| + builder()->GetSuperConstructor(constructor);
|
|
|
| ZoneList<Expression*>* args = expr->arguments();
|
|
|
|
|