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

Unified Diff: src/builtins.cc

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/builtins.cc
diff --git a/src/builtins.cc b/src/builtins.cc
index 91ea49b4ca0da1b7d05a4dcc040e6cf18fae6917..984b7093fce182fa7e7699879232d3df0676a762 100644
--- a/src/builtins.cc
+++ b/src/builtins.cc
@@ -5495,7 +5495,7 @@ void Generate_LoadIC_Slow(CodeStubAssembler* assembler) {
assembler->TailCallRuntime(Runtime::kGetProperty, context, receiver, name);
}
-void Generate_LoadGlobalIC_Slow(CodeStubAssembler* assembler) {
+void Generate_LoadGlobalIC_SlowInsideTypeof(CodeStubAssembler* assembler) {
typedef compiler::Node Node;
Node* name = assembler->Parameter(0);
@@ -5503,7 +5503,18 @@ void Generate_LoadGlobalIC_Slow(CodeStubAssembler* assembler) {
// Node* vector = assembler->Parameter(2);
Node* context = assembler->Parameter(3);
- assembler->TailCallRuntime(Runtime::kGetGlobal, context, name);
+ assembler->TailCallRuntime(Runtime::kGetGlobalInsideTypeof, context, name);
+}
+
+void Generate_LoadGlobalIC_SlowNotInsideTypeof(CodeStubAssembler* assembler) {
+ typedef compiler::Node Node;
+
+ Node* name = assembler->Parameter(0);
+ // Node* slot = assembler->Parameter(1);
+ // Node* vector = assembler->Parameter(2);
+ Node* context = assembler->Parameter(3);
+
+ assembler->TailCallRuntime(Runtime::kGetGlobalNotInsideTypeof, context, name);
}
void Generate_KeyedLoadIC_Slow(MacroAssembler* masm) {
« no previous file with comments | « src/builtins.h ('k') | src/ic/ic.h » ('j') | test/cctest/test-api-interceptors.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698