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

Side by Side Diff: runtime/vm/locations.h

Issue 246303004: Fixes bug where we would occasionally materialize a corrupted object. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/intermediate_language.cc ('k') | runtime/vm/locations.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_LOCATIONS_H_ 5 #ifndef VM_LOCATIONS_H_
6 #define VM_LOCATIONS_H_ 6 #define VM_LOCATIONS_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/bitfield.h" 10 #include "vm/bitfield.h"
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 // Constants. 345 // Constants.
346 static Location RegisterOrConstant(Value* value); 346 static Location RegisterOrConstant(Value* value);
347 static Location RegisterOrSmiConstant(Value* value); 347 static Location RegisterOrSmiConstant(Value* value);
348 static Location FixedRegisterOrConstant(Value* value, Register reg); 348 static Location FixedRegisterOrConstant(Value* value, Register reg);
349 static Location FixedRegisterOrSmiConstant(Value* value, Register reg); 349 static Location FixedRegisterOrSmiConstant(Value* value, Register reg);
350 static Location AnyOrConstant(Value* value); 350 static Location AnyOrConstant(Value* value);
351 351
352 const char* Name() const; 352 const char* Name() const;
353 void PrintTo(BufferFormatter* f) const; 353 void PrintTo(BufferFormatter* f) const;
354 void Print() const; 354 void Print() const;
355 const char* ToCString() const;
355 356
356 // Compare two locations. 357 // Compare two locations.
357 bool Equals(Location other) const { 358 bool Equals(Location other) const {
358 return value_ == other.value_; 359 return value_ == other.value_;
359 } 360 }
360 361
361 // If current location is constant might return something that 362 // If current location is constant might return something that
362 // is not equal to any Kind. 363 // is not equal to any Kind.
363 Kind kind() const { 364 Kind kind() const {
364 return KindField::decode(value_); 365 return KindField::decode(value_);
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 BitmapBuilder* stack_bitmap_; 579 BitmapBuilder* stack_bitmap_;
579 580
580 const ContainsCall contains_call_; 581 const ContainsCall contains_call_;
581 RegisterSet live_registers_; 582 RegisterSet live_registers_;
582 }; 583 };
583 584
584 585
585 } // namespace dart 586 } // namespace dart
586 587
587 #endif // VM_LOCATIONS_H_ 588 #endif // VM_LOCATIONS_H_
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.cc ('k') | runtime/vm/locations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698