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 1573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1584 } | 1584 } |
1585 RawError* previous_error_; // May be null. | 1585 RawError* previous_error_; // May be null. |
1586 RawScript* script_; | 1586 RawScript* script_; |
1587 RawString* message_; | 1587 RawString* message_; |
1588 RawString* formatted_message_; // Incl. previous error's formatted message. | 1588 RawString* formatted_message_; // Incl. previous error's formatted message. |
1589 RawObject** to() { | 1589 RawObject** to() { |
1590 return reinterpret_cast<RawObject**>(&ptr()->formatted_message_); | 1590 return reinterpret_cast<RawObject**>(&ptr()->formatted_message_); |
1591 } | 1591 } |
1592 TokenPosition token_pos_; // Source position in script_. | 1592 TokenPosition token_pos_; // Source position in script_. |
1593 bool report_after_token_; // Report message at or after the token. | 1593 bool report_after_token_; // Report message at or after the token. |
1594 int8_t kind_; // Of type LanguageError::Kind. | 1594 int8_t kind_; // Of type Report::Kind. |
1595 }; | 1595 }; |
1596 | 1596 |
1597 | 1597 |
1598 class RawUnhandledException : public RawError { | 1598 class RawUnhandledException : public RawError { |
1599 RAW_HEAP_OBJECT_IMPLEMENTATION(UnhandledException); | 1599 RAW_HEAP_OBJECT_IMPLEMENTATION(UnhandledException); |
1600 | 1600 |
1601 RawObject** from() { | 1601 RawObject** from() { |
1602 return reinterpret_cast<RawObject**>(&ptr()->exception_); | 1602 return reinterpret_cast<RawObject**>(&ptr()->exception_); |
1603 } | 1603 } |
1604 RawInstance* exception_; | 1604 RawInstance* exception_; |
(...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2454 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2454 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
2455 kTypedDataInt8ArrayViewCid + 15); | 2455 kTypedDataInt8ArrayViewCid + 15); |
2456 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2456 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
2457 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2457 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
2458 return (kNullCid - kTypedDataInt8ArrayCid); | 2458 return (kNullCid - kTypedDataInt8ArrayCid); |
2459 } | 2459 } |
2460 | 2460 |
2461 } // namespace dart | 2461 } // namespace dart |
2462 | 2462 |
2463 #endif // VM_RAW_OBJECT_H_ | 2463 #endif // VM_RAW_OBJECT_H_ |
OLD | NEW |