Index: src/ast.h |
diff --git a/src/ast.h b/src/ast.h |
index c281408c82fcd56c04a7695e0d19203856534aed..e5842c292e57b139f7073dd3f05c9508aa2db411 100644 |
--- a/src/ast.h |
+++ b/src/ast.h |
@@ -1660,7 +1660,7 @@ class VariableProxy final : public Expression { |
void BindTo(Variable* var); |
bool UsesVariableFeedbackSlot() const { |
- return var()->IsUnallocated() || var()->IsLookupSlot(); |
+ return var()->IsUnallocatedOrGlobalSlot() || var()->IsLookupSlot(); |
} |
virtual FeedbackVectorRequirements ComputeFeedbackRequirements( |
@@ -1853,7 +1853,7 @@ class Call final : public Expression { |
bool global_call() const { |
VariableProxy* proxy = expression_->AsVariableProxy(); |
- return proxy != NULL && proxy->var()->IsUnallocated(); |
+ return proxy != NULL && proxy->var()->IsUnallocatedOrGlobalSlot(); |
} |
bool known_global_function() const { |