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

Unified Diff: runtime/vm/flow_graph.cc

Issue 342093002: - Cleanup FlowGraph: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 6 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.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph.cc
===================================================================
--- runtime/vm/flow_graph.cc (revision 37470)
+++ runtime/vm/flow_graph.cc (working copy)
@@ -15,7 +15,6 @@
DECLARE_FLAG(bool, reorder_basic_blocks);
DECLARE_FLAG(bool, trace_optimization);
DECLARE_FLAG(bool, verify_compiler);
-DEFINE_FLAG(bool, optimize_try_catch, true, "Optimization of try-catch");
FlowGraph::FlowGraph(const FlowGraphBuilder& builder,
@@ -181,9 +180,7 @@
}
-#ifdef DEBUG
// Debugging code to verify the construction of use lists.
-
static intptr_t MembershipCount(Value* use, Value* list) {
intptr_t count = 0;
while (list != NULL) {
@@ -281,7 +278,6 @@
}
return true; // Return true so we can ASSERT validation.
}
-#endif // DEBUG
LivenessAnalysis::LivenessAnalysis(
@@ -718,9 +714,6 @@
VariableLivenessAnalysis* variable_liveness,
ZoneGrowableArray<Definition*>* inlining_parameters) {
GraphEntryInstr* entry = graph_entry();
- if (!FLAG_optimize_try_catch && (entry->SuccessorCount() > 1)) {
- Bailout("Catch-entry support in SSA.");
- }
// Initial renaming environment.
GrowableArray<Definition*> env(variable_count());
@@ -1145,18 +1138,6 @@
}
-void FlowGraph::Bailout(const char* reason) const {
- const Function& function = parsed_function_.function();
- Report::MessageF(Report::kBailout,
- Script::Handle(function.script()),
- function.token_pos(),
- "FlowGraph Bailout: %s %s",
- String::Handle(function.name()).ToCString(),
- reason);
- UNREACHABLE();
-}
-
-
intptr_t FlowGraph::InstructionCount() const {
intptr_t size = 0;
// Iterate each block, skipping the graph entry.
« no previous file with comments | « runtime/vm/flow_graph.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698