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

Unified Diff: src/ast.h

Issue 1418433002: Always give class literals a block scope (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix vector stores Created 5 years, 2 months 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
« no previous file with comments | « no previous file | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast.h
diff --git a/src/ast.h b/src/ast.h
index 0c6d2138fd97aa143cd3eac94b81a5226b537b9a..f1adf528a20ea5a6c9d61408f4ef289a2765b11d 100644
--- a/src/ast.h
+++ b/src/ast.h
@@ -2662,7 +2662,7 @@ class ClassLiteral final : public Expression {
FeedbackVectorSlotCache* cache) override;
bool NeedsProxySlot() const {
- return FLAG_vector_stores && scope() != NULL &&
+ return FLAG_vector_stores && class_variable_proxy() != nullptr &&
class_variable_proxy()->var()->IsUnallocated();
}
« no previous file with comments | « no previous file | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698