Index: src/s390/code-stubs-s390.cc |
diff --git a/src/s390/code-stubs-s390.cc b/src/s390/code-stubs-s390.cc |
index dffc6cab79c01293732d51ba3d3f4f3811e571d5..9d01ddf6198d1b48c0b0ea3954cf122e44c4c43b 100644 |
--- a/src/s390/code-stubs-s390.cc |
+++ b/src/s390/code-stubs-s390.cc |
@@ -5028,36 +5028,6 @@ void FastNewStrictArgumentsStub::Generate(MacroAssembler* masm) { |
__ TailCallRuntime(Runtime::kNewStrictArguments); |
} |
-void LoadGlobalViaContextStub::Generate(MacroAssembler* masm) { |
- Register context = cp; |
- Register result = r2; |
- Register slot = r4; |
- |
- // Go up the context chain to the script context. |
- for (int i = 0; i < depth(); ++i) { |
- __ LoadP(result, ContextMemOperand(context, Context::PREVIOUS_INDEX)); |
- context = result; |
- } |
- |
- // Load the PropertyCell value at the specified slot. |
- __ ShiftLeftP(r0, slot, Operand(kPointerSizeLog2)); |
- __ AddP(result, context, r0); |
- __ LoadP(result, ContextMemOperand(result)); |
- __ LoadP(result, FieldMemOperand(result, PropertyCell::kValueOffset)); |
- |
- // If the result is not the_hole, return. Otherwise, handle in the runtime. |
- __ CompareRoot(result, Heap::kTheHoleValueRootIndex); |
- Label runtime; |
- __ beq(&runtime); |
- __ Ret(); |
- __ bind(&runtime); |
- |
- // Fallback to runtime. |
- __ SmiTag(slot); |
- __ Push(slot); |
- __ TailCallRuntime(Runtime::kLoadGlobalViaContext); |
-} |
- |
void StoreGlobalViaContextStub::Generate(MacroAssembler* masm) { |
Register value = r2; |
Register slot = r4; |