Index: src/full-codegen/x64/full-codegen-x64.cc |
diff --git a/src/full-codegen/x64/full-codegen-x64.cc b/src/full-codegen/x64/full-codegen-x64.cc |
index c64498fe9a105d8de59dac6429fb15dcb824f25c..150b2456510b7a1d4335769dd500efe5f31561f7 100644 |
--- a/src/full-codegen/x64/full-codegen-x64.cc |
+++ b/src/full-codegen/x64/full-codegen-x64.cc |
@@ -1246,12 +1246,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)); |
- __ Move(LoadDescriptor::NameRegister(), var->name()); |
- __ LoadGlobalObject(LoadDescriptor::ReceiverRegister()); |
- __ Move(LoadDescriptor::SlotRegister(), |
+#endif |
+ __ Move(LoadGlobalDescriptor::SlotRegister(), |
SmiFromSlot(proxy->VariableFeedbackSlot())); |
CallLoadGlobalIC(typeof_mode); |
} |