Index: src/ia32/code-stubs-ia32.cc |
diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc |
index 92e9afb585504c431b06e09ab10e402175943bd4..b9dd496606c071fb7f5a1062daba752f4c36a0e6 100644 |
--- a/src/ia32/code-stubs-ia32.cc |
+++ b/src/ia32/code-stubs-ia32.cc |
@@ -5118,37 +5118,6 @@ void FastNewStrictArgumentsStub::Generate(MacroAssembler* masm) { |
} |
-void LoadGlobalViaContextStub::Generate(MacroAssembler* masm) { |
- Register context_reg = esi; |
- Register slot_reg = ebx; |
- Register result_reg = eax; |
- Label slow_case; |
- |
- // Go up context chain to the script context. |
- for (int i = 0; i < depth(); ++i) { |
- __ mov(result_reg, ContextOperand(context_reg, Context::PREVIOUS_INDEX)); |
- context_reg = result_reg; |
- } |
- |
- // Load the PropertyCell value at the specified slot. |
- __ mov(result_reg, ContextOperand(context_reg, slot_reg)); |
- __ mov(result_reg, FieldOperand(result_reg, PropertyCell::kValueOffset)); |
- |
- // Check that value is not the_hole. |
- __ CompareRoot(result_reg, Heap::kTheHoleValueRootIndex); |
- __ j(equal, &slow_case, Label::kNear); |
- __ Ret(); |
- |
- // Fallback to the runtime. |
- __ bind(&slow_case); |
- __ SmiTag(slot_reg); |
- __ Pop(result_reg); // Pop return address. |
- __ Push(slot_reg); |
- __ Push(result_reg); // Push return address. |
- __ TailCallRuntime(Runtime::kLoadGlobalViaContext); |
-} |
- |
- |
void StoreGlobalViaContextStub::Generate(MacroAssembler* masm) { |
Register context_reg = esi; |
Register slot_reg = ebx; |