Index: src/compiler/js-generic-lowering.cc |
diff --git a/src/compiler/js-generic-lowering.cc b/src/compiler/js-generic-lowering.cc |
index 8c5c9b98d67954ecfd84f181b95339ba8952a4f7..af225c73c676458d8dbfd8674e7fdebe0634a81e 100644 |
--- a/src/compiler/js-generic-lowering.cc |
+++ b/src/compiler/js-generic-lowering.cc |
@@ -93,7 +93,6 @@ REPLACE_COMPARE_IC_CALL(JSGreaterThanOrEqual, Token::GTE) |
void JSGenericLowering::Lower##op(Node* node) { \ |
ReplaceWithRuntimeCall(node, fun); \ |
} |
-REPLACE_RUNTIME_CALL(JSTypeOf, Runtime::kTypeof) |
REPLACE_RUNTIME_CALL(JSCreate, Runtime::kAbort) |
REPLACE_RUNTIME_CALL(JSCreateFunctionContext, Runtime::kNewFunctionContext) |
REPLACE_RUNTIME_CALL(JSCreateWithContext, Runtime::kPushWithContext) |
@@ -274,6 +273,12 @@ void JSGenericLowering::LowerJSUnaryNot(Node* node) { |
} |
+void JSGenericLowering::LowerJSTypeOf(Node* node) { |
+ Callable callable = CodeFactory::Typeof(isolate()); |
+ ReplaceWithStubCall(node, callable, CallDescriptor::kNoFlags); |
+} |
+ |
+ |
void JSGenericLowering::LowerJSToBoolean(Node* node) { |
Callable callable = |
CodeFactory::ToBoolean(isolate(), ToBooleanStub::RESULT_AS_ODDBALL); |