Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(714)

Unified Diff: src/ic/ic.h

Issue 2144643004: [builtins] Turn StoreIC_Miss and StoreIC_Slow builtins to TurboFan code stubs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/ic/ia32/handler-compiler-ia32.cc ('k') | src/ic/ic.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « src/ic/ia32/handler-compiler-ia32.cc ('k') | src/ic/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698