Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1316)

Side by Side Diff: runtime/vm/object.h

Issue 12381030: Fix stack frame index numbers for full stack traces (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/lib/stacktrace.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 6299 matching lines...) Expand 10 before | Expand all | Expand 10 after
6310 6310
6311 static intptr_t InstanceSize() { 6311 static intptr_t InstanceSize() {
6312 return RoundedAllocationSize(sizeof(RawStacktrace)); 6312 return RoundedAllocationSize(sizeof(RawStacktrace));
6313 } 6313 }
6314 static RawStacktrace* New(const Array& func_array, 6314 static RawStacktrace* New(const Array& func_array,
6315 const Array& code_array, 6315 const Array& code_array,
6316 const Array& pc_offset_array, 6316 const Array& pc_offset_array,
6317 Heap::Space space = Heap::kNew); 6317 Heap::Space space = Heap::kNew);
6318 6318
6319 RawString* FullStacktrace() const; 6319 RawString* FullStacktrace() const;
6320 const char* ToCStringInternal() const; 6320 const char* ToCStringInternal(intptr_t frame_index) const;
6321 6321
6322 private: 6322 private:
6323 void set_function_array(const Array& function_array) const; 6323 void set_function_array(const Array& function_array) const;
6324 void set_code_array(const Array& code_array) const; 6324 void set_code_array(const Array& code_array) const;
6325 void set_pc_offset_array(const Array& pc_offset_array) const; 6325 void set_pc_offset_array(const Array& pc_offset_array) const;
6326 void set_catch_func_array(const Array& function_array) const; 6326 void set_catch_func_array(const Array& function_array) const;
6327 void set_catch_code_array(const Array& code_array) const; 6327 void set_catch_code_array(const Array& code_array) const;
6328 void set_catch_pc_offset_array(const Array& pc_offset_array) const; 6328 void set_catch_pc_offset_array(const Array& pc_offset_array) const;
6329 6329
6330 FINAL_HEAP_OBJECT_IMPLEMENTATION(Stacktrace, Instance); 6330 FINAL_HEAP_OBJECT_IMPLEMENTATION(Stacktrace, Instance);
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
6564 6564
6565 6565
6566 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6566 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6567 intptr_t index) { 6567 intptr_t index) {
6568 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6568 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6569 } 6569 }
6570 6570
6571 } // namespace dart 6571 } // namespace dart
6572 6572
6573 #endif // VM_OBJECT_H_ 6573 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/lib/stacktrace.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698