Chromium Code Reviews| 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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 369 kAllocated, // Initial state. | 369 kAllocated, // Initial state. |
| 370 kPreFinalized, // VM classes: size precomputed, but no checks done. | 370 kPreFinalized, // VM classes: size precomputed, but no checks done. |
| 371 kFinalized, // All checks completed, class ready for use. | 371 kFinalized, // All checks completed, class ready for use. |
| 372 }; | 372 }; |
| 373 | 373 |
| 374 private: | 374 private: |
| 375 RAW_HEAP_OBJECT_IMPLEMENTATION(Class); | 375 RAW_HEAP_OBJECT_IMPLEMENTATION(Class); |
| 376 | 376 |
| 377 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } | 377 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } |
| 378 RawString* name_; | 378 RawString* name_; |
| 379 RawString* user_visible_name_; | |
|
srdjan
2012/07/18 00:41:39
Let's talk tomorrow if we need that extra field, i
| |
| 379 RawArray* functions_; | 380 RawArray* functions_; |
| 380 RawArray* fields_; | 381 RawArray* fields_; |
| 381 RawGrowableObjectArray* closure_functions_; // Local functions and literals. | 382 RawGrowableObjectArray* closure_functions_; // Local functions and literals. |
| 382 RawArray* interfaces_; // Array of AbstractType. | 383 RawArray* interfaces_; // Array of AbstractType. |
| 383 RawScript* script_; | 384 RawScript* script_; |
| 384 RawLibrary* library_; | 385 RawLibrary* library_; |
| 385 RawTypeArguments* type_parameters_; // Array of TypeParameter. | 386 RawTypeArguments* type_parameters_; // Array of TypeParameter. |
| 386 RawType* super_type_; | 387 RawType* super_type_; |
| 387 RawObject* factory_class_; // UnresolvedClass (until finalization) or Class. | 388 RawObject* factory_class_; // UnresolvedClass (until finalization) or Class. |
| 388 RawFunction* signature_function_; // Associated function for signature class. | 389 RawFunction* signature_function_; // Associated function for signature class. |
| (...skipping 1127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1516 kExternalUint64Array == kByteArray + 18 && | 1517 kExternalUint64Array == kByteArray + 18 && |
| 1517 kExternalFloat32Array == kByteArray + 19 && | 1518 kExternalFloat32Array == kByteArray + 19 && |
| 1518 kExternalFloat64Array == kByteArray + 20 && | 1519 kExternalFloat64Array == kByteArray + 20 && |
| 1519 kClosure == kByteArray + 21); | 1520 kClosure == kByteArray + 21); |
| 1520 return (index >= kByteArray && index <= kClosure); | 1521 return (index >= kByteArray && index <= kClosure); |
| 1521 } | 1522 } |
| 1522 | 1523 |
| 1523 } // namespace dart | 1524 } // namespace dart |
| 1524 | 1525 |
| 1525 #endif // VM_RAW_OBJECT_H_ | 1526 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |