| 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 4619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4630 | 4630 |
| 4631 | 4631 |
| 4632 void Map::set_counter(int value) { | 4632 void Map::set_counter(int value) { |
| 4633 set_bit_field3(Counter::update(bit_field3(), value)); | 4633 set_bit_field3(Counter::update(bit_field3(), value)); |
| 4634 } | 4634 } |
| 4635 | 4635 |
| 4636 | 4636 |
| 4637 int Map::counter() { return Counter::decode(bit_field3()); } | 4637 int Map::counter() { return Counter::decode(bit_field3()); } |
| 4638 | 4638 |
| 4639 | 4639 |
| 4640 void Map::freeze() { | |
| 4641 set_bit_field3(IsFrozen::update(bit_field3(), true)); | |
| 4642 } | |
| 4643 | |
| 4644 | |
| 4645 bool Map::is_frozen() { | |
| 4646 return IsFrozen::decode(bit_field3()); | |
| 4647 } | |
| 4648 | |
| 4649 | |
| 4650 void Map::mark_unstable() { | 4640 void Map::mark_unstable() { |
| 4651 set_bit_field3(IsUnstable::update(bit_field3(), true)); | 4641 set_bit_field3(IsUnstable::update(bit_field3(), true)); |
| 4652 } | 4642 } |
| 4653 | 4643 |
| 4654 | 4644 |
| 4655 bool Map::is_stable() { | 4645 bool Map::is_stable() { |
| 4656 return !IsUnstable::decode(bit_field3()); | 4646 return !IsUnstable::decode(bit_field3()); |
| 4657 } | 4647 } |
| 4658 | 4648 |
| 4659 | 4649 |
| (...skipping 2868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7528 #undef READ_SHORT_FIELD | 7518 #undef READ_SHORT_FIELD |
| 7529 #undef WRITE_SHORT_FIELD | 7519 #undef WRITE_SHORT_FIELD |
| 7530 #undef READ_BYTE_FIELD | 7520 #undef READ_BYTE_FIELD |
| 7531 #undef WRITE_BYTE_FIELD | 7521 #undef WRITE_BYTE_FIELD |
| 7532 #undef NOBARRIER_READ_BYTE_FIELD | 7522 #undef NOBARRIER_READ_BYTE_FIELD |
| 7533 #undef NOBARRIER_WRITE_BYTE_FIELD | 7523 #undef NOBARRIER_WRITE_BYTE_FIELD |
| 7534 | 7524 |
| 7535 } } // namespace v8::internal | 7525 } } // namespace v8::internal |
| 7536 | 7526 |
| 7537 #endif // V8_OBJECTS_INL_H_ | 7527 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |