| 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 6479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6490 void Append(const Array& code_list, const Array& pc_offset_list) const; | 6490 void Append(const Array& code_list, const Array& pc_offset_list) const; |
| 6491 | 6491 |
| 6492 static intptr_t InstanceSize() { | 6492 static intptr_t InstanceSize() { |
| 6493 return RoundedAllocationSize(sizeof(RawStacktrace)); | 6493 return RoundedAllocationSize(sizeof(RawStacktrace)); |
| 6494 } | 6494 } |
| 6495 static RawStacktrace* New(const Array& code_array, | 6495 static RawStacktrace* New(const Array& code_array, |
| 6496 const Array& pc_offset_array, | 6496 const Array& pc_offset_array, |
| 6497 Heap::Space space = Heap::kNew); | 6497 Heap::Space space = Heap::kNew); |
| 6498 | 6498 |
| 6499 RawString* FullStacktrace() const; | 6499 RawString* FullStacktrace() const; |
| 6500 const char* ToCStringInternal(intptr_t* frame_index) const; | 6500 |
| 6501 // The argument 'max_frames' limits the number of printed frames. |
| 6502 const char* ToCStringInternal(intptr_t* frame_index, |
| 6503 intptr_t max_frames = kMaxInt32) const; |
| 6501 | 6504 |
| 6502 private: | 6505 private: |
| 6503 void set_code_array(const Array& code_array) const; | 6506 void set_code_array(const Array& code_array) const; |
| 6504 void set_pc_offset_array(const Array& pc_offset_array) const; | 6507 void set_pc_offset_array(const Array& pc_offset_array) const; |
| 6505 void set_catch_code_array(const Array& code_array) const; | 6508 void set_catch_code_array(const Array& code_array) const; |
| 6506 void set_catch_pc_offset_array(const Array& pc_offset_array) const; | 6509 void set_catch_pc_offset_array(const Array& pc_offset_array) const; |
| 6507 bool expand_inlined() const; | 6510 bool expand_inlined() const; |
| 6508 | 6511 |
| 6509 FINAL_HEAP_OBJECT_IMPLEMENTATION(Stacktrace, Instance); | 6512 FINAL_HEAP_OBJECT_IMPLEMENTATION(Stacktrace, Instance); |
| 6510 friend class Class; | 6513 friend class Class; |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6835 | 6838 |
| 6836 | 6839 |
| 6837 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6840 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 6838 intptr_t index) { | 6841 intptr_t index) { |
| 6839 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6842 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 6840 } | 6843 } |
| 6841 | 6844 |
| 6842 } // namespace dart | 6845 } // namespace dart |
| 6843 | 6846 |
| 6844 #endif // VM_OBJECT_H_ | 6847 #endif // VM_OBJECT_H_ |
| OLD | NEW |