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

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

Issue 1268783002: Fix inlining information: (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: sync Created 5 years, 4 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
« no previous file with comments | « runtime/vm/il_printer.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 4127 matching lines...) Expand 10 before | Expand all | Expand 10 after
4138 return raw_ptr()->return_address_metadata_; 4138 return raw_ptr()->return_address_metadata_;
4139 } 4139 }
4140 // Sets |return_address_metadata|. 4140 // Sets |return_address_metadata|.
4141 void SetPrologueOffset(intptr_t offset) const; 4141 void SetPrologueOffset(intptr_t offset) const;
4142 // Returns -1 if no prologue offset is available. 4142 // Returns -1 if no prologue offset is available.
4143 intptr_t GetPrologueOffset() const; 4143 intptr_t GetPrologueOffset() const;
4144 4144
4145 enum InlinedIntervalEntries { 4145 enum InlinedIntervalEntries {
4146 kInlIntStart = 0, 4146 kInlIntStart = 0,
4147 kInlIntInliningId = 1, 4147 kInlIntInliningId = 1,
4148 kInlIntCallerId = 2, 4148 kInlIntNumEntries = 2,
4149 kInlIntNumEntries = 3,
4150 }; 4149 };
4151 4150
4152 RawArray* GetInlinedIntervals() const; 4151 RawArray* GetInlinedIntervals() const;
4153 void SetInlinedIntervals(const Array& value) const; 4152 void SetInlinedIntervals(const Array& value) const;
4154 4153
4155 RawArray* GetInlinedIdToFunction() const; 4154 RawArray* GetInlinedIdToFunction() const;
4156 void SetInlinedIdToFunction(const Array& value) const; 4155 void SetInlinedIdToFunction(const Array& value) const;
4157 4156
4157 RawArray* GetInlinedCallerIdMap() const;
4158 void SetInlinedCallerIdMap(const Array& value) const;
4159
4158 void GetInlinedFunctionsAt( 4160 void GetInlinedFunctionsAt(
4159 intptr_t offset, GrowableArray<Function*>* fs) const; 4161 intptr_t offset, GrowableArray<Function*>* fs) const;
4160 4162
4161 void DumpInlinedIntervals() const; 4163 void DumpInlinedIntervals() const;
4162 4164
4163 RawLocalVarDescriptors* var_descriptors() const { 4165 RawLocalVarDescriptors* var_descriptors() const {
4164 return raw_ptr()->var_descriptors_; 4166 return raw_ptr()->var_descriptors_;
4165 } 4167 }
4166 void set_var_descriptors(const LocalVarDescriptors& value) const { 4168 void set_var_descriptors(const LocalVarDescriptors& value) const {
4167 ASSERT(value.IsOld()); 4169 ASSERT(value.IsOld());
(...skipping 3847 matching lines...) Expand 10 before | Expand all | Expand 10 after
8015 8017
8016 8018
8017 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 8019 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
8018 intptr_t index) { 8020 intptr_t index) {
8019 return array.At((index * kEntryLength) + kTargetFunctionIndex); 8021 return array.At((index * kEntryLength) + kTargetFunctionIndex);
8020 } 8022 }
8021 8023
8022 } // namespace dart 8024 } // namespace dart
8023 8025
8024 #endif // VM_OBJECT_H_ 8026 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/il_printer.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698