| 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 1184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1195 }; | 1195 }; |
| 1196 | 1196 |
| 1197 | 1197 |
| 1198 class RawLocalVarDescriptors : public RawObject { | 1198 class RawLocalVarDescriptors : public RawObject { |
| 1199 public: | 1199 public: |
| 1200 enum VarInfoKind { | 1200 enum VarInfoKind { |
| 1201 kStackVar = 1, | 1201 kStackVar = 1, |
| 1202 kContextVar, | 1202 kContextVar, |
| 1203 kContextLevel, | 1203 kContextLevel, |
| 1204 kSavedCurrentContext, | 1204 kSavedCurrentContext, |
| 1205 kAsyncOperation | |
| 1206 }; | 1205 }; |
| 1207 | 1206 |
| 1208 enum { | 1207 enum { |
| 1209 kKindPos = 0, | 1208 kKindPos = 0, |
| 1210 kKindSize = 8, | 1209 kKindSize = 8, |
| 1211 kIndexPos = kKindPos + kKindSize, | 1210 kIndexPos = kKindPos + kKindSize, |
| 1212 // Since there are 24 bits for the stack slot index, Functions can have | 1211 // Since there are 24 bits for the stack slot index, Functions can have |
| 1213 // only ~16.7 million stack slots. | 1212 // only ~16.7 million stack slots. |
| 1214 kPayloadSize = sizeof(int32_t) * kBitsPerByte, | 1213 kPayloadSize = sizeof(int32_t) * kBitsPerByte, |
| 1215 kIndexSize = kPayloadSize - kIndexPos, | 1214 kIndexSize = kPayloadSize - kIndexPos, |
| (...skipping 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2233 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2232 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
| 2234 kTypedDataInt8ArrayViewCid + 15); | 2233 kTypedDataInt8ArrayViewCid + 15); |
| 2235 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2234 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
| 2236 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2235 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
| 2237 return (kNullCid - kTypedDataInt8ArrayCid); | 2236 return (kNullCid - kTypedDataInt8ArrayCid); |
| 2238 } | 2237 } |
| 2239 | 2238 |
| 2240 } // namespace dart | 2239 } // namespace dart |
| 2241 | 2240 |
| 2242 #endif // VM_RAW_OBJECT_H_ | 2241 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |