Index: src/compiler/js-generic-lowering.cc |
diff --git a/src/compiler/js-generic-lowering.cc b/src/compiler/js-generic-lowering.cc |
index 15ce908a1ce68d16870fb3ce040cfb2cd9c163bb..f40e71c6d0831623d4a1dadfd861cf317a70edcd 100644 |
--- a/src/compiler/js-generic-lowering.cc |
+++ b/src/compiler/js-generic-lowering.cc |
@@ -267,7 +267,9 @@ void JSGenericLowering::LowerJSToString(Node* node) { |
void JSGenericLowering::LowerJSToName(Node* node) { |
- ReplaceWithRuntimeCall(node, Runtime::kToName); |
+ CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); |
+ Callable callable = CodeFactory::ToName(isolate()); |
+ ReplaceWithStubCall(node, callable, flags); |
} |