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

Unified Diff: src/ic/ic.h

Issue 2081143002: [ic] Don't compile load interceptor handlers for LoadGlobalIC. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: cleanup Created 4 years, 6 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
Index: src/ic/ic.h
diff --git a/src/ic/ic.h b/src/ic/ic.h
index 8d45eab4b2c6301e2304dfd4686d45ae73d5d559..72c47db4fc988906a8641cc3a0d621ad35defed7 100644
--- a/src/ic/ic.h
+++ b/src/ic/ic.h
@@ -328,7 +328,12 @@ class LoadGlobalIC : public LoadIC {
protected:
Handle<Code> slow_stub() const override {
- return isolate()->builtins()->LoadGlobalIC_Slow();
+ if (LoadGlobalICState::GetTypeofMode(extra_ic_state()) ==
+ NOT_INSIDE_TYPEOF) {
+ return isolate()->builtins()->LoadGlobalIC_SlowNotInsideTypeof();
+ } else {
+ return isolate()->builtins()->LoadGlobalIC_SlowInsideTypeof();
+ }
}
};
« no previous file with comments | « src/builtins.cc ('k') | src/ic/ic.cc » ('j') | test/cctest/test-api-interceptors.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698