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

Unified Diff: runtime/vm/locations.cc

Issue 10823308: Implement basic support for deferred slow path code with calls that save and restore live registers. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address Kevin's comments Created 8 years, 4 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
« runtime/vm/locations.h ('K') | « runtime/vm/locations.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/locations.cc
diff --git a/runtime/vm/locations.cc b/runtime/vm/locations.cc
index b4a097445cf6d207db9bb4cc0a4ce98f66c640e6..92385d600736d7f2f96026caa176fc42c0039b2f 100644
--- a/runtime/vm/locations.cc
+++ b/runtime/vm/locations.cc
@@ -17,14 +17,18 @@ LocationSummary::LocationSummary(intptr_t input_count,
temp_locations_(temp_count),
output_location_(),
stack_bitmap_(NULL),
- is_call_(contains_call == kCall) {
- if (is_call()) stack_bitmap_ = new BitmapBuilder();
+ contains_call_(contains_call),
+ live_registers_() {
for (intptr_t i = 0; i < input_count; i++) {
input_locations_.Add(Location());
}
for (intptr_t i = 0; i < temp_count; i++) {
temp_locations_.Add(Location());
}
+
+ if (contains_call_ != kNoCall) {
+ stack_bitmap_ = new BitmapBuilder();
+ }
}
« runtime/vm/locations.h ('K') | « runtime/vm/locations.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698