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

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

Issue 41503004: - Account for hidden frames when concatenating throw and (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 1 month 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/tests/vm/vm.status ('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 5981 matching lines...) Expand 10 before | Expand all | Expand 10 after
5992 void Append(const Array& code_list, const Array& pc_offset_list) const; 5992 void Append(const Array& code_list, const Array& pc_offset_list) const;
5993 5993
5994 static intptr_t InstanceSize() { 5994 static intptr_t InstanceSize() {
5995 return RoundedAllocationSize(sizeof(RawStacktrace)); 5995 return RoundedAllocationSize(sizeof(RawStacktrace));
5996 } 5996 }
5997 static RawStacktrace* New(const Array& code_array, 5997 static RawStacktrace* New(const Array& code_array,
5998 const Array& pc_offset_array, 5998 const Array& pc_offset_array,
5999 Heap::Space space = Heap::kNew); 5999 Heap::Space space = Heap::kNew);
6000 6000
6001 RawString* FullStacktrace() const; 6001 RawString* FullStacktrace() const;
6002 const char* ToCStringInternal(intptr_t frame_index) const; 6002 const char* ToCStringInternal(intptr_t* frame_index) const;
6003 6003
6004 private: 6004 private:
6005 void set_code_array(const Array& code_array) const; 6005 void set_code_array(const Array& code_array) const;
6006 void set_pc_offset_array(const Array& pc_offset_array) const; 6006 void set_pc_offset_array(const Array& pc_offset_array) const;
6007 void set_catch_code_array(const Array& code_array) const; 6007 void set_catch_code_array(const Array& code_array) const;
6008 void set_catch_pc_offset_array(const Array& pc_offset_array) const; 6008 void set_catch_pc_offset_array(const Array& pc_offset_array) const;
6009 bool expand_inlined() const; 6009 bool expand_inlined() const;
6010 6010
6011 FINAL_HEAP_OBJECT_IMPLEMENTATION(Stacktrace, Instance); 6011 FINAL_HEAP_OBJECT_IMPLEMENTATION(Stacktrace, Instance);
6012 friend class Class; 6012 friend class Class;
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
6280 6280
6281 6281
6282 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6282 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6283 intptr_t index) { 6283 intptr_t index) {
6284 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6284 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6285 } 6285 }
6286 6286
6287 } // namespace dart 6287 } // namespace dart
6288 6288
6289 #endif // VM_OBJECT_H_ 6289 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/tests/vm/vm.status ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698