| 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/globals.h" | 9 #include "vm/globals.h" |
| 10 #include "vm/token.h" | 10 #include "vm/token.h" |
| (...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 RawClass* parameterized_class_; | 501 RawClass* parameterized_class_; |
| 502 RawString* name_; | 502 RawString* name_; |
| 503 RawAbstractType* bound_; // DynamicType if no explicit bound specified. | 503 RawAbstractType* bound_; // DynamicType if no explicit bound specified. |
| 504 RawObject** to() { return reinterpret_cast<RawObject**>(&ptr()->bound_); } | 504 RawObject** to() { return reinterpret_cast<RawObject**>(&ptr()->bound_); } |
| 505 intptr_t index_; | 505 intptr_t index_; |
| 506 intptr_t token_pos_; | 506 intptr_t token_pos_; |
| 507 int8_t type_state_; | 507 int8_t type_state_; |
| 508 }; | 508 }; |
| 509 | 509 |
| 510 | 510 |
| 511 class RawInstantiatedType : public RawAbstractType { | |
| 512 private: | |
| 513 RAW_HEAP_OBJECT_IMPLEMENTATION(InstantiatedType); | |
| 514 | |
| 515 RawObject** from() { | |
| 516 return reinterpret_cast<RawObject**>(&ptr()->uninstantiated_type_); | |
| 517 } | |
| 518 RawAbstractType* uninstantiated_type_; | |
| 519 RawAbstractTypeArguments* instantiator_type_arguments_; | |
| 520 RawObject** to() { | |
| 521 return reinterpret_cast<RawObject**>(&ptr()->instantiator_type_arguments_); | |
| 522 } | |
| 523 }; | |
| 524 | |
| 525 | |
| 526 class RawAbstractTypeArguments : public RawObject { | 511 class RawAbstractTypeArguments : public RawObject { |
| 527 private: | 512 private: |
| 528 RAW_HEAP_OBJECT_IMPLEMENTATION(AbstractTypeArguments); | 513 RAW_HEAP_OBJECT_IMPLEMENTATION(AbstractTypeArguments); |
| 529 }; | 514 }; |
| 530 | 515 |
| 531 | 516 |
| 532 class RawTypeArguments : public RawAbstractTypeArguments { | 517 class RawTypeArguments : public RawAbstractTypeArguments { |
| 533 private: | 518 private: |
| 534 RAW_HEAP_OBJECT_IMPLEMENTATION(TypeArguments); | 519 RAW_HEAP_OBJECT_IMPLEMENTATION(TypeArguments); |
| 535 | 520 |
| (...skipping 1100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1636 kExternalUint64ArrayCid == kByteArrayCid + 18 && | 1621 kExternalUint64ArrayCid == kByteArrayCid + 18 && |
| 1637 kExternalFloat32ArrayCid == kByteArrayCid + 19 && | 1622 kExternalFloat32ArrayCid == kByteArrayCid + 19 && |
| 1638 kExternalFloat64ArrayCid == kByteArrayCid + 20 && | 1623 kExternalFloat64ArrayCid == kByteArrayCid + 20 && |
| 1639 kStacktraceCid == kByteArrayCid + 21); | 1624 kStacktraceCid == kByteArrayCid + 21); |
| 1640 return (index >= kByteArrayCid && index <= kExternalFloat64ArrayCid); | 1625 return (index >= kByteArrayCid && index <= kExternalFloat64ArrayCid); |
| 1641 } | 1626 } |
| 1642 | 1627 |
| 1643 } // namespace dart | 1628 } // namespace dart |
| 1644 | 1629 |
| 1645 #endif // VM_RAW_OBJECT_H_ | 1630 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |