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

Unified Diff: src/ast/ast.h

Issue 2226803003: Replace SloppyBlockFunctionMap::Vector with linked list through SloppyBlockFunctionStatement (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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/ast/scopes.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/ast.h
diff --git a/src/ast/ast.h b/src/ast/ast.h
index a32ffcd842026165ef3ee6312202d7c913051004..8172cf888658b71c10dbd9dc7fbe4867f1653c37 100644
--- a/src/ast/ast.h
+++ b/src/ast/ast.h
@@ -1187,6 +1187,8 @@ class SloppyBlockFunctionStatement final : public Statement {
Statement* statement() const { return statement_; }
void set_statement(Statement* statement) { statement_ = statement; }
Scope* scope() const { return scope_; }
+ SloppyBlockFunctionStatement* next() { return next_; }
+ void set_next(SloppyBlockFunctionStatement* next) { next_ = next; }
private:
friend class AstNodeFactory;
@@ -1194,10 +1196,12 @@ class SloppyBlockFunctionStatement final : public Statement {
SloppyBlockFunctionStatement(Zone* zone, Statement* statement, Scope* scope)
: Statement(zone, kNoSourcePosition, kSloppyBlockFunctionStatement),
statement_(statement),
- scope_(scope) {}
+ scope_(scope),
+ next_(nullptr) {}
Statement* statement_;
Scope* const scope_;
+ SloppyBlockFunctionStatement* next_;
};
« no previous file with comments | « no previous file | src/ast/scopes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698