| Index: src/x87/lithium-codegen-x87.cc
|
| diff --git a/src/x87/lithium-codegen-x87.cc b/src/x87/lithium-codegen-x87.cc
|
| index a77771d1962bd257673d645e5b2b212754df13a9..41612905fd0ed25836d13c032308fd7dc13d4547 100644
|
| --- a/src/x87/lithium-codegen-x87.cc
|
| +++ b/src/x87/lithium-codegen-x87.cc
|
| @@ -3142,6 +3142,22 @@ void LCodeGen::DoLoadGlobalGeneric(LLoadGlobalGeneric* instr) {
|
| }
|
|
|
|
|
| +void LCodeGen::DoLoadGlobalViaContext(LLoadGlobalViaContext* instr) {
|
| + DCHECK(ToRegister(instr->context()).is(esi));
|
| + DCHECK(ToRegister(instr->result()).is(eax));
|
| +
|
| + __ mov(LoadGlobalViaContextDescriptor::DepthRegister(),
|
| + Immediate(Smi::FromInt(instr->depth())));
|
| + __ mov(LoadGlobalViaContextDescriptor::SlotRegister(),
|
| + Immediate(Smi::FromInt(instr->slot_index())));
|
| + __ mov(LoadGlobalViaContextDescriptor::NameRegister(), 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());
|
| @@ -4521,6 +4537,24 @@ void LCodeGen::DoStoreNamedGeneric(LStoreNamedGeneric* instr) {
|
| }
|
|
|
|
|
| +void LCodeGen::DoStoreGlobalViaContext(LStoreGlobalViaContext* instr) {
|
| + DCHECK(ToRegister(instr->context()).is(esi));
|
| + DCHECK(ToRegister(instr->value())
|
| + .is(StoreGlobalViaContextDescriptor::ValueRegister()));
|
| +
|
| + __ mov(StoreGlobalViaContextDescriptor::DepthRegister(),
|
| + Immediate(Smi::FromInt(instr->depth())));
|
| + __ mov(StoreGlobalViaContextDescriptor::SlotRegister(),
|
| + Immediate(Smi::FromInt(instr->slot_index())));
|
| + __ mov(StoreGlobalViaContextDescriptor::NameRegister(), 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() ? above : above_equal;
|
| if (instr->index()->IsConstantOperand()) {
|
|
|