Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 "vm/assert.h" | 8 #include "vm/assert.h" |
| 9 #include "vm/globals.h" | 9 #include "vm/globals.h" |
| 10 #include "vm/snapshot.h" | 10 #include "vm/snapshot.h" |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 328 class RawAbstractTypeArguments : public RawObject { | 328 class RawAbstractTypeArguments : public RawObject { |
| 329 RAW_HEAP_OBJECT_IMPLEMENTATION(AbstractTypeArguments); | 329 RAW_HEAP_OBJECT_IMPLEMENTATION(AbstractTypeArguments); |
| 330 }; | 330 }; |
| 331 | 331 |
| 332 | 332 |
| 333 class RawTypeArguments : public RawAbstractTypeArguments { | 333 class RawTypeArguments : public RawAbstractTypeArguments { |
| 334 private: | 334 private: |
| 335 RAW_HEAP_OBJECT_IMPLEMENTATION(TypeArguments); | 335 RAW_HEAP_OBJECT_IMPLEMENTATION(TypeArguments); |
| 336 | 336 |
| 337 RawObject** from() { | 337 RawObject** from() { |
| 338 return reinterpret_cast<RawObject**>(&ptr()->length_); | 338 return reinterpret_cast<RawObject**>(&ptr()->length_); |
|
regis
2011/12/05 23:16:35
length_ needs to be changed if you keep a dart boo
srdjan
2011/12/06 17:24:15
Removed Dart Bool, using C++ bool. I think length
| |
| 339 } | 339 } |
| 340 RawSmi* length_; | 340 RawSmi* length_; |
| 341 RawBool* is_canonical_; | |
|
regis
2011/12/05 23:16:35
Why a dart bool?
srdjan
2011/12/06 17:24:15
Changed to C++ bool.
| |
| 341 | 342 |
| 342 // Variable length data follows here. | 343 // Variable length data follows here. |
| 343 RawAbstractType* types_[0]; | 344 RawAbstractType* types_[0]; |
| 344 RawObject** to(intptr_t length) { | 345 RawObject** to(intptr_t length) { |
| 345 return reinterpret_cast<RawObject**>(&ptr()->types_[length - 1]); | 346 return reinterpret_cast<RawObject**>(&ptr()->types_[length - 1]); |
| 346 } | 347 } |
| 347 }; | 348 }; |
| 348 | 349 |
| 349 | 350 |
| 350 class RawInstantiatedTypeArguments : public RawAbstractTypeArguments { | 351 class RawInstantiatedTypeArguments : public RawAbstractTypeArguments { |
| (...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 855 intptr_t type_; // Uninitialized, simple or complex. | 856 intptr_t type_; // Uninitialized, simple or complex. |
| 856 intptr_t flags_; // Represents global/local, case insensitive, multiline. | 857 intptr_t flags_; // Represents global/local, case insensitive, multiline. |
| 857 | 858 |
| 858 // Variable length data follows here. | 859 // Variable length data follows here. |
| 859 uint8_t data_[0]; | 860 uint8_t data_[0]; |
| 860 }; | 861 }; |
| 861 | 862 |
| 862 } // namespace dart | 863 } // namespace dart |
| 863 | 864 |
| 864 #endif // VM_RAW_OBJECT_H_ | 865 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |