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 4732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4743 void Map::set_is_strong() { | 4743 void Map::set_is_strong() { |
4744 set_bit_field3(IsStrong::update(bit_field3(), true)); | 4744 set_bit_field3(IsStrong::update(bit_field3(), true)); |
4745 } | 4745 } |
4746 | 4746 |
4747 | 4747 |
4748 bool Map::is_strong() { | 4748 bool Map::is_strong() { |
4749 return IsStrong::decode(bit_field3()); | 4749 return IsStrong::decode(bit_field3()); |
4750 } | 4750 } |
4751 | 4751 |
4752 | 4752 |
| 4753 void Map::set_new_target_is_base(bool value) { |
| 4754 set_bit_field3(NewTargetIsBase::update(bit_field3(), value)); |
| 4755 } |
| 4756 |
| 4757 |
| 4758 bool Map::new_target_is_base() { return NewTargetIsBase::decode(bit_field3()); } |
| 4759 |
| 4760 |
4753 void Map::set_counter(int value) { | 4761 void Map::set_counter(int value) { |
4754 set_bit_field3(Counter::update(bit_field3(), value)); | 4762 set_bit_field3(Counter::update(bit_field3(), value)); |
4755 } | 4763 } |
4756 | 4764 |
4757 | 4765 |
4758 int Map::counter() { return Counter::decode(bit_field3()); } | 4766 int Map::counter() { return Counter::decode(bit_field3()); } |
4759 | 4767 |
4760 | 4768 |
4761 void Map::mark_unstable() { | 4769 void Map::mark_unstable() { |
4762 set_bit_field3(IsUnstable::update(bit_field3(), true)); | 4770 set_bit_field3(IsUnstable::update(bit_field3(), true)); |
(...skipping 3086 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7849 #undef WRITE_INT64_FIELD | 7857 #undef WRITE_INT64_FIELD |
7850 #undef READ_BYTE_FIELD | 7858 #undef READ_BYTE_FIELD |
7851 #undef WRITE_BYTE_FIELD | 7859 #undef WRITE_BYTE_FIELD |
7852 #undef NOBARRIER_READ_BYTE_FIELD | 7860 #undef NOBARRIER_READ_BYTE_FIELD |
7853 #undef NOBARRIER_WRITE_BYTE_FIELD | 7861 #undef NOBARRIER_WRITE_BYTE_FIELD |
7854 | 7862 |
7855 } // namespace internal | 7863 } // namespace internal |
7856 } // namespace v8 | 7864 } // namespace v8 |
7857 | 7865 |
7858 #endif // V8_OBJECTS_INL_H_ | 7866 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |