| 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 984 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 995 RAW_HEAP_OBJECT_IMPLEMENTATION(ImmutableArray); | 995 RAW_HEAP_OBJECT_IMPLEMENTATION(ImmutableArray); |
| 996 | 996 |
| 997 friend class SnapshotReader; | 997 friend class SnapshotReader; |
| 998 }; | 998 }; |
| 999 | 999 |
| 1000 | 1000 |
| 1001 class RawGrowableObjectArray : public RawInstance { | 1001 class RawGrowableObjectArray : public RawInstance { |
| 1002 RAW_HEAP_OBJECT_IMPLEMENTATION(GrowableObjectArray); | 1002 RAW_HEAP_OBJECT_IMPLEMENTATION(GrowableObjectArray); |
| 1003 | 1003 |
| 1004 RawObject** from() { | 1004 RawObject** from() { |
| 1005 return reinterpret_cast<RawObject**>(&ptr()->data_); | 1005 return reinterpret_cast<RawObject**>(&ptr()->length_); |
| 1006 } | 1006 } |
| 1007 RawSmi* length_; | 1007 RawSmi* length_; |
| 1008 RawArray* data_; | 1008 RawArray* data_; |
| 1009 RawObject** to() { | 1009 RawObject** to() { |
| 1010 return reinterpret_cast<RawObject**>(&ptr()->data_); | 1010 return reinterpret_cast<RawObject**>(&ptr()->data_); |
| 1011 } | 1011 } |
| 1012 | 1012 |
| 1013 friend class SnapshotReader; | 1013 friend class SnapshotReader; |
| 1014 }; | 1014 }; |
| 1015 | 1015 |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1138 RawString* target_name_; // Name of target function. | 1138 RawString* target_name_; // Name of target function. |
| 1139 RawArray* ic_data_; // Contains test classes and target function. | 1139 RawArray* ic_data_; // Contains test classes and target function. |
| 1140 intptr_t id_; // Parser node id corresponding to this IC. | 1140 intptr_t id_; // Parser node id corresponding to this IC. |
| 1141 intptr_t num_args_tested_; // Number of arguments tested in IC. | 1141 intptr_t num_args_tested_; // Number of arguments tested in IC. |
| 1142 }; | 1142 }; |
| 1143 | 1143 |
| 1144 | 1144 |
| 1145 } // namespace dart | 1145 } // namespace dart |
| 1146 | 1146 |
| 1147 #endif // VM_RAW_OBJECT_H_ | 1147 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |