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 1403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1414 | 1414 |
1415 | 1415 |
1416 class RawMegamorphicCache : public RawObject { | 1416 class RawMegamorphicCache : public RawObject { |
1417 RAW_HEAP_OBJECT_IMPLEMENTATION(MegamorphicCache); | 1417 RAW_HEAP_OBJECT_IMPLEMENTATION(MegamorphicCache); |
1418 | 1418 |
1419 RawObject** from() { | 1419 RawObject** from() { |
1420 return reinterpret_cast<RawObject**>(&ptr()->buckets_); | 1420 return reinterpret_cast<RawObject**>(&ptr()->buckets_); |
1421 } | 1421 } |
1422 RawArray* buckets_; | 1422 RawArray* buckets_; |
1423 RawSmi* mask_; | 1423 RawSmi* mask_; |
| 1424 RawString* target_name_; // Name of target function. |
| 1425 RawArray* args_descriptor_; // Arguments descriptor. |
1424 RawObject** to() { | 1426 RawObject** to() { |
1425 return reinterpret_cast<RawObject**>(&ptr()->mask_); | 1427 return reinterpret_cast<RawObject**>(&ptr()->args_descriptor_); |
1426 } | 1428 } |
1427 | 1429 |
1428 int32_t filled_entry_count_; | 1430 int32_t filled_entry_count_; |
1429 }; | 1431 }; |
1430 | 1432 |
1431 | 1433 |
1432 class RawSubtypeTestCache : public RawObject { | 1434 class RawSubtypeTestCache : public RawObject { |
1433 RAW_HEAP_OBJECT_IMPLEMENTATION(SubtypeTestCache); | 1435 RAW_HEAP_OBJECT_IMPLEMENTATION(SubtypeTestCache); |
1434 RawArray* cache_; | 1436 RawArray* cache_; |
1435 }; | 1437 }; |
(...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2265 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2267 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
2266 kTypedDataInt8ArrayViewCid + 15); | 2268 kTypedDataInt8ArrayViewCid + 15); |
2267 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2269 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
2268 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2270 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
2269 return (kNullCid - kTypedDataInt8ArrayCid); | 2271 return (kNullCid - kTypedDataInt8ArrayCid); |
2270 } | 2272 } |
2271 | 2273 |
2272 } // namespace dart | 2274 } // namespace dart |
2273 | 2275 |
2274 #endif // VM_RAW_OBJECT_H_ | 2276 #endif // VM_RAW_OBJECT_H_ |
OLD | NEW |