| 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 1465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1476 raw_ptr()->usage_counter_ = value; | 1476 raw_ptr()->usage_counter_ = value; |
| 1477 } | 1477 } |
| 1478 | 1478 |
| 1479 intptr_t deoptimization_counter() const { | 1479 intptr_t deoptimization_counter() const { |
| 1480 return raw_ptr()->deoptimization_counter_; | 1480 return raw_ptr()->deoptimization_counter_; |
| 1481 } | 1481 } |
| 1482 void set_deoptimization_counter(intptr_t value) const { | 1482 void set_deoptimization_counter(intptr_t value) const { |
| 1483 raw_ptr()->deoptimization_counter_ = value; | 1483 raw_ptr()->deoptimization_counter_ = value; |
| 1484 } | 1484 } |
| 1485 | 1485 |
| 1486 bool is_optimizable() const { | 1486 bool is_optimizable() const; |
| 1487 return OptimizableBit::decode(raw_ptr()->kind_tag_); | |
| 1488 } | |
| 1489 void set_is_optimizable(bool value) const; | 1487 void set_is_optimizable(bool value) const; |
| 1490 | 1488 |
| 1491 bool has_finally() const { | 1489 bool has_finally() const { |
| 1492 return HasFinallyBit::decode(raw_ptr()->kind_tag_); | 1490 return HasFinallyBit::decode(raw_ptr()->kind_tag_); |
| 1493 } | 1491 } |
| 1494 void set_has_finally(bool value) const; | 1492 void set_has_finally(bool value) const; |
| 1495 | 1493 |
| 1496 bool is_native() const { return NativeBit::decode(raw_ptr()->kind_tag_); } | 1494 bool is_native() const { return NativeBit::decode(raw_ptr()->kind_tag_); } |
| 1497 void set_is_native(bool value) const; | 1495 void set_is_native(bool value) const; |
| 1498 | 1496 |
| (...skipping 4051 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5550 if (this->CharAt(i) != str.CharAt(begin_index + i)) { | 5548 if (this->CharAt(i) != str.CharAt(begin_index + i)) { |
| 5551 return false; | 5549 return false; |
| 5552 } | 5550 } |
| 5553 } | 5551 } |
| 5554 return true; | 5552 return true; |
| 5555 } | 5553 } |
| 5556 | 5554 |
| 5557 } // namespace dart | 5555 } // namespace dart |
| 5558 | 5556 |
| 5559 #endif // VM_OBJECT_H_ | 5557 #endif // VM_OBJECT_H_ |
| OLD | NEW |