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 RUNTIME_VM_LOCATIONS_H_ | 5 #ifndef RUNTIME_VM_LOCATIONS_H_ |
6 #define RUNTIME_VM_LOCATIONS_H_ | 6 #define RUNTIME_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 14 matching lines...) Expand all Loading... |
25 kTagged, | 25 kTagged, |
26 kUntagged, | 26 kUntagged, |
27 kUnboxedDouble, | 27 kUnboxedDouble, |
28 kUnboxedInt32, | 28 kUnboxedInt32, |
29 kUnboxedUint32, | 29 kUnboxedUint32, |
30 kUnboxedMint, | 30 kUnboxedMint, |
31 kUnboxedFloat32x4, | 31 kUnboxedFloat32x4, |
32 kUnboxedInt32x4, | 32 kUnboxedInt32x4, |
33 kUnboxedFloat64x2, | 33 kUnboxedFloat64x2, |
34 kPairOfTagged, | 34 kPairOfTagged, |
35 kPairOfUnboxedDouble, | |
36 kNumRepresentations | 35 kNumRepresentations |
37 }; | 36 }; |
38 | 37 |
39 | 38 |
40 // Location objects are used to connect register allocator and code generator. | 39 // Location objects are used to connect register allocator and code generator. |
41 // Instruction templates used by code generator have a corresponding | 40 // Instruction templates used by code generator have a corresponding |
42 // LocationSummary object which specifies expected location for every input | 41 // LocationSummary object which specifies expected location for every input |
43 // and output. | 42 // and output. |
44 // Each location is encoded as a single word: for non-constant locations | 43 // Each location is encoded as a single word: for non-constant locations |
45 // low 4 bits denote location kind, rest is kind specific location payload | 44 // low 4 bits denote location kind, rest is kind specific location payload |
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
669 | 668 |
670 #if defined(DEBUG) | 669 #if defined(DEBUG) |
671 intptr_t writable_inputs_; | 670 intptr_t writable_inputs_; |
672 #endif | 671 #endif |
673 }; | 672 }; |
674 | 673 |
675 | 674 |
676 } // namespace dart | 675 } // namespace dart |
677 | 676 |
678 #endif // RUNTIME_VM_LOCATIONS_H_ | 677 #endif // RUNTIME_VM_LOCATIONS_H_ |
OLD | NEW |