| 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 1384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1395 friend class SnapshotReader; | 1395 friend class SnapshotReader; |
| 1396 }; | 1396 }; |
| 1397 | 1397 |
| 1398 | 1398 |
| 1399 class RawICData : public RawObject { | 1399 class RawICData : public RawObject { |
| 1400 RAW_HEAP_OBJECT_IMPLEMENTATION(ICData); | 1400 RAW_HEAP_OBJECT_IMPLEMENTATION(ICData); |
| 1401 | 1401 |
| 1402 RawObject** from() { | 1402 RawObject** from() { |
| 1403 return reinterpret_cast<RawObject**>(&ptr()->owner_); | 1403 return reinterpret_cast<RawObject**>(&ptr()->owner_); |
| 1404 } | 1404 } |
| 1405 RawFunction* owner_; // Parent/calling function of this IC. | 1405 RawObject* owner_; // Parent/calling function or original IC of cloned IC. |
| 1406 RawString* target_name_; // Name of target function. | 1406 RawString* target_name_; // Name of target function. |
| 1407 RawArray* args_descriptor_; // Arguments descriptor. | 1407 RawArray* args_descriptor_; // Arguments descriptor. |
| 1408 RawArray* ic_data_; // Contains class-ids, target and count. | 1408 RawArray* ic_data_; // Contains class-ids, target and count. |
| 1409 RawObject** to() { | 1409 RawObject** to() { |
| 1410 return reinterpret_cast<RawObject**>(&ptr()->ic_data_); | 1410 return reinterpret_cast<RawObject**>(&ptr()->ic_data_); |
| 1411 } | 1411 } |
| 1412 int32_t deopt_id_; // Deoptimization id corresponding to this IC. | 1412 int32_t deopt_id_; // Deoptimization id corresponding to this IC. |
| 1413 uint32_t state_bits_; // Number of arguments tested in IC, deopt reasons, | 1413 uint32_t state_bits_; // Number of arguments tested in IC, deopt reasons, |
| 1414 // is closure call, JS warning issued, range feedback. | 1414 // is closure call, JS warning issued, range feedback. |
| 1415 }; | 1415 }; |
| 1416 | 1416 |
| 1417 | 1417 |
| 1418 class RawMegamorphicCache : public RawObject { | 1418 class RawMegamorphicCache : public RawObject { |
| (...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2269 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2269 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
| 2270 kTypedDataInt8ArrayViewCid + 15); | 2270 kTypedDataInt8ArrayViewCid + 15); |
| 2271 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2271 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
| 2272 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2272 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
| 2273 return (kNullCid - kTypedDataInt8ArrayCid); | 2273 return (kNullCid - kTypedDataInt8ArrayCid); |
| 2274 } | 2274 } |
| 2275 | 2275 |
| 2276 } // namespace dart | 2276 } // namespace dart |
| 2277 | 2277 |
| 2278 #endif // VM_RAW_OBJECT_H_ | 2278 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |