| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 return kind() == kDoubleStackSlot; | 255 return kind() == kDoubleStackSlot; |
| 256 } | 256 } |
| 257 | 257 |
| 258 | 258 |
| 259 intptr_t stack_index() const { | 259 intptr_t stack_index() const { |
| 260 ASSERT(IsStackSlot() || IsDoubleStackSlot()); | 260 ASSERT(IsStackSlot() || IsDoubleStackSlot()); |
| 261 // Decode stack index manually to preserve sign. | 261 // Decode stack index manually to preserve sign. |
| 262 return IndexField::decode(payload()) - kStackIndexBias; | 262 return IndexField::decode(payload()) - kStackIndexBias; |
| 263 } | 263 } |
| 264 | 264 |
| 265 // Return a memory operand for stack slot locations. |
| 266 Address ToStackSlotAddress() const; |
| 267 |
| 265 // Constants. | 268 // Constants. |
| 266 static Location RegisterOrConstant(Value* value); | 269 static Location RegisterOrConstant(Value* value); |
| 267 static Location RegisterOrSmiConstant(Value* value); | 270 static Location RegisterOrSmiConstant(Value* value); |
| 268 static Location FixedRegisterOrConstant(Value* value, Register reg); | 271 static Location FixedRegisterOrConstant(Value* value, Register reg); |
| 269 static Location FixedRegisterOrSmiConstant(Value* value, Register reg); | 272 static Location FixedRegisterOrSmiConstant(Value* value, Register reg); |
| 270 | 273 |
| 271 const char* Name() const; | 274 const char* Name() const; |
| 272 void PrintTo(BufferFormatter* f) const; | 275 void PrintTo(BufferFormatter* f) const; |
| 273 void Print() const; | 276 void Print() const; |
| 274 | 277 |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 BitmapBuilder* stack_bitmap_; | 472 BitmapBuilder* stack_bitmap_; |
| 470 | 473 |
| 471 const ContainsCall contains_call_; | 474 const ContainsCall contains_call_; |
| 472 RegisterSet live_registers_; | 475 RegisterSet live_registers_; |
| 473 }; | 476 }; |
| 474 | 477 |
| 475 | 478 |
| 476 } // namespace dart | 479 } // namespace dart |
| 477 | 480 |
| 478 #endif // VM_LOCATIONS_H_ | 481 #endif // VM_LOCATIONS_H_ |
| OLD | NEW |