OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 3631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3642 void Map::set_owns_descriptors(bool is_shared) { | 3642 void Map::set_owns_descriptors(bool is_shared) { |
3643 set_bit_field3(OwnsDescriptors::update(bit_field3(), is_shared)); | 3643 set_bit_field3(OwnsDescriptors::update(bit_field3(), is_shared)); |
3644 } | 3644 } |
3645 | 3645 |
3646 | 3646 |
3647 bool Map::owns_descriptors() { | 3647 bool Map::owns_descriptors() { |
3648 return OwnsDescriptors::decode(bit_field3()); | 3648 return OwnsDescriptors::decode(bit_field3()); |
3649 } | 3649 } |
3650 | 3650 |
3651 | 3651 |
3652 void Map::set_has_instance_call_handler() { | 3652 void Map::set_is_observed(bool is_observed) { |
3653 set_bit_field3(HasInstanceCallHandler::update(bit_field3(), true)); | 3653 ASSERT(instance_type() < FIRST_JS_OBJECT_TYPE || |
| 3654 instance_type() > LAST_JS_OBJECT_TYPE || |
| 3655 has_slow_elements_kind() || has_external_array_elements()); |
| 3656 set_bit_field3(IsObserved::update(bit_field3(), is_observed)); |
3654 } | 3657 } |
3655 | 3658 |
3656 | 3659 |
3657 bool Map::has_instance_call_handler() { | 3660 bool Map::is_observed() { |
3658 return HasInstanceCallHandler::decode(bit_field3()); | 3661 return IsObserved::decode(bit_field3()); |
3659 } | 3662 } |
3660 | 3663 |
3661 | 3664 |
3662 void Map::deprecate() { | 3665 void Map::deprecate() { |
3663 set_bit_field3(Deprecated::update(bit_field3(), true)); | 3666 set_bit_field3(Deprecated::update(bit_field3(), true)); |
3664 } | 3667 } |
3665 | 3668 |
3666 | 3669 |
3667 bool Map::is_deprecated() { | 3670 bool Map::is_deprecated() { |
3668 if (!FLAG_track_fields) return false; | 3671 if (!FLAG_track_fields) return false; |
(...skipping 2738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6407 #undef WRITE_UINT32_FIELD | 6410 #undef WRITE_UINT32_FIELD |
6408 #undef READ_SHORT_FIELD | 6411 #undef READ_SHORT_FIELD |
6409 #undef WRITE_SHORT_FIELD | 6412 #undef WRITE_SHORT_FIELD |
6410 #undef READ_BYTE_FIELD | 6413 #undef READ_BYTE_FIELD |
6411 #undef WRITE_BYTE_FIELD | 6414 #undef WRITE_BYTE_FIELD |
6412 | 6415 |
6413 | 6416 |
6414 } } // namespace v8::internal | 6417 } } // namespace v8::internal |
6415 | 6418 |
6416 #endif // V8_OBJECTS_INL_H_ | 6419 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |