| 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 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 591 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } | 591 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } |
| 592 RawString* name_; | 592 RawString* name_; |
| 593 RawClass* owner_; | 593 RawClass* owner_; |
| 594 RawAbstractType* type_; | 594 RawAbstractType* type_; |
| 595 RawInstance* value_; // Offset for instance and value for static fields. | 595 RawInstance* value_; // Offset for instance and value for static fields. |
| 596 RawObject** to() { return reinterpret_cast<RawObject**>(&ptr()->value_); } | 596 RawObject** to() { return reinterpret_cast<RawObject**>(&ptr()->value_); } |
| 597 | 597 |
| 598 intptr_t token_pos_; | 598 intptr_t token_pos_; |
| 599 bool is_static_; | 599 bool is_static_; |
| 600 bool is_final_; | 600 bool is_final_; |
| 601 bool is_const_; |
| 601 bool has_initializer_; | 602 bool has_initializer_; |
| 602 }; | 603 }; |
| 603 | 604 |
| 604 | 605 |
| 605 class RawLiteralToken : public RawObject { | 606 class RawLiteralToken : public RawObject { |
| 606 RAW_HEAP_OBJECT_IMPLEMENTATION(LiteralToken); | 607 RAW_HEAP_OBJECT_IMPLEMENTATION(LiteralToken); |
| 607 | 608 |
| 608 RawObject** from() { | 609 RawObject** from() { |
| 609 return reinterpret_cast<RawObject**>(&ptr()->literal_); | 610 return reinterpret_cast<RawObject**>(&ptr()->literal_); |
| 610 } | 611 } |
| (...skipping 905 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 |