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

Unified Diff: src/parsing/preparsed-scope-data.cc

Issue 2655623005: [parser] Skipping inner funcs: add info about variables. (Closed)
Patch Set: create variables only when the flag is on Created 3 years, 11 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
Index: src/parsing/preparsed-scope-data.cc
diff --git a/src/parsing/preparsed-scope-data.cc b/src/parsing/preparsed-scope-data.cc
index 47f1deeecd77fca91981fe70b0b8b095acd71816..50a4e0b63c491090c3ca88e71d3c73dc4a75628d 100644
--- a/src/parsing/preparsed-scope-data.cc
+++ b/src/parsing/preparsed-scope-data.cc
@@ -35,5 +35,12 @@ PreParsedScopeData::ScopeScope::~ScopeScope() {
data_->backing_store_[index_in_data_ + 1] = variable_count_;
}
+void PreParsedScopeData::ScopeScope::AddVariable(VariableLocation location,
+ bool maybe_assigned) {
+ data_->backing_store_.push_back(location);
+ data_->backing_store_.push_back(maybe_assigned);
+ ++variable_count_;
+}
+
} // namespace internal
} // namespace v8

Powered by Google App Engine
This is Rietveld 408576698