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); |
} |