OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <iomanip> | 5 #include <iomanip> |
6 #include <sstream> | 6 #include <sstream> |
7 | 7 |
8 #include "src/v8.h" | 8 #include "src/v8.h" |
9 | 9 |
10 #include "src/accessors.h" | 10 #include "src/accessors.h" |
(...skipping 6724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6735 } | 6735 } |
6736 | 6736 |
6737 | 6737 |
6738 Handle<Map> Map::CopyDropDescriptors(Handle<Map> map) { | 6738 Handle<Map> Map::CopyDropDescriptors(Handle<Map> map) { |
6739 Handle<Map> result = RawCopy(map, map->instance_size()); | 6739 Handle<Map> result = RawCopy(map, map->instance_size()); |
6740 | 6740 |
6741 // Please note instance_type and instance_size are set when allocated. | 6741 // Please note instance_type and instance_size are set when allocated. |
6742 result->set_inobject_properties(map->inobject_properties()); | 6742 result->set_inobject_properties(map->inobject_properties()); |
6743 result->set_unused_property_fields(map->unused_property_fields()); | 6743 result->set_unused_property_fields(map->unused_property_fields()); |
6744 | 6744 |
6745 result->set_pre_allocated_property_fields( | |
6746 map->pre_allocated_property_fields()); | |
6747 result->ClearCodeCache(map->GetHeap()); | 6745 result->ClearCodeCache(map->GetHeap()); |
6748 map->NotifyLeafMapLayoutChange(); | 6746 map->NotifyLeafMapLayoutChange(); |
6749 return result; | 6747 return result; |
6750 } | 6748 } |
6751 | 6749 |
6752 | 6750 |
6753 Handle<Map> Map::ShareDescriptor(Handle<Map> map, | 6751 Handle<Map> Map::ShareDescriptor(Handle<Map> map, |
6754 Handle<DescriptorArray> descriptors, | 6752 Handle<DescriptorArray> descriptors, |
6755 Descriptor* descriptor) { | 6753 Descriptor* descriptor) { |
6756 // Sanity check. This path is only to be taken if the map owns its descriptor | 6754 // Sanity check. This path is only to be taken if the map owns its descriptor |
(...skipping 9375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16132 Handle<Object> new_value) { | 16130 Handle<Object> new_value) { |
16133 if (cell->value() != *new_value) { | 16131 if (cell->value() != *new_value) { |
16134 cell->set_value(*new_value); | 16132 cell->set_value(*new_value); |
16135 Isolate* isolate = cell->GetIsolate(); | 16133 Isolate* isolate = cell->GetIsolate(); |
16136 cell->dependent_code()->DeoptimizeDependentCodeGroup( | 16134 cell->dependent_code()->DeoptimizeDependentCodeGroup( |
16137 isolate, DependentCode::kPropertyCellChangedGroup); | 16135 isolate, DependentCode::kPropertyCellChangedGroup); |
16138 } | 16136 } |
16139 } | 16137 } |
16140 } // namespace internal | 16138 } // namespace internal |
16141 } // namespace v8 | 16139 } // namespace v8 |
OLD | NEW |