Index: src/compiler/js-generic-lowering.cc |
diff --git a/src/compiler/js-generic-lowering.cc b/src/compiler/js-generic-lowering.cc |
index 98b915c11d4984edbf36d6b7c55ae9399e112751..1f12579ec7cc7ec9506d38c577b8c610a61e0749 100644 |
--- a/src/compiler/js-generic-lowering.cc |
+++ b/src/compiler/js-generic-lowering.cc |
@@ -106,6 +106,13 @@ REPLACE_STUB_CALL(Equal) |
REPLACE_STUB_CALL(NotEqual) |
REPLACE_STUB_CALL(StrictEqual) |
REPLACE_STUB_CALL(StrictNotEqual) |
+REPLACE_STUB_CALL(ToBoolean) |
+REPLACE_STUB_CALL(ToInteger) |
+REPLACE_STUB_CALL(ToLength) |
+REPLACE_STUB_CALL(ToNumber) |
+REPLACE_STUB_CALL(ToName) |
+REPLACE_STUB_CALL(ToObject) |
+REPLACE_STUB_CALL(ToString) |
#undef REPLACE_STUB_CALL |
void JSGenericLowering::ReplaceWithStubCall(Node* node, Callable callable, |
@@ -144,41 +151,6 @@ void JSGenericLowering::LowerJSTypeOf(Node* node) { |
} |
-void JSGenericLowering::LowerJSToBoolean(Node* node) { |
- CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); |
- Callable callable = CodeFactory::ToBoolean(isolate()); |
- ReplaceWithStubCall(node, callable, flags); |
-} |
- |
- |
-void JSGenericLowering::LowerJSToNumber(Node* node) { |
- CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); |
- Callable callable = CodeFactory::ToNumber(isolate()); |
- ReplaceWithStubCall(node, callable, flags); |
-} |
- |
- |
-void JSGenericLowering::LowerJSToString(Node* node) { |
- CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); |
- Callable callable = CodeFactory::ToString(isolate()); |
- ReplaceWithStubCall(node, callable, flags); |
-} |
- |
- |
-void JSGenericLowering::LowerJSToName(Node* node) { |
- CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); |
- Callable callable = CodeFactory::ToName(isolate()); |
- ReplaceWithStubCall(node, callable, flags); |
-} |
- |
- |
-void JSGenericLowering::LowerJSToObject(Node* node) { |
- CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); |
- Callable callable = CodeFactory::ToObject(isolate()); |
- ReplaceWithStubCall(node, callable, flags); |
-} |
- |
- |
void JSGenericLowering::LowerJSLoadProperty(Node* node) { |
Node* closure = NodeProperties::GetValueInput(node, 2); |
Node* effect = NodeProperties::GetEffectInput(node); |