Index: src/ic/ic.h |
diff --git a/src/ic/ic.h b/src/ic/ic.h |
index 72c47db4fc988906a8641cc3a0d621ad35defed7..625671bb81f2be5b8ce3bd687d50188cdae70108 100644 |
--- a/src/ic/ic.h |
+++ b/src/ic/ic.h |
@@ -401,7 +401,15 @@ class StoreIC : public IC { |
protected: |
// Stub accessors. |
Handle<Code> slow_stub() const { |
- return isolate()->builtins()->StoreIC_Slow(); |
+ switch (language_mode()) { |
+ case SLOPPY: |
+ return isolate()->builtins()->StoreIC_SlowSloppy(); |
+ case STRICT: |
+ return isolate()->builtins()->StoreIC_SlowStrict(); |
+ default: |
+ UNREACHABLE(); |
+ return Handle<Code>(); |
+ } |
} |
// Update the inline cache and the global stub cache based on the |