OLD | NEW |
---|---|
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 1348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1359 // Register code that has used CHA for optimization. | 1359 // Register code that has used CHA for optimization. |
1360 // TODO(srdjan): Also register kind of CHA optimization (e.g.: leaf class, | 1360 // TODO(srdjan): Also register kind of CHA optimization (e.g.: leaf class, |
1361 // leaf method, ...). | 1361 // leaf method, ...). |
1362 void RegisterCHACode(const Code& code); | 1362 void RegisterCHACode(const Code& code); |
1363 | 1363 |
1364 void DisableCHAOptimizedCode(); | 1364 void DisableCHAOptimizedCode(); |
1365 | 1365 |
1366 RawArray* cha_codes() const { return raw_ptr()->cha_codes_; } | 1366 RawArray* cha_codes() const { return raw_ptr()->cha_codes_; } |
1367 void set_cha_codes(const Array& value) const; | 1367 void set_cha_codes(const Array& value) const; |
1368 | 1368 |
1369 bool trace_allocation() const { | 1369 bool TraceAllocation() const; |
1370 return TraceAllocationBit::decode(raw_ptr()->state_bits_); | |
Ivan Posva
2015/08/14 05:38:31
Is the TraceAllocationBit still needed in the clas
Cutch
2015/08/14 13:54:36
Done.
| |
1371 } | |
1372 void SetTraceAllocation(bool trace_allocation) const; | 1370 void SetTraceAllocation(bool trace_allocation) const; |
1373 | 1371 |
1374 private: | 1372 private: |
1375 enum MemberKind { | 1373 enum MemberKind { |
1376 kAny = 0, | 1374 kAny = 0, |
1377 kStatic, | 1375 kStatic, |
1378 kInstance, | 1376 kInstance, |
1379 kConstructor, | 1377 kConstructor, |
1380 kFactory, | 1378 kFactory, |
1381 }; | 1379 }; |
(...skipping 6653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
8035 | 8033 |
8036 | 8034 |
8037 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 8035 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
8038 intptr_t index) { | 8036 intptr_t index) { |
8039 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 8037 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
8040 } | 8038 } |
8041 | 8039 |
8042 } // namespace dart | 8040 } // namespace dart |
8043 | 8041 |
8044 #endif // VM_OBJECT_H_ | 8042 #endif // VM_OBJECT_H_ |
OLD | NEW |