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" |
11 | 11 |
12 namespace dart { | 12 namespace dart { |
13 | 13 |
14 class BufferFormatter; | 14 class BufferFormatter; |
15 class Value; | 15 class Value; |
16 | 16 |
17 | 17 |
18 enum Representation { | 18 enum Representation { |
19 kNoRepresentation, | 19 kNoRepresentation, |
20 kTagged, | 20 kTagged, |
21 kUntagged, | 21 kUntagged, |
22 kUnboxedDouble, | 22 kUnboxedDouble, |
23 kUnboxedMint, | 23 kUnboxedMint, |
24 kUnboxedFloat32x4, | 24 kUnboxedFloat32x4, |
25 kUnboxedUint32x4, | 25 kUnboxedInt32x4, |
26 kNumRepresentations | 26 kNumRepresentations |
27 }; | 27 }; |
28 | 28 |
29 | 29 |
30 // Location objects are used to connect register allocator and code generator. | 30 // Location objects are used to connect register allocator and code generator. |
31 // Instruction templates used by code generator have a corresponding | 31 // Instruction templates used by code generator have a corresponding |
32 // LocationSummary object which specifies expected location for every input | 32 // LocationSummary object which specifies expected location for every input |
33 // and output. | 33 // and output. |
34 // Each location is encoded as a single word: for non-constant locations | 34 // Each location is encoded as a single word: for non-constant locations |
35 // low 3 bits denote location kind, rest is kind specific location payload | 35 // low 3 bits denote location kind, rest is kind specific location payload |
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 BitmapBuilder* stack_bitmap_; | 477 BitmapBuilder* stack_bitmap_; |
478 | 478 |
479 const ContainsCall contains_call_; | 479 const ContainsCall contains_call_; |
480 RegisterSet live_registers_; | 480 RegisterSet live_registers_; |
481 }; | 481 }; |
482 | 482 |
483 | 483 |
484 } // namespace dart | 484 } // namespace dart |
485 | 485 |
486 #endif // VM_LOCATIONS_H_ | 486 #endif // VM_LOCATIONS_H_ |
OLD | NEW |