| 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 4878 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4889 MaybeObject* Map::RawCopy(int instance_size) { | 4889 MaybeObject* Map::RawCopy(int instance_size) { |
| 4890 Map* result; | 4890 Map* result; |
| 4891 MaybeObject* maybe_result = | 4891 MaybeObject* maybe_result = |
| 4892 GetHeap()->AllocateMap(instance_type(), instance_size); | 4892 GetHeap()->AllocateMap(instance_type(), instance_size); |
| 4893 if (!maybe_result->To(&result)) return maybe_result; | 4893 if (!maybe_result->To(&result)) return maybe_result; |
| 4894 | 4894 |
| 4895 result->set_prototype(prototype()); | 4895 result->set_prototype(prototype()); |
| 4896 result->set_constructor(constructor()); | 4896 result->set_constructor(constructor()); |
| 4897 result->set_bit_field(bit_field()); | 4897 result->set_bit_field(bit_field()); |
| 4898 result->set_bit_field2(bit_field2()); | 4898 result->set_bit_field2(bit_field2()); |
| 4899 result->set_bit_field3(bit_field3()); | |
| 4900 int new_bit_field3 = bit_field3(); | 4899 int new_bit_field3 = bit_field3(); |
| 4901 new_bit_field3 = OwnsDescriptors::update(new_bit_field3, true); | 4900 new_bit_field3 = OwnsDescriptors::update(new_bit_field3, true); |
| 4902 new_bit_field3 = NumberOfOwnDescriptorsBits::update(new_bit_field3, 0); | 4901 new_bit_field3 = NumberOfOwnDescriptorsBits::update(new_bit_field3, 0); |
| 4903 new_bit_field3 = EnumLengthBits::update(new_bit_field3, kInvalidEnumCache); | 4902 new_bit_field3 = EnumLengthBits::update(new_bit_field3, kInvalidEnumCache); |
| 4904 result->set_bit_field3(new_bit_field3); | 4903 result->set_bit_field3(new_bit_field3); |
| 4905 return result; | 4904 return result; |
| 4906 } | 4905 } |
| 4907 | 4906 |
| 4908 | 4907 |
| 4909 MaybeObject* Map::CopyNormalized(PropertyNormalizationMode mode, | 4908 MaybeObject* Map::CopyNormalized(PropertyNormalizationMode mode, |
| (...skipping 8563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13473 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); | 13472 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); |
| 13474 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); | 13473 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); |
| 13475 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); | 13474 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); |
| 13476 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); | 13475 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); |
| 13477 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); | 13476 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); |
| 13478 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); | 13477 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); |
| 13479 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); | 13478 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); |
| 13480 } | 13479 } |
| 13481 | 13480 |
| 13482 } } // namespace v8::internal | 13481 } } // namespace v8::internal |
| OLD | NEW |