| 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 1368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1379 }; | 1379 }; |
| 1380 | 1380 |
| 1381 | 1381 |
| 1382 class RawUnhandledException : public RawError { | 1382 class RawUnhandledException : public RawError { |
| 1383 RAW_HEAP_OBJECT_IMPLEMENTATION(UnhandledException); | 1383 RAW_HEAP_OBJECT_IMPLEMENTATION(UnhandledException); |
| 1384 | 1384 |
| 1385 RawObject** from() { | 1385 RawObject** from() { |
| 1386 return reinterpret_cast<RawObject**>(&ptr()->exception_); | 1386 return reinterpret_cast<RawObject**>(&ptr()->exception_); |
| 1387 } | 1387 } |
| 1388 RawInstance* exception_; | 1388 RawInstance* exception_; |
| 1389 RawInstance* stacktrace_; | 1389 RawStacktrace* stacktrace_; |
| 1390 RawObject** to() { | 1390 RawObject** to() { |
| 1391 return reinterpret_cast<RawObject**>(&ptr()->stacktrace_); | 1391 return reinterpret_cast<RawObject**>(&ptr()->stacktrace_); |
| 1392 } | 1392 } |
| 1393 }; | 1393 }; |
| 1394 | 1394 |
| 1395 | 1395 |
| 1396 class RawUnwindError : public RawError { | 1396 class RawUnwindError : public RawError { |
| 1397 RAW_HEAP_OBJECT_IMPLEMENTATION(UnwindError); | 1397 RAW_HEAP_OBJECT_IMPLEMENTATION(UnwindError); |
| 1398 | 1398 |
| 1399 RawObject** from() { | 1399 RawObject** from() { |
| (...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2163 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2163 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
| 2164 kTypedDataInt8ArrayViewCid + 15); | 2164 kTypedDataInt8ArrayViewCid + 15); |
| 2165 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2165 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
| 2166 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2166 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
| 2167 return (kNullCid - kTypedDataInt8ArrayCid); | 2167 return (kNullCid - kTypedDataInt8ArrayCid); |
| 2168 } | 2168 } |
| 2169 | 2169 |
| 2170 } // namespace dart | 2170 } // namespace dart |
| 2171 | 2171 |
| 2172 #endif // VM_RAW_OBJECT_H_ | 2172 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |