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

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

Issue 939773003: - Simplify collection of stack traces. If we determine that a stack (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/parser.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 1841 matching lines...) Expand 10 before | Expand all | Expand 10 after
1852 // to implement so we just support the 'toString' method which 1852 // to implement so we just support the 'toString' method which
1853 // converts the stack trace into a string. 1853 // converts the stack trace into a string.
1854 class RawStacktrace : public RawInstance { 1854 class RawStacktrace : public RawInstance {
1855 RAW_HEAP_OBJECT_IMPLEMENTATION(Stacktrace); 1855 RAW_HEAP_OBJECT_IMPLEMENTATION(Stacktrace);
1856 1856
1857 RawObject** from() { 1857 RawObject** from() {
1858 return reinterpret_cast<RawObject**>(&ptr()->code_array_); 1858 return reinterpret_cast<RawObject**>(&ptr()->code_array_);
1859 } 1859 }
1860 RawArray* code_array_; // Code object for each frame in the stack trace. 1860 RawArray* code_array_; // Code object for each frame in the stack trace.
1861 RawArray* pc_offset_array_; // Offset of PC for each frame. 1861 RawArray* pc_offset_array_; // Offset of PC for each frame.
1862 RawArray* catch_code_array_; // Code for each frame in catch stack trace.
1863 RawArray* catch_pc_offset_array_; // Offset of PC for each catch stack frame.
1864 RawObject** to() { 1862 RawObject** to() {
1865 return reinterpret_cast<RawObject**>(&ptr()->catch_pc_offset_array_); 1863 return reinterpret_cast<RawObject**>(&ptr()->pc_offset_array_);
1866 } 1864 }
1867 // False for pre-allocated stack trace (used in OOM and Stack overflow). 1865 // False for pre-allocated stack trace (used in OOM and Stack overflow).
1868 bool expand_inlined_; 1866 bool expand_inlined_;
1869 }; 1867 };
1870 1868
1871 1869
1872 // VM type for capturing JS regular expressions. 1870 // VM type for capturing JS regular expressions.
1873 class RawJSRegExp : public RawInstance { 1871 class RawJSRegExp : public RawInstance {
1874 RAW_HEAP_OBJECT_IMPLEMENTATION(JSRegExp); 1872 RAW_HEAP_OBJECT_IMPLEMENTATION(JSRegExp);
1875 1873
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
2164 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 2162 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
2165 kTypedDataInt8ArrayViewCid + 15); 2163 kTypedDataInt8ArrayViewCid + 15);
2166 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 2164 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
2167 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 2165 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
2168 return (kNullCid - kTypedDataInt8ArrayCid); 2166 return (kNullCid - kTypedDataInt8ArrayCid);
2169 } 2167 }
2170 2168
2171 } // namespace dart 2169 } // namespace dart
2172 2170
2173 #endif // VM_RAW_OBJECT_H_ 2171 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/parser.cc ('k') | runtime/vm/symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698