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

Unified Diff: src/variables.h

Issue 1127063003: [es6] implement default parameters via desugaring (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add more context-allocation tests Created 5 years, 7 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/variables.h
diff --git a/src/variables.h b/src/variables.h
index 384a8859545045ac502c5f80cc7a8229ddd81d75..72680514ca739c4dbe11ca0725127e4cb6c17e11 100644
--- a/src/variables.h
+++ b/src/variables.h
@@ -67,6 +67,10 @@ class Variable: public ZoneObject {
Handle<String> name() const { return name_->string(); }
const AstRawString* raw_name() const { return name_; }
VariableMode mode() const { return mode_; }
+ void set_mode(VariableMode mode) {
+ // Don't use this unless you have a very good reason
+ mode_ = mode;
+ }
bool has_forced_context_allocation() const {
return force_context_allocation_;
}
« src/parser.cc ('K') | « src/scopes.cc ('k') | test/mjsunit/harmony/default-parameters.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698