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

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

Issue 1559653002: Investigate & fix issues around usage_count and deoptimization_count (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: d Created 4 years, 11 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/compiler.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 1336 matching lines...) Expand 10 before | Expand all | Expand 10 after
1347 intptr_t token_pos); 1347 intptr_t token_pos);
1348 1348
1349 // Patch the signature function of a signature class allocated without it. 1349 // Patch the signature function of a signature class allocated without it.
1350 void PatchSignatureFunction(const Function& signature_function) const; 1350 void PatchSignatureFunction(const Function& signature_function) const;
1351 1351
1352 // Register code that has used CHA for optimization. 1352 // Register code that has used CHA for optimization.
1353 // TODO(srdjan): Also register kind of CHA optimization (e.g.: leaf class, 1353 // TODO(srdjan): Also register kind of CHA optimization (e.g.: leaf class,
1354 // leaf method, ...). 1354 // leaf method, ...).
1355 void RegisterCHACode(const Code& code); 1355 void RegisterCHACode(const Code& code);
1356 1356
1357 void DisableCHAOptimizedCode(); 1357 void DisableCHAOptimizedCode(const Class& subclass);
1358 1358
1359 RawArray* cha_codes() const { return raw_ptr()->cha_codes_; } 1359 RawArray* cha_codes() const { return raw_ptr()->cha_codes_; }
1360 void set_cha_codes(const Array& value) const; 1360 void set_cha_codes(const Array& value) const;
1361 1361
1362 bool TraceAllocation(Isolate* isolate) const; 1362 bool TraceAllocation(Isolate* isolate) const;
1363 void SetTraceAllocation(bool trace_allocation) const; 1363 void SetTraceAllocation(bool trace_allocation) const;
1364 1364
1365 private: 1365 private:
1366 enum MemberKind { 1366 enum MemberKind {
1367 kAny = 0, 1367 kAny = 0,
(...skipping 6867 matching lines...) Expand 10 before | Expand all | Expand 10 after
8235 8235
8236 8236
8237 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 8237 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
8238 intptr_t index) { 8238 intptr_t index) {
8239 return array.At((index * kEntryLength) + kTargetFunctionIndex); 8239 return array.At((index * kEntryLength) + kTargetFunctionIndex);
8240 } 8240 }
8241 8241
8242 } // namespace dart 8242 } // namespace dart
8243 8243
8244 #endif // VM_OBJECT_H_ 8244 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698