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

Unified Diff: runtime/vm/flow_graph_compiler.cc

Issue 14682020: Optimize functions containing try-catch. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: addressed Srdjan's comments Created 7 years, 7 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
Index: runtime/vm/flow_graph_compiler.cc
===================================================================
--- runtime/vm/flow_graph_compiler.cc (revision 22436)
+++ runtime/vm/flow_graph_compiler.cc (working copy)
@@ -317,7 +317,8 @@
intptr_t FlowGraphCompiler::StackSize() const {
if (is_optimizing_) {
- return block_order_[0]->AsGraphEntry()->spill_slot_count();
+ GraphEntryInstr* entry = block_order_[0]->AsGraphEntry();
Kevin Millikin (Google) 2013/05/08 11:42:00 Not your code, but I don't like using a property o
Florian Schneider 2013/05/08 17:10:55 Done.
+ return entry->fixed_slot_count() + entry->spill_slot_count();
} else {
return parsed_function_.num_stack_locals() +
parsed_function_.num_copied_params();

Powered by Google App Engine
This is Rietveld 408576698