Index: src/compiler/js-generic-lowering.cc |
diff --git a/src/compiler/js-generic-lowering.cc b/src/compiler/js-generic-lowering.cc |
index 9cbeea9fcc8e241ec78a6eae09c97e60662688dd..d2e94ce906ef0df32f8ae2513e164792d258bc33 100644 |
--- a/src/compiler/js-generic-lowering.cc |
+++ b/src/compiler/js-generic-lowering.cc |
@@ -509,8 +509,12 @@ void JSGenericLowering::LowerJSCreateLiteralRegExp(Node* node) { |
void JSGenericLowering::LowerJSCreateCatchContext(Node* node) { |
- Handle<String> name = OpParameter<Handle<String>>(node); |
- node->InsertInput(zone(), 0, jsgraph()->HeapConstant(name)); |
+ const CreateCatchContextParameters& parameters = |
+ CreateCatchContextParametersOf(node->op()); |
+ node->InsertInput(zone(), 0, |
+ jsgraph()->HeapConstant(parameters.catch_name())); |
+ node->InsertInput(zone(), 2, |
+ jsgraph()->HeapConstant(parameters.scope_info())); |
ReplaceWithRuntimeCall(node, Runtime::kPushCatchContext); |
} |