| 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 995 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1006 ASSERT(e->IsUndefined()); | 1006 ASSERT(e->IsUndefined()); |
| 1007 } | 1007 } |
| 1008 } | 1008 } |
| 1009 } | 1009 } |
| 1010 } | 1010 } |
| 1011 | 1011 |
| 1012 | 1012 |
| 1013 void Map::ZapInstanceDescriptors() { | 1013 void Map::ZapInstanceDescriptors() { |
| 1014 DescriptorArray* descriptors = instance_descriptors(); | 1014 DescriptorArray* descriptors = instance_descriptors(); |
| 1015 if (descriptors == GetHeap()->empty_descriptor_array()) return; | 1015 if (descriptors == GetHeap()->empty_descriptor_array()) return; |
| 1016 FixedArray* contents = FixedArray::cast( | |
| 1017 descriptors->get(DescriptorArray::kContentArrayIndex)); | |
| 1018 MemsetPointer(descriptors->data_start(), | 1016 MemsetPointer(descriptors->data_start(), |
| 1019 GetHeap()->the_hole_value(), | 1017 GetHeap()->the_hole_value(), |
| 1020 descriptors->length()); | 1018 descriptors->length()); |
| 1021 MemsetPointer(contents->data_start(), | |
| 1022 GetHeap()->the_hole_value(), | |
| 1023 contents->length()); | |
| 1024 } | 1019 } |
| 1025 | 1020 |
| 1026 | 1021 |
| 1027 void Map::ZapPrototypeTransitions() { | 1022 void Map::ZapPrototypeTransitions() { |
| 1028 FixedArray* proto_transitions = prototype_transitions(); | 1023 FixedArray* proto_transitions = prototype_transitions(); |
| 1029 MemsetPointer(proto_transitions->data_start(), | 1024 MemsetPointer(proto_transitions->data_start(), |
| 1030 GetHeap()->the_hole_value(), | 1025 GetHeap()->the_hole_value(), |
| 1031 proto_transitions->length()); | 1026 proto_transitions->length()); |
| 1032 } | 1027 } |
| 1033 | 1028 |
| 1034 | 1029 |
| 1035 #endif // DEBUG | 1030 #endif // DEBUG |
| 1036 | 1031 |
| 1037 } } // namespace v8::internal | 1032 } } // namespace v8::internal |
| OLD | NEW |