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

Unified Diff: src/builtins.cc

Issue 1912633002: [ic] Split LoadIC into LoadGlobalIC and LoadIC. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebasing 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
« no previous file with comments | « src/builtins.h ('k') | src/code-factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/builtins.cc
diff --git a/src/builtins.cc b/src/builtins.cc
index dcbeb2a6287eb8d3f09d30f6737e7aad9850b8a5..dca3d933fa70a6c5944d6451259fc3d40c536830 100644
--- a/src/builtins.cc
+++ b/src/builtins.cc
@@ -5366,6 +5366,18 @@ void Generate_LoadIC_Miss(CodeStubAssembler* assembler) {
slot, vector);
}
+void Generate_LoadGlobalIC_Miss(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::kLoadGlobalIC_Miss, context, name, slot,
+ vector);
+}
+
void Generate_LoadIC_Normal(MacroAssembler* masm) {
LoadIC::GenerateNormal(masm);
}
@@ -5386,6 +5398,17 @@ void Generate_LoadIC_Slow(CodeStubAssembler* assembler) {
assembler->TailCallRuntime(Runtime::kGetProperty, context, receiver, name);
}
+void Generate_LoadGlobalIC_Slow(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::kGetGlobal, context, name);
+}
+
void Generate_KeyedLoadIC_Slow(MacroAssembler* masm) {
KeyedLoadIC::GenerateRuntimeGetProperty(masm);
}
« no previous file with comments | « src/builtins.h ('k') | src/code-factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698