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

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

Issue 2646443005: Track async causal stack traces (Closed)
Patch Set: Observatory UI support Created 3 years, 11 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
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_OBJECT_H_ 5 #ifndef RUNTIME_VM_OBJECT_H_
6 #define RUNTIME_VM_OBJECT_H_ 6 #define RUNTIME_VM_OBJECT_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/utils.h" 10 #include "platform/utils.h"
(...skipping 8424 matching lines...) Expand 10 before | Expand all | Expand 10 after
8435 8435
8436 // Internal stacktrace object used in exceptions for printing stack traces. 8436 // Internal stacktrace object used in exceptions for printing stack traces.
8437 class StackTrace : public Instance { 8437 class StackTrace : public Instance {
8438 public: 8438 public:
8439 static const int kPreallocatedStackdepth = 30; 8439 static const int kPreallocatedStackdepth = 30;
8440 8440
8441 intptr_t Length() const; 8441 intptr_t Length() const;
8442 8442
8443 RawFunction* FunctionAtFrame(intptr_t frame_index) const; 8443 RawFunction* FunctionAtFrame(intptr_t frame_index) const;
8444 8444
8445 RawArray* code_array() const { return raw_ptr()->code_array_; }
8445 RawCode* CodeAtFrame(intptr_t frame_index) const; 8446 RawCode* CodeAtFrame(intptr_t frame_index) const;
8446 void SetCodeAtFrame(intptr_t frame_index, const Code& code) const; 8447 void SetCodeAtFrame(intptr_t frame_index, const Code& code) const;
8447 8448
8449 RawArray* pc_offset_array() const { return raw_ptr()->pc_offset_array_; }
8448 RawSmi* PcOffsetAtFrame(intptr_t frame_index) const; 8450 RawSmi* PcOffsetAtFrame(intptr_t frame_index) const;
8449 void SetPcOffsetAtFrame(intptr_t frame_index, const Smi& pc_offset) const; 8451 void SetPcOffsetAtFrame(intptr_t frame_index, const Smi& pc_offset) const;
8450 void set_expand_inlined(bool value) const; 8452 void set_expand_inlined(bool value) const;
8451 8453
8452 static intptr_t InstanceSize() { 8454 static intptr_t InstanceSize() {
8453 return RoundedAllocationSize(sizeof(RawStackTrace)); 8455 return RoundedAllocationSize(sizeof(RawStackTrace));
8454 } 8456 }
8455 static RawStackTrace* New(const Array& code_array, 8457 static RawStackTrace* New(const Array& code_array,
8456 const Array& pc_offset_array, 8458 const Array& pc_offset_array,
8457 Heap::Space space = Heap::kNew); 8459 Heap::Space space = Heap::kNew);
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
8945 8947
8946 inline void TypeArguments::SetHash(intptr_t value) const { 8948 inline void TypeArguments::SetHash(intptr_t value) const {
8947 // This is only safe because we create a new Smi, which does not cause 8949 // This is only safe because we create a new Smi, which does not cause
8948 // heap allocation. 8950 // heap allocation.
8949 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); 8951 StoreSmi(&raw_ptr()->hash_, Smi::New(value));
8950 } 8952 }
8951 8953
8952 } // namespace dart 8954 } // namespace dart
8953 8955
8954 #endif // RUNTIME_VM_OBJECT_H_ 8956 #endif // RUNTIME_VM_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698