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

Unified Diff: runtime/vm/intermediate_language.cc

Issue 10700123: Remove the instruction pointer from computations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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/intermediate_language.h ('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.cc
diff --git a/runtime/vm/intermediate_language.cc b/runtime/vm/intermediate_language.cc
index 4bc2ec6d3107df1f41b712690c22ad1c0f9c2548..8cdd8730dc8b7f5dc7ede604e6339e340a7586ad 100644
--- a/runtime/vm/intermediate_language.cc
+++ b/runtime/vm/intermediate_language.cc
@@ -54,8 +54,8 @@ RECOGNIZED_LIST(KIND_TO_STRING)
// ==== Support for visiting flow graphs.
#define DEFINE_ACCEPT(ShortName, ClassName) \
-void ClassName::Accept(FlowGraphVisitor* visitor) { \
- visitor->Visit##ShortName(this); \
+void ClassName::Accept(FlowGraphVisitor* visitor, BindInstr* instr) { \
+ visitor->Visit##ShortName(this, instr); \
}
FOR_EACH_COMPUTATION(DEFINE_ACCEPT)
@@ -93,15 +93,6 @@ void FlowGraphVisitor::VisitBlocks() {
}
-void Computation::ReplaceWith(Computation* other) {
- ASSERT(other->instr() == NULL);
- ASSERT(instr() != NULL);
- other->set_instr(other->instr());
- instr()->replace_computation(other);
- set_instr(NULL);
-}
-
-
intptr_t InstanceCallComp::InputCount() const {
return ArgumentCount();
}
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698