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 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 473 kAllocated = 0, // Initial state. | 473 kAllocated = 0, // Initial state. |
| 474 kPreFinalized, // VM classes: size precomputed, but no checks done. | 474 kPreFinalized, // VM classes: size precomputed, but no checks done. |
| 475 kFinalized, // Class parsed, finalized and ready for use. | 475 kFinalized, // Class parsed, finalized and ready for use. |
| 476 }; | 476 }; |
| 477 | 477 |
| 478 private: | 478 private: |
| 479 RAW_HEAP_OBJECT_IMPLEMENTATION(Class); | 479 RAW_HEAP_OBJECT_IMPLEMENTATION(Class); |
| 480 | 480 |
| 481 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } | 481 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } |
| 482 RawString* name_; | 482 RawString* name_; |
| 483 RawString* pretty_name_; | |
|
Cutch
2014/05/02 20:16:21
Is the extra space worth the cost of regenerating
turnidge
2014/05/02 21:36:36
Changed the code to no longer cache this value.
| |
| 483 RawString* user_name_; | 484 RawString* user_name_; |
| 484 RawArray* functions_; | 485 RawArray* functions_; |
| 485 RawArray* fields_; | 486 RawArray* fields_; |
| 486 RawArray* offset_in_words_to_field_; | 487 RawArray* offset_in_words_to_field_; |
| 487 RawGrowableObjectArray* closure_functions_; // Local functions and literals. | 488 RawGrowableObjectArray* closure_functions_; // Local functions and literals. |
| 488 RawArray* interfaces_; // Array of AbstractType. | 489 RawArray* interfaces_; // Array of AbstractType. |
| 489 RawGrowableObjectArray* direct_subclasses_; // Array of Class. | 490 RawGrowableObjectArray* direct_subclasses_; // Array of Class. |
| 490 RawScript* script_; | 491 RawScript* script_; |
| 491 RawLibrary* library_; | 492 RawLibrary* library_; |
| 492 RawTypeArguments* type_parameters_; // Array of TypeParameter. | 493 RawTypeArguments* type_parameters_; // Array of TypeParameter. |
| (...skipping 1340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1833 // Make sure this is updated when new TypedData types are added. | 1834 // Make sure this is updated when new TypedData types are added. |
| 1834 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14); | 1835 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14); |
| 1835 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 15); | 1836 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 15); |
| 1836 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14); | 1837 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14); |
| 1837 return (kNullCid - kTypedDataInt8ArrayCid); | 1838 return (kNullCid - kTypedDataInt8ArrayCid); |
| 1838 } | 1839 } |
| 1839 | 1840 |
| 1840 } // namespace dart | 1841 } // namespace dart |
| 1841 | 1842 |
| 1842 #endif // VM_RAW_OBJECT_H_ | 1843 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |