| 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 11074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11085 void Map::ZapPrototypeTransitions() { | 11085 void Map::ZapPrototypeTransitions() { |
| 11086 FixedArray* proto_transitions = GetPrototypeTransitions(); | 11086 FixedArray* proto_transitions = GetPrototypeTransitions(); |
| 11087 MemsetPointer(proto_transitions->data_start(), | 11087 MemsetPointer(proto_transitions->data_start(), |
| 11088 GetHeap()->the_hole_value(), | 11088 GetHeap()->the_hole_value(), |
| 11089 proto_transitions->length()); | 11089 proto_transitions->length()); |
| 11090 } | 11090 } |
| 11091 | 11091 |
| 11092 | 11092 |
| 11093 void Map::AddDependentCompilationInfo(DependentCode::DependencyGroup group, | 11093 void Map::AddDependentCompilationInfo(DependentCode::DependencyGroup group, |
| 11094 CompilationInfo* info) { | 11094 CompilationInfo* info) { |
| 11095 Handle<DependentCode> codes = DependentCode::Insert( | 11095 Handle<DependentCode> dep(dependent_code()); |
| 11096 Handle<DependentCode>(dependent_code()), group, info->object_wrapper()); | 11096 Handle<DependentCode> codes = |
| 11097 DependentCode::Insert(dep, group, info->object_wrapper()); |
| 11097 if (*codes != dependent_code()) set_dependent_code(*codes); | 11098 if (*codes != dependent_code()) set_dependent_code(*codes); |
| 11098 info->dependent_maps(group)->Add(Handle<Map>(this), info->zone()); | 11099 info->dependent_maps(group)->Add(Handle<Map>(this), info->zone()); |
| 11099 } | 11100 } |
| 11100 | 11101 |
| 11101 | 11102 |
| 11102 void Map::AddDependentCode(DependentCode::DependencyGroup group, | 11103 void Map::AddDependentCode(DependentCode::DependencyGroup group, |
| 11103 Handle<Code> code) { | 11104 Handle<Code> code) { |
| 11104 Handle<DependentCode> codes = DependentCode::Insert( | 11105 Handle<DependentCode> codes = DependentCode::Insert( |
| 11105 Handle<DependentCode>(dependent_code()), group, code); | 11106 Handle<DependentCode>(dependent_code()), group, code); |
| 11106 if (*codes != dependent_code()) set_dependent_code(*codes); | 11107 if (*codes != dependent_code()) set_dependent_code(*codes); |
| (...skipping 4679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15786 | 15787 |
| 15787 | 15788 |
| 15788 void JSTypedArray::Neuter() { | 15789 void JSTypedArray::Neuter() { |
| 15789 set_byte_offset(Smi::FromInt(0)); | 15790 set_byte_offset(Smi::FromInt(0)); |
| 15790 set_byte_length(Smi::FromInt(0)); | 15791 set_byte_length(Smi::FromInt(0)); |
| 15791 set_length(Smi::FromInt(0)); | 15792 set_length(Smi::FromInt(0)); |
| 15792 set_elements(GetHeap()->EmptyExternalArrayForMap(map())); | 15793 set_elements(GetHeap()->EmptyExternalArrayForMap(map())); |
| 15793 } | 15794 } |
| 15794 | 15795 |
| 15795 } } // namespace v8::internal | 15796 } } // namespace v8::internal |
| OLD | NEW |