| 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 1482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1493 static intptr_t usage_counter_offset() { | 1493 static intptr_t usage_counter_offset() { |
| 1494 return OFFSET_OF(RawFunction, usage_counter_); | 1494 return OFFSET_OF(RawFunction, usage_counter_); |
| 1495 } | 1495 } |
| 1496 intptr_t usage_counter() const { | 1496 intptr_t usage_counter() const { |
| 1497 return raw_ptr()->usage_counter_; | 1497 return raw_ptr()->usage_counter_; |
| 1498 } | 1498 } |
| 1499 void set_usage_counter(intptr_t value) const { | 1499 void set_usage_counter(intptr_t value) const { |
| 1500 raw_ptr()->usage_counter_ = value; | 1500 raw_ptr()->usage_counter_ = value; |
| 1501 } | 1501 } |
| 1502 | 1502 |
| 1503 intptr_t deoptimization_counter() const { | 1503 int16_t deoptimization_counter() const { |
| 1504 return raw_ptr()->deoptimization_counter_; | 1504 return raw_ptr()->deoptimization_counter_; |
| 1505 } | 1505 } |
| 1506 void set_deoptimization_counter(intptr_t value) const { | 1506 void set_deoptimization_counter(int16_t value) const { |
| 1507 raw_ptr()->deoptimization_counter_ = value; | 1507 raw_ptr()->deoptimization_counter_ = value; |
| 1508 } | 1508 } |
| 1509 | 1509 |
| 1510 bool is_optimizable() const; | 1510 bool is_optimizable() const; |
| 1511 void set_is_optimizable(bool value) const; | 1511 void set_is_optimizable(bool value) const; |
| 1512 | 1512 |
| 1513 bool has_finally() const { | 1513 bool has_finally() const { |
| 1514 return HasFinallyBit::decode(raw_ptr()->kind_tag_); | 1514 return HasFinallyBit::decode(raw_ptr()->kind_tag_); |
| 1515 } | 1515 } |
| 1516 void set_has_finally(bool value) const; | 1516 void set_has_finally(bool value) const; |
| (...skipping 4057 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5574 if (this->CharAt(i) != str.CharAt(begin_index + i)) { | 5574 if (this->CharAt(i) != str.CharAt(begin_index + i)) { |
| 5575 return false; | 5575 return false; |
| 5576 } | 5576 } |
| 5577 } | 5577 } |
| 5578 return true; | 5578 return true; |
| 5579 } | 5579 } |
| 5580 | 5580 |
| 5581 } // namespace dart | 5581 } // namespace dart |
| 5582 | 5582 |
| 5583 #endif // VM_OBJECT_H_ | 5583 #endif // VM_OBJECT_H_ |
| OLD | NEW |