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/atomic.h" | 9 #include "vm/atomic.h" |
10 #include "vm/globals.h" | 10 #include "vm/globals.h" |
(...skipping 1453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1464 RAW_HEAP_OBJECT_IMPLEMENTATION(UnwindError); | 1464 RAW_HEAP_OBJECT_IMPLEMENTATION(UnwindError); |
1465 | 1465 |
1466 RawObject** from() { | 1466 RawObject** from() { |
1467 return reinterpret_cast<RawObject**>(&ptr()->message_); | 1467 return reinterpret_cast<RawObject**>(&ptr()->message_); |
1468 } | 1468 } |
1469 RawString* message_; | 1469 RawString* message_; |
1470 RawObject** to() { | 1470 RawObject** to() { |
1471 return reinterpret_cast<RawObject**>(&ptr()->message_); | 1471 return reinterpret_cast<RawObject**>(&ptr()->message_); |
1472 } | 1472 } |
1473 bool is_user_initiated_; | 1473 bool is_user_initiated_; |
| 1474 bool is_vm_restart_; |
1474 }; | 1475 }; |
1475 | 1476 |
1476 | 1477 |
1477 class RawInstance : public RawObject { | 1478 class RawInstance : public RawObject { |
1478 RAW_HEAP_OBJECT_IMPLEMENTATION(Instance); | 1479 RAW_HEAP_OBJECT_IMPLEMENTATION(Instance); |
1479 }; | 1480 }; |
1480 | 1481 |
1481 | 1482 |
1482 class RawLibraryPrefix : public RawInstance { | 1483 class RawLibraryPrefix : public RawInstance { |
1483 RAW_HEAP_OBJECT_IMPLEMENTATION(LibraryPrefix); | 1484 RAW_HEAP_OBJECT_IMPLEMENTATION(LibraryPrefix); |
(...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2239 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2240 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
2240 kTypedDataInt8ArrayViewCid + 15); | 2241 kTypedDataInt8ArrayViewCid + 15); |
2241 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2242 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
2242 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2243 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
2243 return (kNullCid - kTypedDataInt8ArrayCid); | 2244 return (kNullCid - kTypedDataInt8ArrayCid); |
2244 } | 2245 } |
2245 | 2246 |
2246 } // namespace dart | 2247 } // namespace dart |
2247 | 2248 |
2248 #endif // VM_RAW_OBJECT_H_ | 2249 #endif // VM_RAW_OBJECT_H_ |
OLD | NEW |