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

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

Issue 940863002: - Allow any implementation of StackTrace to participate in async/ (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/object.cc ('k') | tests/language/custom_await_stack_trace_test.dart » ('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 1369 matching lines...) Expand 10 before | Expand all | Expand 10 after
1380 }; 1380 };
1381 1381
1382 1382
1383 class RawUnhandledException : public RawError { 1383 class RawUnhandledException : public RawError {
1384 RAW_HEAP_OBJECT_IMPLEMENTATION(UnhandledException); 1384 RAW_HEAP_OBJECT_IMPLEMENTATION(UnhandledException);
1385 1385
1386 RawObject** from() { 1386 RawObject** from() {
1387 return reinterpret_cast<RawObject**>(&ptr()->exception_); 1387 return reinterpret_cast<RawObject**>(&ptr()->exception_);
1388 } 1388 }
1389 RawInstance* exception_; 1389 RawInstance* exception_;
1390 RawStacktrace* stacktrace_; 1390 RawInstance* stacktrace_;
1391 RawObject** to() { 1391 RawObject** to() {
1392 return reinterpret_cast<RawObject**>(&ptr()->stacktrace_); 1392 return reinterpret_cast<RawObject**>(&ptr()->stacktrace_);
1393 } 1393 }
1394 }; 1394 };
1395 1395
1396 1396
1397 class RawUnwindError : public RawError { 1397 class RawUnwindError : public RawError {
1398 RAW_HEAP_OBJECT_IMPLEMENTATION(UnwindError); 1398 RAW_HEAP_OBJECT_IMPLEMENTATION(UnwindError);
1399 1399
1400 RawObject** from() { 1400 RawObject** from() {
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after
2162 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 2162 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
2163 kTypedDataInt8ArrayViewCid + 15); 2163 kTypedDataInt8ArrayViewCid + 15);
2164 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 2164 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
2165 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 2165 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
2166 return (kNullCid - kTypedDataInt8ArrayCid); 2166 return (kNullCid - kTypedDataInt8ArrayCid);
2167 } 2167 }
2168 2168
2169 } // namespace dart 2169 } // namespace dart
2170 2170
2171 #endif // VM_RAW_OBJECT_H_ 2171 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | tests/language/custom_await_stack_trace_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698