Index: src/full-codegen/s390/full-codegen-s390.cc |
diff --git a/src/full-codegen/s390/full-codegen-s390.cc b/src/full-codegen/s390/full-codegen-s390.cc |
index b2256fa94eb9b24973549f8515aa836d74ac6d47..1875f6205b87cfcc09f395c8aa8c5dd4b41a814f 100644 |
--- a/src/full-codegen/s390/full-codegen-s390.cc |
+++ b/src/full-codegen/s390/full-codegen-s390.cc |
@@ -1220,12 +1220,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); |
} |