| 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 693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 704 | 704 |
| 705 RawObject** from() { | 705 RawObject** from() { |
| 706 return reinterpret_cast<RawObject**>(&ptr()->instructions_); | 706 return reinterpret_cast<RawObject**>(&ptr()->instructions_); |
| 707 } | 707 } |
| 708 RawInstructions* instructions_; | 708 RawInstructions* instructions_; |
| 709 RawFunction* function_; | 709 RawFunction* function_; |
| 710 RawExceptionHandlers* exception_handlers_; | 710 RawExceptionHandlers* exception_handlers_; |
| 711 RawPcDescriptors* pc_descriptors_; | 711 RawPcDescriptors* pc_descriptors_; |
| 712 RawArray* stackmaps_; | 712 RawArray* stackmaps_; |
| 713 RawLocalVarDescriptors* var_descriptors_; | 713 RawLocalVarDescriptors* var_descriptors_; |
| 714 RawArray* comments_; |
| 714 RawObject** to() { | 715 RawObject** to() { |
| 715 return reinterpret_cast<RawObject**>(&ptr()->var_descriptors_); | 716 return reinterpret_cast<RawObject**>(&ptr()->comments_); |
| 716 } | 717 } |
| 717 | 718 |
| 718 intptr_t pointer_offsets_length_; | 719 intptr_t pointer_offsets_length_; |
| 719 // This cannot be boolean because of alignment issues on x64 architectures. | 720 // This cannot be boolean because of alignment issues on x64 architectures. |
| 720 intptr_t is_optimized_; | 721 intptr_t is_optimized_; |
| 721 | 722 |
| 722 // Variable length data follows here. | 723 // Variable length data follows here. |
| 723 int32_t data_[0]; | 724 int32_t data_[0]; |
| 724 | 725 |
| 725 friend class StackFrame; | 726 friend class StackFrame; |
| (...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1495 kExternalUint64Array == kByteArray + 18 && | 1496 kExternalUint64Array == kByteArray + 18 && |
| 1496 kExternalFloat32Array == kByteArray + 19 && | 1497 kExternalFloat32Array == kByteArray + 19 && |
| 1497 kExternalFloat64Array == kByteArray + 20 && | 1498 kExternalFloat64Array == kByteArray + 20 && |
| 1498 kClosure == kByteArray + 21); | 1499 kClosure == kByteArray + 21); |
| 1499 return (index >= kByteArray && index <= kClosure); | 1500 return (index >= kByteArray && index <= kClosure); |
| 1500 } | 1501 } |
| 1501 | 1502 |
| 1502 } // namespace dart | 1503 } // namespace dart |
| 1503 | 1504 |
| 1504 #endif // VM_RAW_OBJECT_H_ | 1505 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |