Chromium Code Reviews| 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 1441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1452 RawInstance* stacktrace_; | 1452 RawInstance* stacktrace_; |
| 1453 RawObject** to() { | 1453 RawObject** to() { |
| 1454 return reinterpret_cast<RawObject**>(&ptr()->stacktrace_); | 1454 return reinterpret_cast<RawObject**>(&ptr()->stacktrace_); |
| 1455 } | 1455 } |
| 1456 }; | 1456 }; |
| 1457 | 1457 |
| 1458 | 1458 |
| 1459 class RawUnwindError : public RawError { | 1459 class RawUnwindError : public RawError { |
| 1460 RAW_HEAP_OBJECT_IMPLEMENTATION(UnwindError); | 1460 RAW_HEAP_OBJECT_IMPLEMENTATION(UnwindError); |
| 1461 | 1461 |
| 1462 bool is_user_initiated_; | |
|
Cutch
2015/09/24 17:12:58
Usually these fields go *after* to()
turnidge
2015/09/24 17:22:53
Done.
| |
| 1462 RawObject** from() { | 1463 RawObject** from() { |
| 1463 return reinterpret_cast<RawObject**>(&ptr()->message_); | 1464 return reinterpret_cast<RawObject**>(&ptr()->message_); |
| 1464 } | 1465 } |
| 1465 RawString* message_; | 1466 RawString* message_; |
| 1466 RawObject** to() { | 1467 RawObject** to() { |
| 1467 return reinterpret_cast<RawObject**>(&ptr()->message_); | 1468 return reinterpret_cast<RawObject**>(&ptr()->message_); |
| 1468 } | 1469 } |
| 1469 }; | 1470 }; |
| 1470 | 1471 |
| 1471 | 1472 |
| (...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2232 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2233 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
| 2233 kTypedDataInt8ArrayViewCid + 15); | 2234 kTypedDataInt8ArrayViewCid + 15); |
| 2234 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2235 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
| 2235 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2236 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
| 2236 return (kNullCid - kTypedDataInt8ArrayCid); | 2237 return (kNullCid - kTypedDataInt8ArrayCid); |
| 2237 } | 2238 } |
| 2238 | 2239 |
| 2239 } // namespace dart | 2240 } // namespace dart |
| 2240 | 2241 |
| 2241 #endif // VM_RAW_OBJECT_H_ | 2242 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |