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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 | 327 |
328 // Return a memory operand for stack slot locations. | 328 // Return a memory operand for stack slot locations. |
329 Address ToStackSlotAddress() const; | 329 Address ToStackSlotAddress() const; |
330 | 330 |
331 // Returns the offset from the frame pointer for stack slot locations. | 331 // Returns the offset from the frame pointer for stack slot locations. |
332 intptr_t ToStackSlotOffset() const; | 332 intptr_t ToStackSlotOffset() const; |
333 | 333 |
334 // Constants. | 334 // Constants. |
335 static Location RegisterOrConstant(Value* value); | 335 static Location RegisterOrConstant(Value* value); |
336 static Location RegisterOrSmiConstant(Value* value); | 336 static Location RegisterOrSmiConstant(Value* value); |
| 337 static Location WritableRegisterOrSmiConstant(Value* value); |
337 static Location FixedRegisterOrConstant(Value* value, Register reg); | 338 static Location FixedRegisterOrConstant(Value* value, Register reg); |
338 static Location FixedRegisterOrSmiConstant(Value* value, Register reg); | 339 static Location FixedRegisterOrSmiConstant(Value* value, Register reg); |
339 static Location AnyOrConstant(Value* value); | 340 static Location AnyOrConstant(Value* value); |
340 | 341 |
341 const char* Name() const; | 342 const char* Name() const; |
342 void PrintTo(BufferFormatter* f) const; | 343 void PrintTo(BufferFormatter* f) const; |
343 void Print() const; | 344 void Print() const; |
344 const char* ToCString() const; | 345 const char* ToCString() const; |
345 | 346 |
346 // Compare two locations. | 347 // Compare two locations. |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
636 BitmapBuilder* stack_bitmap_; | 637 BitmapBuilder* stack_bitmap_; |
637 | 638 |
638 const ContainsCall contains_call_; | 639 const ContainsCall contains_call_; |
639 RegisterSet live_registers_; | 640 RegisterSet live_registers_; |
640 }; | 641 }; |
641 | 642 |
642 | 643 |
643 } // namespace dart | 644 } // namespace dart |
644 | 645 |
645 #endif // VM_LOCATIONS_H_ | 646 #endif // VM_LOCATIONS_H_ |
OLD | NEW |