Index: src/compiler/js-generic-lowering.cc |
diff --git a/src/compiler/js-generic-lowering.cc b/src/compiler/js-generic-lowering.cc |
index e823b35f57c1df43dc21fb2c34fe36d4fb7b269d..1e7ef6717a990af11d58faaef4b026c40a80b8d5 100644 |
--- a/src/compiler/js-generic-lowering.cc |
+++ b/src/compiler/js-generic-lowering.cc |
@@ -307,7 +307,9 @@ void JSGenericLowering::LowerJSToName(Node* node) { |
void JSGenericLowering::LowerJSToObject(Node* node) { |
- ReplaceWithBuiltinCall(node, Builtins::TO_OBJECT, 1); |
+ CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); |
+ Callable callable = CodeFactory::ToObject(isolate()); |
+ ReplaceWithStubCall(node, callable, flags); |
} |