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

Unified Diff: runtime/vm/flow_graph_builder.cc

Issue 12776006: Make allocation of Dart parameters and local variables architecture independent. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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_builder.cc
===================================================================
--- runtime/vm/flow_graph_builder.cc (revision 20045)
+++ runtime/vm/flow_graph_builder.cc (working copy)
@@ -2876,10 +2876,10 @@
const Function& function = owner()->parsed_function().function();
int num_params = function.NumParameters();
int param_frame_index = (num_params == function.num_fixed_parameters()) ?
- (1 + num_params) : ParsedFunction::kFirstLocalSlotIndex;
+ (kLastParamSlotIndex + num_params - 1) : kFirstLocalSlotIndex;
// Handle the saved arguments descriptor as an additional parameter.
if (owner()->parsed_function().GetSavedArgumentsDescriptorVar() != NULL) {
- ASSERT(param_frame_index == ParsedFunction::kFirstLocalSlotIndex);
+ ASSERT(param_frame_index == kFirstLocalSlotIndex);
num_params++;
}
for (int pos = 0; pos < num_params; param_frame_index--, pos++) {

Powered by Google App Engine
This is Rietveld 408576698