| Index: src/mips/lithium-codegen-mips.cc
|
| diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc
|
| index 9d004ca7a00c3812e68b92e0d5712268962a03e8..2703bdbe1999c9dc6df06eff856571e805f02615 100644
|
| --- a/src/mips/lithium-codegen-mips.cc
|
| +++ b/src/mips/lithium-codegen-mips.cc
|
| @@ -2895,6 +2895,22 @@ void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) {
|
| }
|
|
|
|
|
| +void LCodeGen::DoLoadGlobalViaContext(LLoadGlobalViaContext* instr) {
|
| + DCHECK(ToRegister(instr->context()).is(cp));
|
| + DCHECK(ToRegister(instr->result()).is(v0));
|
| +
|
| + __ li(LoadGlobalViaContextDescriptor::DepthRegister(),
|
| + Operand(Smi::FromInt(instr->depth())));
|
| + __ li(LoadGlobalViaContextDescriptor::SlotRegister(),
|
| + Operand(Smi::FromInt(instr->slot_index())));
|
| + __ li(LoadGlobalViaContextDescriptor::NameRegister(), Operand(instr->name()));
|
| +
|
| + Handle<Code> stub =
|
| + CodeFactory::LoadGlobalViaContext(isolate(), instr->depth()).code();
|
| + CallCode(stub, RelocInfo::CODE_TARGET, instr);
|
| +}
|
| +
|
| +
|
| void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) {
|
| Register context = ToRegister(instr->context());
|
| Register result = ToRegister(instr->result());
|
| @@ -4188,6 +4204,25 @@ void LCodeGen::DoStoreNamedGeneric(LStoreNamedGeneric* instr) {
|
| }
|
|
|
|
|
| +void LCodeGen::DoStoreGlobalViaContext(LStoreGlobalViaContext* instr) {
|
| + DCHECK(ToRegister(instr->context()).is(cp));
|
| + DCHECK(ToRegister(instr->value())
|
| + .is(StoreGlobalViaContextDescriptor::ValueRegister()));
|
| +
|
| + __ li(StoreGlobalViaContextDescriptor::DepthRegister(),
|
| + Operand(Smi::FromInt(instr->depth())));
|
| + __ li(StoreGlobalViaContextDescriptor::SlotRegister(),
|
| + Operand(Smi::FromInt(instr->slot_index())));
|
| + __ li(StoreGlobalViaContextDescriptor::NameRegister(),
|
| + Operand(instr->name()));
|
| +
|
| + Handle<Code> stub =
|
| + CodeFactory::StoreGlobalViaContext(isolate(), instr->depth(),
|
| + instr->language_mode()).code();
|
| + CallCode(stub, RelocInfo::CODE_TARGET, instr);
|
| +}
|
| +
|
| +
|
| void LCodeGen::DoBoundsCheck(LBoundsCheck* instr) {
|
| Condition cc = instr->hydrogen()->allow_equality() ? hi : hs;
|
| Operand operand(0);
|
|
|