| 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_is_observed(bool is_observed) { | 3652 void Map::set_has_instance_call_handler() { |
| 3653 ASSERT(instance_type() < FIRST_JS_OBJECT_TYPE || | 3653 set_bit_field3(HasInstanceCallHandler::update(bit_field3(), true)); |
| 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)); | |
| 3657 } | 3654 } |
| 3658 | 3655 |
| 3659 | 3656 |
| 3660 bool Map::is_observed() { | 3657 bool Map::has_instance_call_handler() { |
| 3661 return IsObserved::decode(bit_field3()); | 3658 return HasInstanceCallHandler::decode(bit_field3()); |
| 3662 } | 3659 } |
| 3663 | 3660 |
| 3664 | 3661 |
| 3665 void Map::deprecate() { | 3662 void Map::deprecate() { |
| 3666 set_bit_field3(Deprecated::update(bit_field3(), true)); | 3663 set_bit_field3(Deprecated::update(bit_field3(), true)); |
| 3667 } | 3664 } |
| 3668 | 3665 |
| 3669 | 3666 |
| 3670 bool Map::is_deprecated() { | 3667 bool Map::is_deprecated() { |
| 3671 if (!FLAG_track_fields) return false; | 3668 if (!FLAG_track_fields) return false; |
| (...skipping 2728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6400 #undef WRITE_UINT32_FIELD | 6397 #undef WRITE_UINT32_FIELD |
| 6401 #undef READ_SHORT_FIELD | 6398 #undef READ_SHORT_FIELD |
| 6402 #undef WRITE_SHORT_FIELD | 6399 #undef WRITE_SHORT_FIELD |
| 6403 #undef READ_BYTE_FIELD | 6400 #undef READ_BYTE_FIELD |
| 6404 #undef WRITE_BYTE_FIELD | 6401 #undef WRITE_BYTE_FIELD |
| 6405 | 6402 |
| 6406 | 6403 |
| 6407 } } // namespace v8::internal | 6404 } } // namespace v8::internal |
| 6408 | 6405 |
| 6409 #endif // V8_OBJECTS_INL_H_ | 6406 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |