| 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/snapshot.h" | 10 #include "vm/snapshot.h" |
| (...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 | 380 |
| 381 class RawType : public RawAbstractType { | 381 class RawType : public RawAbstractType { |
| 382 private: | 382 private: |
| 383 RAW_HEAP_OBJECT_IMPLEMENTATION(Type); | 383 RAW_HEAP_OBJECT_IMPLEMENTATION(Type); |
| 384 | 384 |
| 385 RawObject** from() { | 385 RawObject** from() { |
| 386 return reinterpret_cast<RawObject**>(&ptr()->type_class_); | 386 return reinterpret_cast<RawObject**>(&ptr()->type_class_); |
| 387 } | 387 } |
| 388 RawObject* type_class_; // Either resolved class or unresolved class. | 388 RawObject* type_class_; // Either resolved class or unresolved class. |
| 389 RawAbstractTypeArguments* arguments_; | 389 RawAbstractTypeArguments* arguments_; |
| 390 RawObject** to() { return reinterpret_cast<RawObject**>(&ptr()->arguments_); } | 390 RawError* malformed_error_; // Error object if type is malformed. |
| 391 RawObject** to() { |
| 392 return reinterpret_cast<RawObject**>(&ptr()->malformed_error_); |
| 393 } |
| 391 intptr_t token_index_; | 394 intptr_t token_index_; |
| 392 int8_t type_state_; | 395 int8_t type_state_; |
| 393 }; | 396 }; |
| 394 | 397 |
| 395 | 398 |
| 396 class RawTypeParameter : public RawAbstractType { | 399 class RawTypeParameter : public RawAbstractType { |
| 397 private: | 400 private: |
| 398 RAW_HEAP_OBJECT_IMPLEMENTATION(TypeParameter); | 401 RAW_HEAP_OBJECT_IMPLEMENTATION(TypeParameter); |
| 399 | 402 |
| 400 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } | 403 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } |
| (...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1105 RawString* target_name_; // Name of target function. | 1108 RawString* target_name_; // Name of target function. |
| 1106 RawArray* ic_data_; // Contains test classes and target function. | 1109 RawArray* ic_data_; // Contains test classes and target function. |
| 1107 intptr_t id_; // Parser node id corresponding to this IC. | 1110 intptr_t id_; // Parser node id corresponding to this IC. |
| 1108 intptr_t num_args_tested_; // Number of arguments tested in IC. | 1111 intptr_t num_args_tested_; // Number of arguments tested in IC. |
| 1109 }; | 1112 }; |
| 1110 | 1113 |
| 1111 | 1114 |
| 1112 } // namespace dart | 1115 } // namespace dart |
| 1113 | 1116 |
| 1114 #endif // VM_RAW_OBJECT_H_ | 1117 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |