OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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_TOKEN_POSITION_H_ | 5 #ifndef VM_TOKEN_POSITION_H_ |
6 #define VM_TOKEN_POSITION_H_ | 6 #define VM_TOKEN_POSITION_H_ |
7 | 7 |
8 #include "platform/utils.h" | 8 #include "platform/utils.h" |
9 #include "vm/allocation.h" | 9 #include "vm/allocation.h" |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 #define SENTINEL_TOKEN_DESCRIPTORS(V) \ | 31 #define SENTINEL_TOKEN_DESCRIPTORS(V) \ |
32 V(NoSource, -1) \ | 32 V(NoSource, -1) \ |
33 V(Box, -2) \ | 33 V(Box, -2) \ |
34 V(ParallelMove, -3) \ | 34 V(ParallelMove, -3) \ |
35 V(TempMove, -4) \ | 35 V(TempMove, -4) \ |
36 V(Constant, -5) \ | 36 V(Constant, -5) \ |
37 V(PushArgument, -6) \ | 37 V(PushArgument, -6) \ |
38 V(ControlFlow, -7) \ | 38 V(ControlFlow, -7) \ |
39 V(Context, -8) \ | 39 V(Context, -8) \ |
40 V(MethodExtractor, -9) \ | 40 V(MethodExtractor, -9) \ |
41 V(Last, -10) // Always keep this at the end. | 41 V(DeferredSlowPath, -10) \ |
| 42 V(DeferredDeoptInfo, -11) \ |
| 43 V(DartCodePrologue, -12) \ |
| 44 V(DartCodeEpilogue, -13) \ |
| 45 V(Last, -14) // Always keep this at the end. |
42 | 46 |
43 // A token position representing a debug safe source (real) position, | 47 // A token position representing a debug safe source (real) position, |
44 // non-debug safe source (synthetic) positions, or a classifying value used | 48 // non-debug safe source (synthetic) positions, or a classifying value used |
45 // by the profiler. | 49 // by the profiler. |
46 class TokenPosition { | 50 class TokenPosition { |
47 public: | 51 public: |
48 TokenPosition() | 52 TokenPosition() |
49 : value_(kNoSource.value()) { | 53 : value_(kNoSource.value()) { |
50 } | 54 } |
51 | 55 |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 | 199 |
196 private: | 200 private: |
197 int32_t value_; | 201 int32_t value_; |
198 | 202 |
199 DISALLOW_ALLOCATION(); | 203 DISALLOW_ALLOCATION(); |
200 }; | 204 }; |
201 | 205 |
202 } // namespace dart | 206 } // namespace dart |
203 | 207 |
204 #endif // VM_TOKEN_POSITION_H_ | 208 #endif // VM_TOKEN_POSITION_H_ |
OLD | NEW |