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 4520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4531 void Map::set_migration_target(bool value) { | 4531 void Map::set_migration_target(bool value) { |
4532 set_bit_field3(IsMigrationTarget::update(bit_field3(), value)); | 4532 set_bit_field3(IsMigrationTarget::update(bit_field3(), value)); |
4533 } | 4533 } |
4534 | 4534 |
4535 | 4535 |
4536 bool Map::is_migration_target() { | 4536 bool Map::is_migration_target() { |
4537 return IsMigrationTarget::decode(bit_field3()); | 4537 return IsMigrationTarget::decode(bit_field3()); |
4538 } | 4538 } |
4539 | 4539 |
4540 | 4540 |
4541 void Map::set_is_strong() { | |
4542 set_bit_field3(IsStrong::update(bit_field3(), true)); | |
4543 } | |
4544 | |
4545 | |
4546 bool Map::is_strong() { | |
4547 return IsStrong::decode(bit_field3()); | |
4548 } | |
4549 | |
4550 | |
4551 void Map::set_new_target_is_base(bool value) { | 4541 void Map::set_new_target_is_base(bool value) { |
4552 set_bit_field3(NewTargetIsBase::update(bit_field3(), value)); | 4542 set_bit_field3(NewTargetIsBase::update(bit_field3(), value)); |
4553 } | 4543 } |
4554 | 4544 |
4555 | 4545 |
4556 bool Map::new_target_is_base() { return NewTargetIsBase::decode(bit_field3()); } | 4546 bool Map::new_target_is_base() { return NewTargetIsBase::decode(bit_field3()); } |
4557 | 4547 |
4558 | 4548 |
4559 void Map::set_construction_counter(int value) { | 4549 void Map::set_construction_counter(int value) { |
4560 set_bit_field3(ConstructionCounter::update(bit_field3(), value)); | 4550 set_bit_field3(ConstructionCounter::update(bit_field3(), value)); |
(...skipping 3221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7782 #undef WRITE_INT64_FIELD | 7772 #undef WRITE_INT64_FIELD |
7783 #undef READ_BYTE_FIELD | 7773 #undef READ_BYTE_FIELD |
7784 #undef WRITE_BYTE_FIELD | 7774 #undef WRITE_BYTE_FIELD |
7785 #undef NOBARRIER_READ_BYTE_FIELD | 7775 #undef NOBARRIER_READ_BYTE_FIELD |
7786 #undef NOBARRIER_WRITE_BYTE_FIELD | 7776 #undef NOBARRIER_WRITE_BYTE_FIELD |
7787 | 7777 |
7788 } // namespace internal | 7778 } // namespace internal |
7789 } // namespace v8 | 7779 } // namespace v8 |
7790 | 7780 |
7791 #endif // V8_OBJECTS_INL_H_ | 7781 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |