Index: src/x87/code-stubs-x87.cc |
diff --git a/src/x87/code-stubs-x87.cc b/src/x87/code-stubs-x87.cc |
index d2c8505605051ae6a5aba925056435f811290002..0e52a02be98d7ca9b66a2aa62b988ff85e30f377 100644 |
--- a/src/x87/code-stubs-x87.cc |
+++ b/src/x87/code-stubs-x87.cc |
@@ -4796,37 +4796,6 @@ void FastNewStrictArgumentsStub::Generate(MacroAssembler* masm) { |
__ jmp(&done_allocate); |
} |
-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; |