| Index: src/mips/code-stubs-mips.cc
|
| diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc
|
| index e24f805caff2e4b74d3dadb091e5ce941d37341f..9cea2ebd009c8441e155e9725da3bd44001a0071 100644
|
| --- a/src/mips/code-stubs-mips.cc
|
| +++ b/src/mips/code-stubs-mips.cc
|
| @@ -5098,36 +5098,6 @@ void FastNewStrictArgumentsStub::Generate(MacroAssembler* masm) {
|
| }
|
|
|
|
|
| -void LoadGlobalViaContextStub::Generate(MacroAssembler* masm) {
|
| - Register context_reg = cp;
|
| - Register slot_reg = a2;
|
| - Register result_reg = v0;
|
| - Label slow_case;
|
| -
|
| - // Go up context chain to the script context.
|
| - for (int i = 0; i < depth(); ++i) {
|
| - __ lw(result_reg, ContextMemOperand(context_reg, Context::PREVIOUS_INDEX));
|
| - context_reg = result_reg;
|
| - }
|
| -
|
| - // Load the PropertyCell value at the specified slot.
|
| - __ Lsa(at, context_reg, slot_reg, kPointerSizeLog2);
|
| - __ lw(result_reg, ContextMemOperand(at, 0));
|
| - __ lw(result_reg, FieldMemOperand(result_reg, PropertyCell::kValueOffset));
|
| -
|
| - // Check that value is not the_hole.
|
| - __ LoadRoot(at, Heap::kTheHoleValueRootIndex);
|
| - __ Branch(&slow_case, eq, result_reg, Operand(at));
|
| - __ Ret();
|
| -
|
| - // Fallback to the runtime.
|
| - __ bind(&slow_case);
|
| - __ SmiTag(slot_reg);
|
| - __ Push(slot_reg);
|
| - __ TailCallRuntime(Runtime::kLoadGlobalViaContext);
|
| -}
|
| -
|
| -
|
| void StoreGlobalViaContextStub::Generate(MacroAssembler* masm) {
|
| Register context_reg = cp;
|
| Register slot_reg = a2;
|
|
|