Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(491)

Side by Side Diff: runtime/vm/raw_object.h

Issue 2044753002: Make compile-time errors catchable (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address review comments Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/precompiler.cc ('k') | runtime/vm/symbols.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1585 matching lines...) Expand 10 before | Expand all | Expand 10 after
1596 } 1596 }
1597 RawError* previous_error_; // May be null. 1597 RawError* previous_error_; // May be null.
1598 RawScript* script_; 1598 RawScript* script_;
1599 RawString* message_; 1599 RawString* message_;
1600 RawString* formatted_message_; // Incl. previous error's formatted message. 1600 RawString* formatted_message_; // Incl. previous error's formatted message.
1601 RawObject** to() { 1601 RawObject** to() {
1602 return reinterpret_cast<RawObject**>(&ptr()->formatted_message_); 1602 return reinterpret_cast<RawObject**>(&ptr()->formatted_message_);
1603 } 1603 }
1604 TokenPosition token_pos_; // Source position in script_. 1604 TokenPosition token_pos_; // Source position in script_.
1605 bool report_after_token_; // Report message at or after the token. 1605 bool report_after_token_; // Report message at or after the token.
1606 int8_t kind_; // Of type LanguageError::Kind. 1606 int8_t kind_; // Of type Report::Kind.
1607 }; 1607 };
1608 1608
1609 1609
1610 class RawUnhandledException : public RawError { 1610 class RawUnhandledException : public RawError {
1611 RAW_HEAP_OBJECT_IMPLEMENTATION(UnhandledException); 1611 RAW_HEAP_OBJECT_IMPLEMENTATION(UnhandledException);
1612 1612
1613 RawObject** from() { 1613 RawObject** from() {
1614 return reinterpret_cast<RawObject**>(&ptr()->exception_); 1614 return reinterpret_cast<RawObject**>(&ptr()->exception_);
1615 } 1615 }
1616 RawInstance* exception_; 1616 RawInstance* exception_;
(...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after
2466 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 2466 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
2467 kTypedDataInt8ArrayViewCid + 15); 2467 kTypedDataInt8ArrayViewCid + 15);
2468 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 2468 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
2469 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 2469 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
2470 return (kNullCid - kTypedDataInt8ArrayCid); 2470 return (kNullCid - kTypedDataInt8ArrayCid);
2471 } 2471 }
2472 2472
2473 } // namespace dart 2473 } // namespace dart
2474 2474
2475 #endif // VM_RAW_OBJECT_H_ 2475 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/precompiler.cc ('k') | runtime/vm/symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698