Chromium Code Reviews| Index: src/compiler/js-generic-lowering.cc |
| diff --git a/src/compiler/js-generic-lowering.cc b/src/compiler/js-generic-lowering.cc |
| index d2e94ce906ef0df32f8ae2513e164792d258bc33..a137fdec2b64f9bbc14db7da4aba8484ce9e00a1 100644 |
| --- a/src/compiler/js-generic-lowering.cc |
| +++ b/src/compiler/js-generic-lowering.cc |
| @@ -49,7 +49,6 @@ Reduction JSGenericLowering::Reduce(Node* node) { |
| void JSGenericLowering::Lower##op(Node* node) { \ |
| ReplaceWithRuntimeCall(node, fun); \ |
| } |
| -REPLACE_RUNTIME_CALL(JSCreateWithContext, Runtime::kPushWithContext) |
| REPLACE_RUNTIME_CALL(JSConvertReceiver, Runtime::kConvertReceiver) |
|
Michael Starzinger
2016/09/05 12:10:39
suggestion: I know this is not part of your change
|
| #undef REPLACE_RUNTIME_CALL |
| @@ -518,6 +517,11 @@ void JSGenericLowering::LowerJSCreateCatchContext(Node* node) { |
| ReplaceWithRuntimeCall(node, Runtime::kPushCatchContext); |
| } |
| +void JSGenericLowering::LowerJSCreateWithContext(Node* node) { |
| + Handle<ScopeInfo> scope_info = OpParameter<Handle<ScopeInfo>>(node); |
| + node->InsertInput(zone(), 1, jsgraph()->HeapConstant(scope_info)); |
| + ReplaceWithRuntimeCall(node, Runtime::kPushWithContext); |
| +} |
| void JSGenericLowering::LowerJSCreateBlockContext(Node* node) { |
| Handle<ScopeInfo> scope_info = OpParameter<Handle<ScopeInfo>>(node); |