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

Unified Diff: vm/flow_graph_builder.cc

Issue 10375059: Use a reserved stack local variable to store the Code object so that it can be looked up easily whe… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 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
« no previous file with comments | « vm/find_code_object_test.cc ('k') | vm/flow_graph_compiler_x64.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/flow_graph_builder.cc
===================================================================
--- vm/flow_graph_builder.cc (revision 7669)
+++ vm/flow_graph_builder.cc (working copy)
@@ -1874,8 +1874,8 @@
ASSERT(scope->context_level() == 1);
const Function& function = owner()->parsed_function().function();
const int num_params = function.NumberOfParameters();
- int param_frame_index =
- (num_params == function.num_fixed_parameters()) ? 1 + num_params : -1;
+ int param_frame_index = (num_params == function.num_fixed_parameters()) ?
+ (1 + num_params) : ParsedFunction::kFirstLocalSlotIndex;
for (int pos = 0; pos < num_params; param_frame_index--, pos++) {
const LocalVariable& parameter = *scope->VariableAt(pos);
ASSERT(parameter.owner() == scope);
« no previous file with comments | « vm/find_code_object_test.cc ('k') | vm/flow_graph_compiler_x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698