Index: src/compiler/js-generic-lowering.cc |
diff --git a/src/compiler/js-generic-lowering.cc b/src/compiler/js-generic-lowering.cc |
index 797ddf9671cd2dbd556e19b3ebbc24075a9393db..c6f9011694edfe26fb7c5429a82b9f14043874f8 100644 |
--- a/src/compiler/js-generic-lowering.cc |
+++ b/src/compiler/js-generic-lowering.cc |
@@ -104,7 +104,6 @@ REPLACE_COMPARE_IC_CALL(JSGreaterThanOrEqual, Token::GTE) |
REPLACE_RUNTIME_CALL(JSTypeOf, Runtime::kTypeof) |
REPLACE_RUNTIME_CALL(JSCreate, Runtime::kAbort) |
REPLACE_RUNTIME_CALL(JSCreateFunctionContext, Runtime::kNewFunctionContext) |
-REPLACE_RUNTIME_CALL(JSCreateCatchContext, Runtime::kPushCatchContext) |
REPLACE_RUNTIME_CALL(JSCreateWithContext, Runtime::kPushWithContext) |
REPLACE_RUNTIME_CALL(JSCreateBlockContext, Runtime::kPushBlockContext) |
REPLACE_RUNTIME_CALL(JSCreateModuleContext, Runtime::kPushModuleContext) |
@@ -364,6 +363,13 @@ void JSGenericLowering::LowerJSStoreContext(Node* node) { |
} |
+void JSGenericLowering::LowerJSCreateCatchContext(Node* node) { |
+ Unique<String> name = OpParameter<Unique<String>>(node); |
+ PatchInsertInput(node, 0, jsgraph()->HeapConstant(name)); |
+ ReplaceWithRuntimeCall(node, Runtime::kPushCatchContext); |
+} |
+ |
+ |
void JSGenericLowering::LowerJSCallConstruct(Node* node) { |
int arity = OpParameter<int>(node); |
CallConstructStub stub(isolate(), NO_CALL_CONSTRUCTOR_FLAGS); |