| Index: src/full-codegen/mips/full-codegen-mips.cc
|
| diff --git a/src/full-codegen/mips/full-codegen-mips.cc b/src/full-codegen/mips/full-codegen-mips.cc
|
| index aac90a32bbc94d70d4819f2929587805d52b748d..37187e5d5f4f3bd240ca5291e5d99be94e8a2fff 100644
|
| --- a/src/full-codegen/mips/full-codegen-mips.cc
|
| +++ b/src/full-codegen/mips/full-codegen-mips.cc
|
| @@ -1288,12 +1288,12 @@ void FullCodeGenerator::EmitDynamicLookupFastCase(VariableProxy* proxy,
|
|
|
| void FullCodeGenerator::EmitGlobalVariableLoad(VariableProxy* proxy,
|
| TypeofMode typeof_mode) {
|
| +#ifdef DEBUG
|
| Variable* var = proxy->var();
|
| DCHECK(var->IsUnallocatedOrGlobalSlot() ||
|
| (var->IsLookupSlot() && var->mode() == DYNAMIC_GLOBAL));
|
| - __ LoadGlobalObject(LoadDescriptor::ReceiverRegister());
|
| - __ li(LoadDescriptor::NameRegister(), Operand(var->name()));
|
| - __ li(LoadDescriptor::SlotRegister(),
|
| +#endif
|
| + __ li(LoadGlobalDescriptor::SlotRegister(),
|
| Operand(SmiFromSlot(proxy->VariableFeedbackSlot())));
|
| CallLoadGlobalIC(typeof_mode);
|
| }
|
|
|