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 RUNTIME_VM_RAW_OBJECT_H_ | 5 #ifndef RUNTIME_VM_RAW_OBJECT_H_ |
6 #define RUNTIME_VM_RAW_OBJECT_H_ | 6 #define RUNTIME_VM_RAW_OBJECT_H_ |
7 | 7 |
8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
9 #include "vm/atomic.h" | 9 #include "vm/atomic.h" |
10 #include "vm/exceptions.h" | 10 #include "vm/exceptions.h" |
(...skipping 1611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1622 }; | 1622 }; |
1623 | 1623 |
1624 | 1624 |
1625 class RawUnwindError : public RawError { | 1625 class RawUnwindError : public RawError { |
1626 RAW_HEAP_OBJECT_IMPLEMENTATION(UnwindError); | 1626 RAW_HEAP_OBJECT_IMPLEMENTATION(UnwindError); |
1627 | 1627 |
1628 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->message_); } | 1628 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->message_); } |
1629 RawString* message_; | 1629 RawString* message_; |
1630 RawObject** to() { return reinterpret_cast<RawObject**>(&ptr()->message_); } | 1630 RawObject** to() { return reinterpret_cast<RawObject**>(&ptr()->message_); } |
1631 bool is_user_initiated_; | 1631 bool is_user_initiated_; |
1632 bool is_vm_restart_; | |
1633 }; | 1632 }; |
1634 | 1633 |
1635 | 1634 |
1636 class RawInstance : public RawObject { | 1635 class RawInstance : public RawObject { |
1637 RAW_HEAP_OBJECT_IMPLEMENTATION(Instance); | 1636 RAW_HEAP_OBJECT_IMPLEMENTATION(Instance); |
1638 }; | 1637 }; |
1639 | 1638 |
1640 | 1639 |
1641 class RawLibraryPrefix : public RawInstance { | 1640 class RawLibraryPrefix : public RawInstance { |
1642 RAW_HEAP_OBJECT_IMPLEMENTATION(LibraryPrefix); | 1641 RAW_HEAP_OBJECT_IMPLEMENTATION(LibraryPrefix); |
(...skipping 800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2443 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2442 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
2444 kTypedDataInt8ArrayViewCid + 15); | 2443 kTypedDataInt8ArrayViewCid + 15); |
2445 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2444 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
2446 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2445 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
2447 return (kNullCid - kTypedDataInt8ArrayCid); | 2446 return (kNullCid - kTypedDataInt8ArrayCid); |
2448 } | 2447 } |
2449 | 2448 |
2450 } // namespace dart | 2449 } // namespace dart |
2451 | 2450 |
2452 #endif // RUNTIME_VM_RAW_OBJECT_H_ | 2451 #endif // RUNTIME_VM_RAW_OBJECT_H_ |
OLD | NEW |