Chromium Code Reviews| 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 1270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1281 raw_ptr()->usage_counter_ = value; | 1281 raw_ptr()->usage_counter_ = value; |
| 1282 } | 1282 } |
| 1283 | 1283 |
| 1284 int16_t deoptimization_counter() const { | 1284 int16_t deoptimization_counter() const { |
| 1285 return raw_ptr()->deoptimization_counter_; | 1285 return raw_ptr()->deoptimization_counter_; |
| 1286 } | 1286 } |
| 1287 void set_deoptimization_counter(int16_t value) const { | 1287 void set_deoptimization_counter(int16_t value) const { |
| 1288 raw_ptr()->deoptimization_counter_ = value; | 1288 raw_ptr()->deoptimization_counter_ = value; |
| 1289 } | 1289 } |
| 1290 | 1290 |
| 1291 uint16_t optimized_instruction_count() const { | |
|
srdjan
2012/12/13 19:00:17
I think it would be better to pass and return intp
Vyacheslav Egorov (Google)
2012/12/13 19:14:11
Done.
| |
| 1292 return raw_ptr()->optimized_instruction_count_; | |
| 1293 } | |
| 1294 void set_optimized_instruction_count(uint16_t value) const { | |
| 1295 raw_ptr()->optimized_instruction_count_ = value; | |
| 1296 } | |
| 1297 | |
| 1298 uint16_t optimized_call_site_count() const { | |
| 1299 return raw_ptr()->optimized_call_site_count_; | |
| 1300 } | |
| 1301 void set_optimized_call_site_count(uint16_t value) const { | |
| 1302 raw_ptr()->optimized_call_site_count_ = value; | |
| 1303 } | |
| 1304 | |
| 1291 bool is_optimizable() const; | 1305 bool is_optimizable() const; |
| 1292 void set_is_optimizable(bool value) const; | 1306 void set_is_optimizable(bool value) const; |
| 1293 | 1307 |
| 1294 bool has_finally() const { | 1308 bool has_finally() const { |
| 1295 return HasFinallyBit::decode(raw_ptr()->kind_tag_); | 1309 return HasFinallyBit::decode(raw_ptr()->kind_tag_); |
| 1296 } | 1310 } |
| 1297 void set_has_finally(bool value) const; | 1311 void set_has_finally(bool value) const; |
| 1298 | 1312 |
| 1299 bool is_native() const { return NativeBit::decode(raw_ptr()->kind_tag_); } | 1313 bool is_native() const { return NativeBit::decode(raw_ptr()->kind_tag_); } |
| 1300 void set_is_native(bool value) const; | 1314 void set_is_native(bool value) const; |
| (...skipping 4867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 6168 | 6182 |
| 6169 | 6183 |
| 6170 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6184 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 6171 intptr_t index) { | 6185 intptr_t index) { |
| 6172 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6186 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 6173 } | 6187 } |
| 6174 | 6188 |
| 6175 } // namespace dart | 6189 } // namespace dart |
| 6176 | 6190 |
| 6177 #endif // VM_OBJECT_H_ | 6191 #endif // VM_OBJECT_H_ |
| OLD | NEW |