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 7626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7637 void SetPcOffsetAtFrame(intptr_t frame_index, const Smi& pc_offset) const; | 7637 void SetPcOffsetAtFrame(intptr_t frame_index, const Smi& pc_offset) const; |
7638 void set_expand_inlined(bool value) const; | 7638 void set_expand_inlined(bool value) const; |
7639 | 7639 |
7640 static intptr_t InstanceSize() { | 7640 static intptr_t InstanceSize() { |
7641 return RoundedAllocationSize(sizeof(RawStacktrace)); | 7641 return RoundedAllocationSize(sizeof(RawStacktrace)); |
7642 } | 7642 } |
7643 static RawStacktrace* New(const Array& code_array, | 7643 static RawStacktrace* New(const Array& code_array, |
7644 const Array& pc_offset_array, | 7644 const Array& pc_offset_array, |
7645 Heap::Space space = Heap::kNew); | 7645 Heap::Space space = Heap::kNew); |
7646 | 7646 |
7647 RawString* FullStacktrace() const; | |
7648 | |
7649 // The argument 'max_frames' limits the number of printed frames. | 7647 // The argument 'max_frames' limits the number of printed frames. |
7650 const char* ToCStringInternal(intptr_t* frame_index, | 7648 const char* ToCStringInternal(intptr_t* frame_index, |
7651 intptr_t max_frames = kMaxInt32) const; | 7649 intptr_t max_frames = kMaxInt32) const; |
7652 | 7650 |
7653 private: | 7651 private: |
7654 void set_code_array(const Array& code_array) const; | 7652 void set_code_array(const Array& code_array) const; |
7655 void set_pc_offset_array(const Array& pc_offset_array) const; | 7653 void set_pc_offset_array(const Array& pc_offset_array) const; |
7656 bool expand_inlined() const; | 7654 bool expand_inlined() const; |
7657 | 7655 |
7658 FINAL_HEAP_OBJECT_IMPLEMENTATION(Stacktrace, Instance); | 7656 FINAL_HEAP_OBJECT_IMPLEMENTATION(Stacktrace, Instance); |
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8037 | 8035 |
8038 | 8036 |
8039 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 8037 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
8040 intptr_t index) { | 8038 intptr_t index) { |
8041 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 8039 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
8042 } | 8040 } |
8043 | 8041 |
8044 } // namespace dart | 8042 } // namespace dart |
8045 | 8043 |
8046 #endif // VM_OBJECT_H_ | 8044 #endif // VM_OBJECT_H_ |
OLD | NEW |