Index: src/code-factory.cc |
diff --git a/src/code-factory.cc b/src/code-factory.cc |
index 57a107e4904c264812a2e9a00804ff3ca8772c16..c64f006c27c5e769f7e35dc161b9b6f2ec82c27d 100644 |
--- a/src/code-factory.cc |
+++ b/src/code-factory.cc |
@@ -66,17 +66,18 @@ Callable CodeFactory::CallICInOptimizedCode(Isolate* isolate, int argc, |
// static |
-Callable CodeFactory::StoreIC(Isolate* isolate, StrictMode mode) { |
- return Callable(StoreIC::initialize_stub(isolate, mode), |
+Callable CodeFactory::StoreIC(Isolate* isolate, LanguageMode language_mode) { |
+ return Callable(StoreIC::initialize_stub(isolate, language_mode), |
StoreDescriptor(isolate)); |
} |
// static |
-Callable CodeFactory::KeyedStoreIC(Isolate* isolate, StrictMode mode) { |
- Handle<Code> ic = mode == SLOPPY |
- ? isolate->builtins()->KeyedStoreIC_Initialize() |
- : isolate->builtins()->KeyedStoreIC_Initialize_Strict(); |
+Callable CodeFactory::KeyedStoreIC(Isolate* isolate, |
+ LanguageMode language_mode) { |
+ Handle<Code> ic = is_strict(language_mode) |
+ ? isolate->builtins()->KeyedStoreIC_Initialize_Strict() |
+ : isolate->builtins()->KeyedStoreIC_Initialize(); |
return Callable(ic, StoreDescriptor(isolate)); |
} |