Index: src/x64/code-stubs-x64.cc |
diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc |
index c144797d73533eebec9b7280ceb35beefb530e93..cd6b050f78c4e340d8579130920cf535feb8ff35 100644 |
--- a/src/x64/code-stubs-x64.cc |
+++ b/src/x64/code-stubs-x64.cc |
@@ -4823,37 +4823,6 @@ void FastNewStrictArgumentsStub::Generate(MacroAssembler* masm) { |
} |
-void LoadGlobalViaContextStub::Generate(MacroAssembler* masm) { |
- Register context_reg = rsi; |
- Register slot_reg = rbx; |
- Register result_reg = rax; |
- Label slow_case; |
- |
- // Go up context chain to the script context. |
- for (int i = 0; i < depth(); ++i) { |
- __ movp(rdi, ContextOperand(context_reg, Context::PREVIOUS_INDEX)); |
- context_reg = rdi; |
- } |
- |
- // Load the PropertyCell value at the specified slot. |
- __ movp(result_reg, ContextOperand(context_reg, slot_reg)); |
- __ movp(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); |
- __ Integer32ToSmi(slot_reg, slot_reg); |
- __ PopReturnAddressTo(kScratchRegister); |
- __ Push(slot_reg); |
- __ Push(kScratchRegister); |
- __ TailCallRuntime(Runtime::kLoadGlobalViaContext); |
-} |
- |
- |
void StoreGlobalViaContextStub::Generate(MacroAssembler* masm) { |
Register context_reg = rsi; |
Register slot_reg = rbx; |