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

Unified Diff: src/builtins/builtins-handler.cc

Issue 2514453002: [ic] Pass name to Runtime::kLoadGlobal_Miss and _Slow. (Closed)
Patch Set: Created 4 years, 1 month 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 | « no previous file | src/ic/accessor-assembler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/builtins/builtins-handler.cc
diff --git a/src/builtins/builtins-handler.cc b/src/builtins/builtins-handler.cc
index 1e6948dda0725fd3edce41fa6dce0849149170f1..37d0583ce0348c0e3afea7b5eb7e3cf62925feab 100644
--- a/src/builtins/builtins-handler.cc
+++ b/src/builtins/builtins-handler.cc
@@ -55,11 +55,13 @@ void Builtins::Generate_LoadGlobalIC_Miss(compiler::CodeAssemblerState* state) {
typedef LoadGlobalWithVectorDescriptor Descriptor;
CodeStubAssembler assembler(state);
+ Node* name = assembler.Parameter(Descriptor::kName);
Node* slot = assembler.Parameter(Descriptor::kSlot);
Node* vector = assembler.Parameter(Descriptor::kVector);
Node* context = assembler.Parameter(Descriptor::kContext);
- assembler.TailCallRuntime(Runtime::kLoadGlobalIC_Miss, context, slot, vector);
+ assembler.TailCallRuntime(Runtime::kLoadGlobalIC_Miss, context, name, slot,
+ vector);
}
void Builtins::Generate_LoadGlobalIC_Slow(compiler::CodeAssemblerState* state) {
@@ -67,11 +69,10 @@ void Builtins::Generate_LoadGlobalIC_Slow(compiler::CodeAssemblerState* state) {
typedef LoadGlobalWithVectorDescriptor Descriptor;
CodeStubAssembler assembler(state);
- Node* slot = assembler.Parameter(Descriptor::kSlot);
- Node* vector = assembler.Parameter(Descriptor::kVector);
+ Node* name = assembler.Parameter(Descriptor::kName);
Node* context = assembler.Parameter(Descriptor::kContext);
- assembler.TailCallRuntime(Runtime::kLoadGlobalIC_Slow, context, slot, vector);
+ assembler.TailCallRuntime(Runtime::kLoadGlobalIC_Slow, context, name);
}
void Builtins::Generate_LoadIC_Getter_ForDeopt(MacroAssembler* masm) {
« no previous file with comments | « no previous file | src/ic/accessor-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698