Chromium Code Reviews| 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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 270 } | 270 } |
| 271 | 271 |
| 272 // Return a memory operand for stack slot locations. | 272 // Return a memory operand for stack slot locations. |
| 273 Address ToStackSlotAddress() const; | 273 Address ToStackSlotAddress() const; |
| 274 | 274 |
| 275 // Constants. | 275 // Constants. |
| 276 static Location RegisterOrConstant(Value* value); | 276 static Location RegisterOrConstant(Value* value); |
| 277 static Location RegisterOrSmiConstant(Value* value); | 277 static Location RegisterOrSmiConstant(Value* value); |
| 278 static Location FixedRegisterOrConstant(Value* value, Register reg); | 278 static Location FixedRegisterOrConstant(Value* value, Register reg); |
| 279 static Location FixedRegisterOrSmiConstant(Value* value, Register reg); | 279 static Location FixedRegisterOrSmiConstant(Value* value, Register reg); |
| 280 static Location WritableRegisterOrSmiConstant(Value* value); | |
|
Vyacheslav Egorov (Google)
2013/02/13 17:43:04
I think you don't actually need this.
Florian Schneider
2013/02/14 10:35:01
Done.
| |
| 280 static Location AnyOrConstant(Value* value); | 281 static Location AnyOrConstant(Value* value); |
| 281 | 282 |
| 282 const char* Name() const; | 283 const char* Name() const; |
| 283 void PrintTo(BufferFormatter* f) const; | 284 void PrintTo(BufferFormatter* f) const; |
| 284 void Print() const; | 285 void Print() const; |
| 285 | 286 |
| 286 // Compare two locations. | 287 // Compare two locations. |
| 287 bool Equals(Location other) const { | 288 bool Equals(Location other) const { |
| 288 return value_ == other.value_; | 289 return value_ == other.value_; |
| 289 } | 290 } |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 485 BitmapBuilder* stack_bitmap_; | 486 BitmapBuilder* stack_bitmap_; |
| 486 | 487 |
| 487 const ContainsCall contains_call_; | 488 const ContainsCall contains_call_; |
| 488 RegisterSet live_registers_; | 489 RegisterSet live_registers_; |
| 489 }; | 490 }; |
| 490 | 491 |
| 491 | 492 |
| 492 } // namespace dart | 493 } // namespace dart |
| 493 | 494 |
| 494 #endif // VM_LOCATIONS_H_ | 495 #endif // VM_LOCATIONS_H_ |
| OLD | NEW |