OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |