| 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 1146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1157 const uint8_t* data() const { OPEN_ARRAY_START(uint8_t, uint8_t); } | 1157 const uint8_t* data() const { OPEN_ARRAY_START(uint8_t, uint8_t); } |
| 1158 }; | 1158 }; |
| 1159 | 1159 |
| 1160 | 1160 |
| 1161 class RawLocalVarDescriptors : public RawObject { | 1161 class RawLocalVarDescriptors : public RawObject { |
| 1162 public: | 1162 public: |
| 1163 enum VarInfoKind { | 1163 enum VarInfoKind { |
| 1164 kStackVar = 1, | 1164 kStackVar = 1, |
| 1165 kContextVar, | 1165 kContextVar, |
| 1166 kContextLevel, | 1166 kContextLevel, |
| 1167 kSavedCurrentContext | 1167 kSavedCurrentContext, |
| 1168 kAsyncOperation |
| 1168 }; | 1169 }; |
| 1169 | 1170 |
| 1170 enum { | 1171 enum { |
| 1171 kKindPos = 0, | 1172 kKindPos = 0, |
| 1172 kKindSize = 8, | 1173 kKindSize = 8, |
| 1173 kIndexPos = kKindPos + kKindSize, | 1174 kIndexPos = kKindPos + kKindSize, |
| 1174 // Since there are 24 bits for the stack slot index, Functions can have | 1175 // Since there are 24 bits for the stack slot index, Functions can have |
| 1175 // only ~16.7 million stack slots. | 1176 // only ~16.7 million stack slots. |
| 1176 kPayloadSize = sizeof(int32_t) * kBitsPerByte, | 1177 kPayloadSize = sizeof(int32_t) * kBitsPerByte, |
| 1177 kIndexSize = kPayloadSize - kIndexPos, | 1178 kIndexSize = kPayloadSize - kIndexPos, |
| (...skipping 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2187 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2188 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
| 2188 kTypedDataInt8ArrayViewCid + 15); | 2189 kTypedDataInt8ArrayViewCid + 15); |
| 2189 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2190 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
| 2190 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2191 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
| 2191 return (kNullCid - kTypedDataInt8ArrayCid); | 2192 return (kNullCid - kTypedDataInt8ArrayCid); |
| 2192 } | 2193 } |
| 2193 | 2194 |
| 2194 } // namespace dart | 2195 } // namespace dart |
| 2195 | 2196 |
| 2196 #endif // VM_RAW_OBJECT_H_ | 2197 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |