Index: src/full-codegen/arm/full-codegen-arm.cc |
diff --git a/src/full-codegen/arm/full-codegen-arm.cc b/src/full-codegen/arm/full-codegen-arm.cc |
index 605cc6c6d243237ed060d81bea276f804e2227b8..6a69684f20c22a9cb7e9028a0ba43193b4eae53f 100644 |
--- a/src/full-codegen/arm/full-codegen-arm.cc |
+++ b/src/full-codegen/arm/full-codegen-arm.cc |
@@ -1294,12 +1294,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()); |
- __ mov(LoadDescriptor::NameRegister(), Operand(var->name())); |
- __ mov(LoadDescriptor::SlotRegister(), |
+#endif |
+ __ mov(LoadGlobalDescriptor::SlotRegister(), |
Operand(SmiFromSlot(proxy->VariableFeedbackSlot()))); |
CallLoadGlobalIC(typeof_mode); |
} |