Index: src/compiler/js-generic-lowering.cc |
diff --git a/src/compiler/js-generic-lowering.cc b/src/compiler/js-generic-lowering.cc |
index 48864423146007ec632915d4ac1ad0658ca80c93..05f4aa89eb5e01e91190dca3cdbd4f78afed099c 100644 |
--- a/src/compiler/js-generic-lowering.cc |
+++ b/src/compiler/js-generic-lowering.cc |
@@ -111,7 +111,6 @@ REPLACE_RUNTIME_CALL(JSCreateScriptContext, Runtime::kAbort) |
#define REPLACE_UNIMPLEMENTED(op) \ |
void JSGenericLowering::Lower##op(Node* node) { UNIMPLEMENTED(); } |
-REPLACE_UNIMPLEMENTED(JSToName) |
REPLACE_UNIMPLEMENTED(JSYield) |
REPLACE_UNIMPLEMENTED(JSDebugger) |
#undef REPLACE_UNIMPLEMENTED |
@@ -241,6 +240,11 @@ void JSGenericLowering::LowerJSToString(Node* node) { |
} |
+void JSGenericLowering::LowerJSToName(Node* node) { |
+ ReplaceWithBuiltinCall(node, Builtins::TO_NAME, 1); |
+} |
+ |
+ |
void JSGenericLowering::LowerJSToObject(Node* node) { |
ReplaceWithBuiltinCall(node, Builtins::TO_OBJECT, 1); |
} |