| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 6664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6675 result->set_prototype(prototype()); | 6675 result->set_prototype(prototype()); |
| 6676 result->set_constructor(constructor()); | 6676 result->set_constructor(constructor()); |
| 6677 result->set_bit_field(bit_field()); | 6677 result->set_bit_field(bit_field()); |
| 6678 result->set_bit_field2(bit_field2()); | 6678 result->set_bit_field2(bit_field2()); |
| 6679 int new_bit_field3 = bit_field3(); | 6679 int new_bit_field3 = bit_field3(); |
| 6680 new_bit_field3 = OwnsDescriptors::update(new_bit_field3, true); | 6680 new_bit_field3 = OwnsDescriptors::update(new_bit_field3, true); |
| 6681 new_bit_field3 = NumberOfOwnDescriptorsBits::update(new_bit_field3, 0); | 6681 new_bit_field3 = NumberOfOwnDescriptorsBits::update(new_bit_field3, 0); |
| 6682 new_bit_field3 = EnumLengthBits::update(new_bit_field3, | 6682 new_bit_field3 = EnumLengthBits::update(new_bit_field3, |
| 6683 kInvalidEnumCacheSentinel); | 6683 kInvalidEnumCacheSentinel); |
| 6684 new_bit_field3 = Deprecated::update(new_bit_field3, false); | 6684 new_bit_field3 = Deprecated::update(new_bit_field3, false); |
| 6685 new_bit_field3 = IsUnstable::update(new_bit_field3, false); | 6685 if (!is_dictionary_map()) { |
| 6686 new_bit_field3 = IsUnstable::update(new_bit_field3, false); |
| 6687 } |
| 6686 result->set_bit_field3(new_bit_field3); | 6688 result->set_bit_field3(new_bit_field3); |
| 6687 return result; | 6689 return result; |
| 6688 } | 6690 } |
| 6689 | 6691 |
| 6690 | 6692 |
| 6691 Handle<Map> Map::CopyNormalized(Handle<Map> map, | 6693 Handle<Map> Map::CopyNormalized(Handle<Map> map, |
| 6692 PropertyNormalizationMode mode, | 6694 PropertyNormalizationMode mode, |
| 6693 NormalizedMapSharingMode sharing) { | 6695 NormalizedMapSharingMode sharing) { |
| 6694 int new_instance_size = map->instance_size(); | 6696 int new_instance_size = map->instance_size(); |
| 6695 if (mode == CLEAR_INOBJECT_PROPERTIES) { | 6697 if (mode == CLEAR_INOBJECT_PROPERTIES) { |
| (...skipping 9780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16476 #define ERROR_MESSAGES_TEXTS(C, T) T, | 16478 #define ERROR_MESSAGES_TEXTS(C, T) T, |
| 16477 static const char* error_messages_[] = { | 16479 static const char* error_messages_[] = { |
| 16478 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) | 16480 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) |
| 16479 }; | 16481 }; |
| 16480 #undef ERROR_MESSAGES_TEXTS | 16482 #undef ERROR_MESSAGES_TEXTS |
| 16481 return error_messages_[reason]; | 16483 return error_messages_[reason]; |
| 16482 } | 16484 } |
| 16483 | 16485 |
| 16484 | 16486 |
| 16485 } } // namespace v8::internal | 16487 } } // namespace v8::internal |
| OLD | NEW |