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

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

Issue 2646443005: Track async causal stack traces (Closed)
Patch Set: rebase Created 3 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
« no previous file with comments | « runtime/vm/parser.cc ('k') | runtime/vm/service.cc » ('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 RUNTIME_VM_RAW_OBJECT_H_ 5 #ifndef RUNTIME_VM_RAW_OBJECT_H_
6 #define RUNTIME_VM_RAW_OBJECT_H_ 6 #define RUNTIME_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 2123 matching lines...) Expand 10 before | Expand all | Expand 10 after
2134 2134
2135 2135
2136 // VM type for capturing stacktraces when exceptions are thrown, 2136 // VM type for capturing stacktraces when exceptions are thrown,
2137 // Currently we don't have any interface that this object is supposed 2137 // Currently we don't have any interface that this object is supposed
2138 // to implement so we just support the 'toString' method which 2138 // to implement so we just support the 'toString' method which
2139 // converts the stack trace into a string. 2139 // converts the stack trace into a string.
2140 class RawStackTrace : public RawInstance { 2140 class RawStackTrace : public RawInstance {
2141 RAW_HEAP_OBJECT_IMPLEMENTATION(StackTrace); 2141 RAW_HEAP_OBJECT_IMPLEMENTATION(StackTrace);
2142 2142
2143 RawObject** from() { 2143 RawObject** from() {
2144 return reinterpret_cast<RawObject**>(&ptr()->code_array_); 2144 return reinterpret_cast<RawObject**>(&ptr()->async_link_);
2145 } 2145 }
2146 RawStackTrace* async_link_; // Link to parent async stack trace.
2146 RawArray* code_array_; // Code object for each frame in the stack trace. 2147 RawArray* code_array_; // Code object for each frame in the stack trace.
2147 RawArray* pc_offset_array_; // Offset of PC for each frame. 2148 RawArray* pc_offset_array_; // Offset of PC for each frame.
2148 RawObject** to() { 2149 RawObject** to() {
2149 return reinterpret_cast<RawObject**>(&ptr()->pc_offset_array_); 2150 return reinterpret_cast<RawObject**>(&ptr()->pc_offset_array_);
2150 } 2151 }
2151 // False for pre-allocated stack trace (used in OOM and Stack overflow). 2152 // False for pre-allocated stack trace (used in OOM and Stack overflow).
2152 bool expand_inlined_; 2153 bool expand_inlined_;
2153 }; 2154 };
2154 2155
2155 2156
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
2438 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 2439 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
2439 kTypedDataInt8ArrayViewCid + 15); 2440 kTypedDataInt8ArrayViewCid + 15);
2440 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 2441 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
2441 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 2442 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
2442 return (kNullCid - kTypedDataInt8ArrayCid); 2443 return (kNullCid - kTypedDataInt8ArrayCid);
2443 } 2444 }
2444 2445
2445 } // namespace dart 2446 } // namespace dart
2446 2447
2447 #endif // RUNTIME_VM_RAW_OBJECT_H_ 2448 #endif // RUNTIME_VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/parser.cc ('k') | runtime/vm/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698