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

Unified Diff: runtime/vm/flow_graph_allocator.cc

Issue 10910119: Implement new optional parameters syntax in the vm (issue 4290). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_allocator.cc
===================================================================
--- runtime/vm/flow_graph_allocator.cc (revision 12003)
+++ runtime/vm/flow_graph_allocator.cc (working copy)
@@ -531,16 +531,16 @@
// Assert that copied and non-copied parameters are mutually exclusive.
// This might change in the future and, if so, the index will be wrong.
- ASSERT(flow_graph_.copied_parameter_count() == 0 ||
- flow_graph_.non_copied_parameter_count() == 0);
+ ASSERT((flow_graph_.num_copied_params() == 0) ||
+ (flow_graph_.num_non_copied_params() == 0));
// Slot index for the leftmost copied parameter is 0.
intptr_t slot_index = param->index();
// Slot index for the rightmost fixed parameter is -1.
- slot_index -= flow_graph_.non_copied_parameter_count();
+ slot_index -= flow_graph_.num_non_copied_params();
range->set_assigned_location(Location::StackSlot(slot_index));
range->set_spill_slot(Location::StackSlot(slot_index));
- if (flow_graph_.copied_parameter_count() > 0) {
+ if (flow_graph_.num_copied_params() > 0) {
ASSERT(spill_slots_.length() == slot_index);
spill_slots_.Add(range->End());
}
@@ -557,7 +557,7 @@
CompleteRange(tail, Location::kRegister);
}
ConvertAllUses(range);
- if (flow_graph_.copied_parameter_count() > 0) {
+ if (flow_graph_.num_copied_params() > 0) {
MarkAsObjectAtSafepoints(range);
}
}
« no previous file with comments | « runtime/vm/flow_graph.cc ('k') | runtime/vm/flow_graph_builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698