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

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

Issue 817823002: Add inlining ranges/intervals to code objects so that we can map a pc to the inlined stack. The map… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years 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/vm/intermediate_language.h ('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 3942 matching lines...) Expand 10 before | Expand all | Expand 10 after
3953 3953
3954 friend class Code; 3954 friend class Code;
3955 3955
3956 DISALLOW_COPY_AND_ASSIGN(Comments); 3956 DISALLOW_COPY_AND_ASSIGN(Comments);
3957 }; 3957 };
3958 3958
3959 3959
3960 const Comments& comments() const; 3960 const Comments& comments() const;
3961 void set_comments(const Comments& comments) const; 3961 void set_comments(const Comments& comments) const;
3962 3962
3963 enum InlinedIntervalEntries {
3964 kInlIntStart = 0,
3965 kInlIntEnd = 1,
3966 kInlIntFunction = 2,
3967 kInlIntNumEntries = 3
3968 };
3969
3970 RawArray* inlined_intervals() const {
3971 return raw_ptr()->inlined_intervals_;
3972 }
3973 void set_inlined_intervals(const Array& value) const;
3974
3975 void GetInlinedFunctionsAt(
3976 intptr_t offset, GrowableArray<Function*>* fs) const;
3977
3978 void DumpInlinedIntervals() const;
3979
3963 RawLocalVarDescriptors* var_descriptors() const { 3980 RawLocalVarDescriptors* var_descriptors() const {
3964 return raw_ptr()->var_descriptors_; 3981 return raw_ptr()->var_descriptors_;
3965 } 3982 }
3966 void set_var_descriptors(const LocalVarDescriptors& value) const { 3983 void set_var_descriptors(const LocalVarDescriptors& value) const {
3967 ASSERT(value.IsOld()); 3984 ASSERT(value.IsOld());
3968 StorePointer(&raw_ptr()->var_descriptors_, value.raw()); 3985 StorePointer(&raw_ptr()->var_descriptors_, value.raw());
3969 } 3986 }
3970 3987
3971 RawExceptionHandlers* exception_handlers() const { 3988 RawExceptionHandlers* exception_handlers() const {
3972 return raw_ptr()->exception_handlers_; 3989 return raw_ptr()->exception_handlers_;
(...skipping 3699 matching lines...) Expand 10 before | Expand all | Expand 10 after
7672 7689
7673 7690
7674 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 7691 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
7675 intptr_t index) { 7692 intptr_t index) {
7676 return array.At((index * kEntryLength) + kTargetFunctionIndex); 7693 return array.At((index * kEntryLength) + kTargetFunctionIndex);
7677 } 7694 }
7678 7695
7679 } // namespace dart 7696 } // namespace dart
7680 7697
7681 #endif // VM_OBJECT_H_ 7698 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698