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_RAW_OBJECT_H_ | 5 #ifndef VM_RAW_OBJECT_H_ |
6 #define VM_RAW_OBJECT_H_ | 6 #define VM_RAW_OBJECT_H_ |
7 | 7 |
8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
9 #include "vm/atomic.h" | 9 #include "vm/atomic.h" |
10 #include "vm/globals.h" | 10 #include "vm/globals.h" |
(...skipping 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1030 friend class MarkingVisitor; | 1030 friend class MarkingVisitor; |
1031 friend class Function; | 1031 friend class Function; |
1032 }; | 1032 }; |
1033 | 1033 |
1034 | 1034 |
1035 class RawPcDescriptors : public RawObject { | 1035 class RawPcDescriptors : public RawObject { |
1036 public: | 1036 public: |
1037 enum Kind { | 1037 enum Kind { |
1038 kDeopt = 1, // Deoptimization continuation point. | 1038 kDeopt = 1, // Deoptimization continuation point. |
1039 kIcCall = kDeopt << 1, // IC call. | 1039 kIcCall = kDeopt << 1, // IC call. |
1040 kOptStaticCall = kIcCall << 1, // Call directly to known target. | 1040 kUnoptStaticCall = kIcCall << 1, // Call to a known target via stub. |
1041 kUnoptStaticCall = kOptStaticCall << 1, // Call to a known target via stub. | 1041 kRuntimeCall = kUnoptStaticCall << 1, // Runtime call. |
1042 kClosureCall = kUnoptStaticCall << 1, // Closure call. | |
1043 kRuntimeCall = kClosureCall << 1, // Runtime call. | |
1044 kOsrEntry = kRuntimeCall << 1, // OSR entry point in unopt. code. | 1042 kOsrEntry = kRuntimeCall << 1, // OSR entry point in unopt. code. |
1045 kOther = kOsrEntry << 1, | 1043 kOther = kOsrEntry << 1, |
1046 kLastKind = kOther, | 1044 kLastKind = kOther, |
1047 kAnyKind = -1 | 1045 kAnyKind = -1 |
1048 }; | 1046 }; |
1049 | 1047 |
1050 class MergedKindTry { | 1048 class MergedKindTry { |
1051 public: | 1049 public: |
1052 // Most of the time try_index will be small and merged field will fit into | 1050 // Most of the time try_index will be small and merged field will fit into |
1053 // one byte. | 1051 // one byte. |
(...skipping 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2134 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2132 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
2135 kTypedDataInt8ArrayViewCid + 15); | 2133 kTypedDataInt8ArrayViewCid + 15); |
2136 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2134 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
2137 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2135 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
2138 return (kNullCid - kTypedDataInt8ArrayCid); | 2136 return (kNullCid - kTypedDataInt8ArrayCid); |
2139 } | 2137 } |
2140 | 2138 |
2141 } // namespace dart | 2139 } // namespace dart |
2142 | 2140 |
2143 #endif // VM_RAW_OBJECT_H_ | 2141 #endif // VM_RAW_OBJECT_H_ |
OLD | NEW |