| 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 6486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6497 void Append(const Array& code_list, const Array& pc_offset_list) const; | 6497 void Append(const Array& code_list, const Array& pc_offset_list) const; |
| 6498 | 6498 |
| 6499 static intptr_t InstanceSize() { | 6499 static intptr_t InstanceSize() { |
| 6500 return RoundedAllocationSize(sizeof(RawStacktrace)); | 6500 return RoundedAllocationSize(sizeof(RawStacktrace)); |
| 6501 } | 6501 } |
| 6502 static RawStacktrace* New(const Array& code_array, | 6502 static RawStacktrace* New(const Array& code_array, |
| 6503 const Array& pc_offset_array, | 6503 const Array& pc_offset_array, |
| 6504 Heap::Space space = Heap::kNew); | 6504 Heap::Space space = Heap::kNew); |
| 6505 | 6505 |
| 6506 RawString* FullStacktrace() const; | 6506 RawString* FullStacktrace() const; |
| 6507 const char* ToCStringInternal(intptr_t* frame_index) const; | 6507 |
| 6508 // The argument 'max_frames' limits the number of printed frames. |
| 6509 const char* ToCStringInternal(intptr_t* frame_index, |
| 6510 intptr_t max_frames = kMaxInt32) const; |
| 6508 | 6511 |
| 6509 private: | 6512 private: |
| 6510 void set_code_array(const Array& code_array) const; | 6513 void set_code_array(const Array& code_array) const; |
| 6511 void set_pc_offset_array(const Array& pc_offset_array) const; | 6514 void set_pc_offset_array(const Array& pc_offset_array) const; |
| 6512 void set_catch_code_array(const Array& code_array) const; | 6515 void set_catch_code_array(const Array& code_array) const; |
| 6513 void set_catch_pc_offset_array(const Array& pc_offset_array) const; | 6516 void set_catch_pc_offset_array(const Array& pc_offset_array) const; |
| 6514 bool expand_inlined() const; | 6517 bool expand_inlined() const; |
| 6515 | 6518 |
| 6516 FINAL_HEAP_OBJECT_IMPLEMENTATION(Stacktrace, Instance); | 6519 FINAL_HEAP_OBJECT_IMPLEMENTATION(Stacktrace, Instance); |
| 6517 friend class Class; | 6520 friend class Class; |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6842 | 6845 |
| 6843 | 6846 |
| 6844 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6847 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 6845 intptr_t index) { | 6848 intptr_t index) { |
| 6846 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6849 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 6847 } | 6850 } |
| 6848 | 6851 |
| 6849 } // namespace dart | 6852 } // namespace dart |
| 6850 | 6853 |
| 6851 #endif // VM_OBJECT_H_ | 6854 #endif // VM_OBJECT_H_ |
| OLD | NEW |