| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 // | 4 // |
| 5 // Review notes: | 5 // Review notes: |
| 6 // | 6 // |
| 7 // - The use of macros in these inline functions may seem superfluous | 7 // - The use of macros in these inline functions may seem superfluous |
| 8 // but it is absolutely needed to make sure gcc generates optimal | 8 // but it is absolutely needed to make sure gcc generates optimal |
| 9 // code. gcc is not happy when attempting to inline too deep. | 9 // code. gcc is not happy when attempting to inline too deep. |
| 10 // | 10 // |
| (...skipping 4715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4726 void Map::set_migration_target(bool value) { | 4726 void Map::set_migration_target(bool value) { |
| 4727 set_bit_field3(IsMigrationTarget::update(bit_field3(), value)); | 4727 set_bit_field3(IsMigrationTarget::update(bit_field3(), value)); |
| 4728 } | 4728 } |
| 4729 | 4729 |
| 4730 | 4730 |
| 4731 bool Map::is_migration_target() { | 4731 bool Map::is_migration_target() { |
| 4732 return IsMigrationTarget::decode(bit_field3()); | 4732 return IsMigrationTarget::decode(bit_field3()); |
| 4733 } | 4733 } |
| 4734 | 4734 |
| 4735 | 4735 |
| 4736 void Map::set_is_strong(bool value) { | 4736 void Map::set_is_strong() { |
| 4737 set_bit_field3(IsStrong::update(bit_field3(), value)); | 4737 set_bit_field3(IsStrong::update(bit_field3(), true)); |
| 4738 } | 4738 } |
| 4739 | 4739 |
| 4740 | 4740 |
| 4741 bool Map::is_strong() { | 4741 bool Map::is_strong() { |
| 4742 return IsStrong::decode(bit_field3()); | 4742 return IsStrong::decode(bit_field3()); |
| 4743 } | 4743 } |
| 4744 | 4744 |
| 4745 | 4745 |
| 4746 void Map::set_counter(int value) { | 4746 void Map::set_counter(int value) { |
| 4747 set_bit_field3(Counter::update(bit_field3(), value)); | 4747 set_bit_field3(Counter::update(bit_field3(), value)); |
| (...skipping 2884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7632 #undef READ_SHORT_FIELD | 7632 #undef READ_SHORT_FIELD |
| 7633 #undef WRITE_SHORT_FIELD | 7633 #undef WRITE_SHORT_FIELD |
| 7634 #undef READ_BYTE_FIELD | 7634 #undef READ_BYTE_FIELD |
| 7635 #undef WRITE_BYTE_FIELD | 7635 #undef WRITE_BYTE_FIELD |
| 7636 #undef NOBARRIER_READ_BYTE_FIELD | 7636 #undef NOBARRIER_READ_BYTE_FIELD |
| 7637 #undef NOBARRIER_WRITE_BYTE_FIELD | 7637 #undef NOBARRIER_WRITE_BYTE_FIELD |
| 7638 | 7638 |
| 7639 } } // namespace v8::internal | 7639 } } // namespace v8::internal |
| 7640 | 7640 |
| 7641 #endif // V8_OBJECTS_INL_H_ | 7641 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |