Index: src/full-codegen/full-codegen.cc |
diff --git a/src/full-codegen/full-codegen.cc b/src/full-codegen/full-codegen.cc |
index 657b97934b514e3d7f7faff2270e5e8f53dd1209..e4c69e74f58dd91cb8512682f74a32b7cc801dfa 100644 |
--- a/src/full-codegen/full-codegen.cc |
+++ b/src/full-codegen/full-codegen.cc |
@@ -839,8 +839,8 @@ void FullCodeGenerator::VisitForTypeofValue(Expression* expr) { |
DCHECK(!context()->IsEffect()); |
DCHECK(!context()->IsTest()); |
- if (proxy != NULL && (proxy->var()->IsUnallocatedOrGlobalSlot() || |
- proxy->var()->IsLookupSlot())) { |
+ if (proxy != NULL && |
+ (proxy->var()->IsUnallocated() || proxy->var()->IsLookupSlot())) { |
EmitVariableLoad(proxy, INSIDE_TYPEOF); |
PrepareForBailout(proxy, BailoutState::TOS_REGISTER); |
} else { |