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 5998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6009 static intptr_t InstanceSize() { | 6009 static intptr_t InstanceSize() { |
6010 return RoundedAllocationSize(sizeof(RawStacktrace)); | 6010 return RoundedAllocationSize(sizeof(RawStacktrace)); |
6011 } | 6011 } |
6012 static RawStacktrace* New(const Array& code_array, | 6012 static RawStacktrace* New(const Array& code_array, |
6013 const Array& pc_offset_array, | 6013 const Array& pc_offset_array, |
6014 Heap::Space space = Heap::kNew); | 6014 Heap::Space space = Heap::kNew); |
6015 | 6015 |
6016 RawString* FullStacktrace() const; | 6016 RawString* FullStacktrace() const; |
6017 const char* ToCStringInternal(intptr_t* frame_index) const; | 6017 const char* ToCStringInternal(intptr_t* frame_index) const; |
6018 | 6018 |
| 6019 intptr_t VisibleLength() const; |
| 6020 bool VisibleFrameInfoAt(intptr_t frame_index, |
| 6021 String* internal_function_name, |
| 6022 String* internal_script_url, |
| 6023 intptr_t* internal_line_number, |
| 6024 intptr_t* internal_col_num) const; |
| 6025 |
6019 private: | 6026 private: |
6020 void set_code_array(const Array& code_array) const; | 6027 void set_code_array(const Array& code_array) const; |
6021 void set_pc_offset_array(const Array& pc_offset_array) const; | 6028 void set_pc_offset_array(const Array& pc_offset_array) const; |
6022 void set_catch_code_array(const Array& code_array) const; | 6029 void set_catch_code_array(const Array& code_array) const; |
6023 void set_catch_pc_offset_array(const Array& pc_offset_array) const; | 6030 void set_catch_pc_offset_array(const Array& pc_offset_array) const; |
6024 bool expand_inlined() const; | 6031 bool expand_inlined() const; |
6025 | 6032 |
6026 FINAL_HEAP_OBJECT_IMPLEMENTATION(Stacktrace, Instance); | 6033 FINAL_HEAP_OBJECT_IMPLEMENTATION(Stacktrace, Instance); |
6027 friend class Class; | 6034 friend class Class; |
6028 }; | 6035 }; |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6295 | 6302 |
6296 | 6303 |
6297 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6304 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
6298 intptr_t index) { | 6305 intptr_t index) { |
6299 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6306 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
6300 } | 6307 } |
6301 | 6308 |
6302 } // namespace dart | 6309 } // namespace dart |
6303 | 6310 |
6304 #endif // VM_OBJECT_H_ | 6311 #endif // VM_OBJECT_H_ |
OLD | NEW |