| OLD | NEW |
| 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_OBJECT_H_ | 5 #ifndef VM_OBJECT_H_ |
| 6 #define VM_OBJECT_H_ | 6 #define 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 7637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7648 void SetPcOffsetAtFrame(intptr_t frame_index, const Smi& pc_offset) const; | 7648 void SetPcOffsetAtFrame(intptr_t frame_index, const Smi& pc_offset) const; |
| 7649 void set_expand_inlined(bool value) const; | 7649 void set_expand_inlined(bool value) const; |
| 7650 | 7650 |
| 7651 static intptr_t InstanceSize() { | 7651 static intptr_t InstanceSize() { |
| 7652 return RoundedAllocationSize(sizeof(RawStacktrace)); | 7652 return RoundedAllocationSize(sizeof(RawStacktrace)); |
| 7653 } | 7653 } |
| 7654 static RawStacktrace* New(const Array& code_array, | 7654 static RawStacktrace* New(const Array& code_array, |
| 7655 const Array& pc_offset_array, | 7655 const Array& pc_offset_array, |
| 7656 Heap::Space space = Heap::kNew); | 7656 Heap::Space space = Heap::kNew); |
| 7657 | 7657 |
| 7658 RawString* FullStacktrace() const; | |
| 7659 | |
| 7660 // The argument 'max_frames' limits the number of printed frames. | 7658 // The argument 'max_frames' limits the number of printed frames. |
| 7661 const char* ToCStringInternal(intptr_t* frame_index, | 7659 const char* ToCStringInternal(intptr_t* frame_index, |
| 7662 intptr_t max_frames = kMaxInt32) const; | 7660 intptr_t max_frames = kMaxInt32) const; |
| 7663 | 7661 |
| 7664 private: | 7662 private: |
| 7665 void set_code_array(const Array& code_array) const; | 7663 void set_code_array(const Array& code_array) const; |
| 7666 void set_pc_offset_array(const Array& pc_offset_array) const; | 7664 void set_pc_offset_array(const Array& pc_offset_array) const; |
| 7667 bool expand_inlined() const; | 7665 bool expand_inlined() const; |
| 7668 | 7666 |
| 7669 FINAL_HEAP_OBJECT_IMPLEMENTATION(Stacktrace, Instance); | 7667 FINAL_HEAP_OBJECT_IMPLEMENTATION(Stacktrace, Instance); |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8048 | 8046 |
| 8049 | 8047 |
| 8050 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 8048 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 8051 intptr_t index) { | 8049 intptr_t index) { |
| 8052 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 8050 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 8053 } | 8051 } |
| 8054 | 8052 |
| 8055 } // namespace dart | 8053 } // namespace dart |
| 8056 | 8054 |
| 8057 #endif // VM_OBJECT_H_ | 8055 #endif // VM_OBJECT_H_ |
| OLD | NEW |