Index: src/full-codegen/x87/full-codegen-x87.cc |
diff --git a/src/full-codegen/x87/full-codegen-x87.cc b/src/full-codegen/x87/full-codegen-x87.cc |
index 3ece5b5d9944a37996ee74b574ee034e8ff18043..ce86aeeb47a9d72c674f89501d13276f4bf32feb 100644 |
--- a/src/full-codegen/x87/full-codegen-x87.cc |
+++ b/src/full-codegen/x87/full-codegen-x87.cc |
@@ -1213,15 +1213,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)); |
- __ mov(LoadDescriptor::ReceiverRegister(), NativeContextOperand()); |
- __ mov(LoadDescriptor::ReceiverRegister(), |
- ContextOperand(LoadDescriptor::ReceiverRegister(), |
- Context::EXTENSION_INDEX)); |
- __ mov(LoadDescriptor::NameRegister(), var->name()); |
- __ mov(LoadDescriptor::SlotRegister(), |
+#endif |
+ __ mov(LoadGlobalDescriptor::SlotRegister(), |
Immediate(SmiFromSlot(proxy->VariableFeedbackSlot()))); |
CallLoadGlobalIC(typeof_mode); |
} |