Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(334)

Unified Diff: src/ast/ast.cc

Issue 2487483004: Only treat possible eval calls going through 'with' as special. (Closed)
Patch Set: Fix ast-graph-builder Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/ast/ast.cc
diff --git a/src/ast/ast.cc b/src/ast/ast.cc
index a4e9d41112edbdb427c184c412668afbb9eb4c92..7883d32dd21aba9b2615fd6d1479b56aa3b6ad93 100644
--- a/src/ast/ast.cc
+++ b/src/ast/ast.cc
@@ -900,9 +900,7 @@ void Call::AssignFeedbackVectorSlots(Isolate* isolate, FeedbackVectorSpec* spec,
Call::CallType Call::GetCallType() const {
VariableProxy* proxy = expression()->AsVariableProxy();
if (proxy != NULL) {
- if (is_possibly_eval()) {
- return POSSIBLY_EVAL_CALL;
- } else if (proxy->var()->IsUnallocated()) {
+ if (proxy->var()->IsUnallocated()) {
return GLOBAL_CALL;
} else if (proxy->var()->IsLookupSlot()) {
return proxy->var()->mode() == DYNAMIC ? WITH_CALL : OTHER_CALL;

Powered by Google App Engine
This is Rietveld 408576698