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 1155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1166 // Variable length data follows here. | 1166 // Variable length data follows here. |
1167 intptr_t* data() { OPEN_ARRAY_START(intptr_t, intptr_t); } | 1167 intptr_t* data() { OPEN_ARRAY_START(intptr_t, intptr_t); } |
1168 const intptr_t* data() const { OPEN_ARRAY_START(intptr_t, intptr_t); } | 1168 const intptr_t* data() const { OPEN_ARRAY_START(intptr_t, intptr_t); } |
1169 }; | 1169 }; |
1170 | 1170 |
1171 | 1171 |
1172 class RawContext : public RawObject { | 1172 class RawContext : public RawObject { |
1173 RAW_HEAP_OBJECT_IMPLEMENTATION(Context); | 1173 RAW_HEAP_OBJECT_IMPLEMENTATION(Context); |
1174 | 1174 |
1175 int32_t num_variables_; | 1175 int32_t num_variables_; |
1176 Isolate* isolate_; | |
1177 | 1176 |
1178 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->parent_); } | 1177 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->parent_); } |
1179 RawContext* parent_; | 1178 RawContext* parent_; |
1180 | 1179 |
1181 // Variable length data follows here. | 1180 // Variable length data follows here. |
1182 RawInstance** data() { OPEN_ARRAY_START(RawInstance*, RawInstance*); } | 1181 RawInstance** data() { OPEN_ARRAY_START(RawInstance*, RawInstance*); } |
1183 RawInstance* const* data() const { | 1182 RawInstance* const* data() const { |
1184 OPEN_ARRAY_START(RawInstance*, RawInstance*); | 1183 OPEN_ARRAY_START(RawInstance*, RawInstance*); |
1185 } | 1184 } |
1186 RawObject** to(intptr_t num_vars) { | 1185 RawObject** to(intptr_t num_vars) { |
(...skipping 882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2069 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2068 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
2070 kTypedDataInt8ArrayViewCid + 15); | 2069 kTypedDataInt8ArrayViewCid + 15); |
2071 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2070 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
2072 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2071 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
2073 return (kNullCid - kTypedDataInt8ArrayCid); | 2072 return (kNullCid - kTypedDataInt8ArrayCid); |
2074 } | 2073 } |
2075 | 2074 |
2076 } // namespace dart | 2075 } // namespace dart |
2077 | 2076 |
2078 #endif // VM_RAW_OBJECT_H_ | 2077 #endif // VM_RAW_OBJECT_H_ |
OLD | NEW |