Index: src/arm/code-stubs-arm.cc |
diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc |
index bf4d4a52a9f9cba70f19f52001fbb7a93a6d1095..3a306c762964fe2f0491c5382bfede24866749a5 100644 |
--- a/src/arm/code-stubs-arm.cc |
+++ b/src/arm/code-stubs-arm.cc |
@@ -4907,33 +4907,6 @@ void FastNewStrictArgumentsStub::Generate(MacroAssembler* masm) { |
} |
-void LoadGlobalViaContextStub::Generate(MacroAssembler* masm) { |
- Register context = cp; |
- Register result = r0; |
- Register slot = r2; |
- |
- // 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. |
- __ CompareRoot(result, Heap::kTheHoleValueRootIndex); |
- __ Ret(ne); |
- |
- // Fallback to runtime. |
- __ SmiTag(slot); |
- __ push(slot); |
- __ TailCallRuntime(Runtime::kLoadGlobalViaContext); |
-} |
- |
- |
void StoreGlobalViaContextStub::Generate(MacroAssembler* masm) { |
Register value = r0; |
Register slot = r2; |