Index: src/arm/fast-codegen-arm.cc |
=================================================================== |
--- src/arm/fast-codegen-arm.cc (revision 3225) |
+++ src/arm/fast-codegen-arm.cc (working copy) |
@@ -1031,7 +1031,9 @@ |
ASSERT_EQ(Expression::kValue, expr->expression()->context()); |
VariableProxy* proxy = expr->expression()->AsVariableProxy(); |
- if (proxy != NULL && proxy->var()->is_global()) { |
+ if (proxy != NULL && |
+ !proxy->var()->is_this() && |
+ proxy->var()->is_global()) { |
Comment cmnt(masm_, "Global variable"); |
__ ldr(r0, CodeGenerator::GlobalObject()); |
__ push(r0); |