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

Unified Diff: runtime/vm/intermediate_language.h

Issue 9961019: Implement context cloning in new compiler. (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/flow_graph_compiler_x64.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language.h
===================================================================
--- runtime/vm/intermediate_language.h (revision 6205)
+++ runtime/vm/intermediate_language.h (working copy)
@@ -55,6 +55,7 @@
M(ExtractConstructorInstantiator, ExtractConstructorInstantiatorComp) \
M(AllocateContext, AllocateContextComp) \
M(ChainContext, ChainContextComp) \
+ M(CloneContext, CloneContextComp) \
#define FORWARD_DECLARATION(ShortName, ClassName) class ClassName;
@@ -808,6 +809,32 @@
};
+class CloneContextComp : public Computation {
+ public:
+ CloneContextComp(intptr_t node_id,
+ intptr_t token_index,
+ Value* context_value)
+ : node_id_(node_id),
+ token_index_(token_index),
+ context_value_(context_value) {
+ ASSERT(context_value_ != NULL);
+ }
+
+ intptr_t node_id() const { return node_id_; }
+ intptr_t token_index() const { return token_index_; }
+ Value* context_value() const { return context_value_; }
+
+ DECLARE_COMPUTATION(CloneContext)
+
+ private:
+ const intptr_t node_id_;
+ const intptr_t token_index_;
+ Value* context_value_;
+
+ DISALLOW_COPY_AND_ASSIGN(CloneContextComp);
+};
+
+
#undef DECLARE_COMPUTATION
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698