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

Unified Diff: runtime/vm/flow_graph_compiler.cc

Issue 10828018: Add support for fixed parameters in the register allocator. (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
Index: runtime/vm/flow_graph_compiler.cc
diff --git a/runtime/vm/flow_graph_compiler.cc b/runtime/vm/flow_graph_compiler.cc
index 29c2fe05e5adcc1c4c609fdbe4617d13b65bffb0..4509ea81b026d1deaa40d7f2b60b1f41d39bf4b9 100644
--- a/runtime/vm/flow_graph_compiler.cc
+++ b/runtime/vm/flow_graph_compiler.cc
@@ -141,8 +141,12 @@ void FlowGraphCompiler::Bailout(const char* reason) {
intptr_t FlowGraphCompiler::StackSize() const {
- return parsed_function_.stack_local_count() +
- parsed_function_.copied_parameter_count();
+ if (is_ssa_) {
+ return block_order_[0]->AsGraphEntry()->spill_slot_count();
Kevin Millikin (Google) 2012/07/26 09:29:08 I think it's a little weird that the spill slot co
Vyacheslav Egorov (Google) 2012/07/26 11:33:53 Discussed offline. My reasoning is that each instr
+ } else {
+ return parsed_function_.stack_local_count() +
+ parsed_function_.copied_parameter_count();
+ }
}

Powered by Google App Engine
This is Rietveld 408576698