Index: src/full-codegen/arm64/full-codegen-arm64.cc |
diff --git a/src/full-codegen/arm64/full-codegen-arm64.cc b/src/full-codegen/arm64/full-codegen-arm64.cc |
index e444fe5a7065733c4bd1e2d9365d267670ebdbc5..57d8eb1204acc39911b3487f80902516ccbc9cf8 100644 |
--- a/src/full-codegen/arm64/full-codegen-arm64.cc |
+++ b/src/full-codegen/arm64/full-codegen-arm64.cc |
@@ -1278,12 +1278,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(), |
SmiFromSlot(proxy->VariableFeedbackSlot())); |
CallLoadGlobalIC(typeof_mode); |
} |