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

Unified Diff: runtime/vm/flow_graph_builder.h

Issue 12457034: Ensure that all goto instructions have deoptimization target. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Delete UNREACHABLE Created 7 years, 8 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.cc ('k') | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_builder.h
diff --git a/runtime/vm/flow_graph_builder.h b/runtime/vm/flow_graph_builder.h
index 825b381879e759fe2d3256800003139c45423406..076959b8df8c76e096d97581f17ba0c9ab399501 100644
--- a/runtime/vm/flow_graph_builder.h
+++ b/runtime/vm/flow_graph_builder.h
@@ -50,11 +50,17 @@ class InliningContext: public ValueObject {
ASSERT(exits_[i].exit_block != NULL);
return exits_[i].exit_block;
}
+
Instruction* LastInstructionAt(intptr_t i) const {
- return exits_[i].exit_return->previous();
+ return ReturnAt(i)->previous();
}
+
Value* ValueAt(intptr_t i) const {
- return exits_[i].exit_return->value();
+ return ReturnAt(i)->value();
+ }
+
+ ReturnInstr* ReturnAt(intptr_t i) const {
+ return exits_[i].exit_return;
}
static int LowestBlockIdFirst(const Data* a, const Data* b);
« no previous file with comments | « runtime/vm/flow_graph.cc ('k') | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698