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

Unified Diff: runtime/vm/locations.h

Issue 10806047: Fix crash during parallel moves. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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/intermediate_language.h ('k') | runtime/vm/locations.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/locations.h
===================================================================
--- runtime/vm/locations.h (revision 9788)
+++ runtime/vm/locations.h (working copy)
@@ -62,7 +62,7 @@
return loc;
}
- const Object& constant() {
+ const Object& constant() const {
ASSERT(IsConstant());
return *reinterpret_cast<const Object*>(value_ & ~kConstantMask);
}
@@ -164,18 +164,7 @@
// TODO(vegorov): remove unsafe kNoCall default.
LocationSummary(intptr_t input_count,
intptr_t temp_count,
- ContainsCall call = kNoCall)
- : input_locations_(input_count),
- temp_locations_(temp_count),
- output_location_(),
- is_call_(call == kCall) {
- 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());
- }
- }
+ ContainsCall call = kNoCall);
intptr_t input_count() const {
return input_locations_.length();
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | runtime/vm/locations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698