Index: src/arm64/code-stubs-arm64.cc |
diff --git a/src/arm64/code-stubs-arm64.cc b/src/arm64/code-stubs-arm64.cc |
index cf4cd72e663021e50ce1a9e4b63eb7307adfce2b..70d30a1fdf5f20221ce9067870066f1a9a2b4289 100644 |
--- a/src/arm64/code-stubs-arm64.cc |
+++ b/src/arm64/code-stubs-arm64.cc |
@@ -5259,35 +5259,6 @@ void FastNewStrictArgumentsStub::Generate(MacroAssembler* masm) { |
} |
-void LoadGlobalViaContextStub::Generate(MacroAssembler* masm) { |
- Register context = cp; |
- Register result = x0; |
- Register slot = x2; |
- Label slow_case; |
- |
- // Go up the context chain to the script context. |
- for (int i = 0; i < depth(); ++i) { |
- __ Ldr(result, ContextMemOperand(context, Context::PREVIOUS_INDEX)); |
- context = result; |
- } |
- |
- // Load the PropertyCell value at the specified slot. |
- __ Add(result, context, Operand(slot, LSL, kPointerSizeLog2)); |
- __ Ldr(result, ContextMemOperand(result)); |
- __ Ldr(result, FieldMemOperand(result, PropertyCell::kValueOffset)); |
- |
- // If the result is not the_hole, return. Otherwise, handle in the runtime. |
- __ JumpIfRoot(result, Heap::kTheHoleValueRootIndex, &slow_case); |
- __ Ret(); |
- |
- // Fallback to runtime. |
- __ Bind(&slow_case); |
- __ SmiTag(slot); |
- __ Push(slot); |
- __ TailCallRuntime(Runtime::kLoadGlobalViaContext); |
-} |
- |
- |
void StoreGlobalViaContextStub::Generate(MacroAssembler* masm) { |
Register context = cp; |
Register value = x0; |