Index: src/full-codegen/ppc/full-codegen-ppc.cc |
diff --git a/src/full-codegen/ppc/full-codegen-ppc.cc b/src/full-codegen/ppc/full-codegen-ppc.cc |
index 839c914772a3bbf0c1646d27c8c8c3b732aa0f07..ca970515d877402a7b04f5141df6425e2bfb3b4b 100644 |
--- a/src/full-codegen/ppc/full-codegen-ppc.cc |
+++ b/src/full-codegen/ppc/full-codegen-ppc.cc |
@@ -1256,12 +1256,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); |
} |