Index: src/full-codegen/full-codegen.cc |
diff --git a/src/full-codegen/full-codegen.cc b/src/full-codegen/full-codegen.cc |
index ee5e8881badbfb57aab23eac6a0e35d33d2731a6..dbd74ab8a0cb57c20b02312ed518b9b32e13e241 100644 |
--- a/src/full-codegen/full-codegen.cc |
+++ b/src/full-codegen/full-codegen.cc |
@@ -499,11 +499,11 @@ void FullCodeGenerator::VisitVariableProxy(VariableProxy* expr) { |
void FullCodeGenerator::EmitGlobalVariableLoad(VariableProxy* proxy, |
TypeofMode typeof_mode) { |
-#ifdef DEBUG |
Variable* var = proxy->var(); |
DCHECK(var->IsUnallocated() || |
(var->IsLookupSlot() && var->mode() == DYNAMIC_GLOBAL)); |
-#endif |
+ __ Move(LoadDescriptor::NameRegister(), var->name()); |
+ |
EmitLoadSlot(LoadGlobalDescriptor::SlotRegister(), |
proxy->VariableFeedbackSlot()); |
Handle<Code> code = CodeFactory::LoadGlobalIC(isolate(), typeof_mode).code(); |