| 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 4629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4640 void Map::set_construction_count(int value) { | 4640 void Map::set_construction_count(int value) { |
| 4641 set_bit_field3(ConstructionCount::update(bit_field3(), value)); | 4641 set_bit_field3(ConstructionCount::update(bit_field3(), value)); |
| 4642 } | 4642 } |
| 4643 | 4643 |
| 4644 | 4644 |
| 4645 int Map::construction_count() { | 4645 int Map::construction_count() { |
| 4646 return ConstructionCount::decode(bit_field3()); | 4646 return ConstructionCount::decode(bit_field3()); |
| 4647 } | 4647 } |
| 4648 | 4648 |
| 4649 | 4649 |
| 4650 void Map::freeze() { | |
| 4651 set_bit_field3(IsFrozen::update(bit_field3(), true)); | |
| 4652 } | |
| 4653 | |
| 4654 | |
| 4655 bool Map::is_frozen() { | |
| 4656 return IsFrozen::decode(bit_field3()); | |
| 4657 } | |
| 4658 | |
| 4659 | |
| 4660 void Map::mark_unstable() { | 4650 void Map::mark_unstable() { |
| 4661 set_bit_field3(IsUnstable::update(bit_field3(), true)); | 4651 set_bit_field3(IsUnstable::update(bit_field3(), true)); |
| 4662 } | 4652 } |
| 4663 | 4653 |
| 4664 | 4654 |
| 4665 bool Map::is_stable() { | 4655 bool Map::is_stable() { |
| 4666 return !IsUnstable::decode(bit_field3()); | 4656 return !IsUnstable::decode(bit_field3()); |
| 4667 } | 4657 } |
| 4668 | 4658 |
| 4669 | 4659 |
| (...skipping 2845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7515 #undef READ_SHORT_FIELD | 7505 #undef READ_SHORT_FIELD |
| 7516 #undef WRITE_SHORT_FIELD | 7506 #undef WRITE_SHORT_FIELD |
| 7517 #undef READ_BYTE_FIELD | 7507 #undef READ_BYTE_FIELD |
| 7518 #undef WRITE_BYTE_FIELD | 7508 #undef WRITE_BYTE_FIELD |
| 7519 #undef NOBARRIER_READ_BYTE_FIELD | 7509 #undef NOBARRIER_READ_BYTE_FIELD |
| 7520 #undef NOBARRIER_WRITE_BYTE_FIELD | 7510 #undef NOBARRIER_WRITE_BYTE_FIELD |
| 7521 | 7511 |
| 7522 } } // namespace v8::internal | 7512 } } // namespace v8::internal |
| 7523 | 7513 |
| 7524 #endif // V8_OBJECTS_INL_H_ | 7514 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |