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 |