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 1483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1494 return to(); | 1494 return to(); |
1495 case Snapshot::kMessage: | 1495 case Snapshot::kMessage: |
1496 case Snapshot::kNone: | 1496 case Snapshot::kNone: |
1497 case Snapshot::kInvalid: | 1497 case Snapshot::kInvalid: |
1498 break; | 1498 break; |
1499 } | 1499 } |
1500 UNREACHABLE(); | 1500 UNREACHABLE(); |
1501 return NULL; | 1501 return NULL; |
1502 } | 1502 } |
1503 int32_t deopt_id_; // Deoptimization id corresponding to this IC. | 1503 int32_t deopt_id_; // Deoptimization id corresponding to this IC. |
1504 uint32_t state_bits_; // Number of arguments tested in IC, deopt reasons, | 1504 uint32_t state_bits_; // Number of arguments tested in IC, deopt reasons. |
1505 // range feedback. | |
1506 #if defined(TAG_IC_DATA) | 1505 #if defined(TAG_IC_DATA) |
1507 intptr_t tag_; // Debugging, verifying that the icdata is assigned to the | 1506 intptr_t tag_; // Debugging, verifying that the icdata is assigned to the |
1508 // same instruction again. Store -1 or Instruction::Tag. | 1507 // same instruction again. Store -1 or Instruction::Tag. |
1509 #endif | 1508 #endif |
1510 }; | 1509 }; |
1511 | 1510 |
1512 | 1511 |
1513 class RawMegamorphicCache : public RawObject { | 1512 class RawMegamorphicCache : public RawObject { |
1514 RAW_HEAP_OBJECT_IMPLEMENTATION(MegamorphicCache); | 1513 RAW_HEAP_OBJECT_IMPLEMENTATION(MegamorphicCache); |
1515 | 1514 |
(...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2426 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2425 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
2427 kTypedDataInt8ArrayViewCid + 15); | 2426 kTypedDataInt8ArrayViewCid + 15); |
2428 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2427 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
2429 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2428 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
2430 return (kNullCid - kTypedDataInt8ArrayCid); | 2429 return (kNullCid - kTypedDataInt8ArrayCid); |
2431 } | 2430 } |
2432 | 2431 |
2433 } // namespace dart | 2432 } // namespace dart |
2434 | 2433 |
2435 #endif // VM_RAW_OBJECT_H_ | 2434 #endif // VM_RAW_OBJECT_H_ |
OLD | NEW |