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

Unified Diff: vm/parser.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
Index: vm/parser.cc
===================================================================
--- vm/parser.cc (revision 7576)
+++ vm/parser.cc (working copy)
@@ -146,15 +146,15 @@
// parameters to copy.
if (optional_parameter_count == 0) {
// Parameter i will be at fp[1 + parameter_count - i] and local variable
- // j will be at fp[-1 - j].
+ // j will be at fp[kFirstStackSlotIndex - j].
first_parameter_index_ = 1 + parameter_count;
- first_stack_local_index_ = -1;
+ first_stack_local_index_ = kFirstStackSlotIndex;
copied_parameter_count_ = 0;
} else {
// Parameter i will be at fp[-1 - i] and local variable j will be at
// fp[-1 - parameter_count - j].
- first_parameter_index_ = -1;
- first_stack_local_index_ = -1 - parameter_count;
+ first_parameter_index_ = kFirstStackSlotIndex;
+ first_stack_local_index_ = first_parameter_index_ - parameter_count;
copied_parameter_count_ = parameter_count;
}

Powered by Google App Engine
This is Rietveld 408576698