Chromium Code Reviews| Index: src/interpreter/bytecode-generator.cc |
| diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc |
| index 58f6e7288dc9c71e5c37863e4c643c0dbbfafaa0..a9e3d13e97c3b15b72123b07638cc5cb3b69421d 100644 |
| --- a/src/interpreter/bytecode-generator.cc |
| +++ b/src/interpreter/bytecode-generator.cc |
| @@ -3010,8 +3010,8 @@ void BytecodeGenerator::VisitNewLocalFunctionContext() { |
| .StoreAccumulatorInRegister(scope_info) |
| .CallRuntime(Runtime::kNewScriptContext, closure, 2); |
| } else { |
| - builder()->CallRuntime(Runtime::kNewFunctionContext, |
| - Register::function_closure(), 1); |
| + builder()->CreateFunctionContext( |
| + scope->GetScopeInfo(isolate())->ContextLength()); |
|
Michael Starzinger
2016/08/02 11:58:41
Using the {ScopeInfo} here looks dangerous. The sl
klaasb
2016/08/02 13:02:25
Fixed.
|
| } |
| execution_result()->SetResultInAccumulator(); |
| } |