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

Unified Diff: runtime/vm/parser.h

Issue 9721004: Use a local variable to save/restore the context on entry/exit, instead of (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 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 | « runtime/vm/code_generator_x64.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser.h
===================================================================
--- runtime/vm/parser.h (revision 5648)
+++ runtime/vm/parser.h (working copy)
@@ -35,6 +35,7 @@
node_sequence_(NULL),
instantiator_(NULL),
default_parameter_values_(Array::Handle()),
+ saved_context_var_(NULL),
first_parameter_index_(0),
first_stack_local_index_(0),
copied_parameter_count_(0),
@@ -61,6 +62,12 @@
default_parameter_values_ = default_parameter_values.raw();
}
+ LocalVariable* saved_context_var() const { return saved_context_var_; }
+ void set_saved_context_var(LocalVariable* saved_context_var) {
+ ASSERT(saved_context_var != NULL);
+ saved_context_var_ = saved_context_var;
+ }
+
int first_parameter_index() const { return first_parameter_index_; }
int first_stack_local_index() const { return first_stack_local_index_; }
int copied_parameter_count() const { return copied_parameter_count_; }
@@ -73,6 +80,7 @@
SequenceNode* node_sequence_;
AstNode* instantiator_;
Array& default_parameter_values_;
+ LocalVariable* saved_context_var_;
int first_parameter_index_;
int first_stack_local_index_;
« no previous file with comments | « runtime/vm/code_generator_x64.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698