Index: src/compiler/js-generic-lowering.cc |
diff --git a/src/compiler/js-generic-lowering.cc b/src/compiler/js-generic-lowering.cc |
index 9132a3987b506dfb231b812eba862f060f1fc056..f3863d6318561f6cbc4e063235b4a4d504256f8c 100644 |
--- a/src/compiler/js-generic-lowering.cc |
+++ b/src/compiler/js-generic-lowering.cc |
@@ -314,8 +314,8 @@ void JSGenericLowering::LowerJSToObject(Node* node) { |
void JSGenericLowering::LowerJSLoadProperty(Node* node) { |
CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); |
const LoadPropertyParameters& p = LoadPropertyParametersOf(node->op()); |
- Callable callable = |
- CodeFactory::KeyedLoadICInOptimizedCode(isolate(), UNINITIALIZED); |
+ Callable callable = CodeFactory::KeyedLoadICInOptimizedCode( |
+ isolate(), p.language_mode(), UNINITIALIZED); |
node->InsertInput(zone(), 2, jsgraph()->SmiConstant(p.feedback().index())); |
ReplaceWithStubCall(node, callable, flags); |
} |
@@ -325,7 +325,7 @@ void JSGenericLowering::LowerJSLoadNamed(Node* node) { |
CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); |
const LoadNamedParameters& p = LoadNamedParametersOf(node->op()); |
Callable callable = CodeFactory::LoadICInOptimizedCode( |
- isolate(), p.contextual_mode(), UNINITIALIZED); |
+ isolate(), p.contextual_mode(), p.language_mode(), UNINITIALIZED); |
node->InsertInput(zone(), 1, jsgraph()->HeapConstant(p.name())); |
node->InsertInput(zone(), 2, jsgraph()->SmiConstant(p.feedback().index())); |
ReplaceWithStubCall(node, callable, flags); |