OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 "src/objects.h" | 5 #include "src/objects.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 #include <iomanip> | 8 #include <iomanip> |
9 #include <sstream> | 9 #include <sstream> |
10 | 10 |
(...skipping 9233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9244 int offset = Map::kWeakCellCacheOffset + kPointerSize; | 9244 int offset = Map::kWeakCellCacheOffset + kPointerSize; |
9245 DCHECK(memcmp(fresh->address() + offset, | 9245 DCHECK(memcmp(fresh->address() + offset, |
9246 new_map->address() + offset, | 9246 new_map->address() + offset, |
9247 Map::kSize - offset) == 0); | 9247 Map::kSize - offset) == 0); |
9248 } | 9248 } |
9249 #endif | 9249 #endif |
9250 } else { | 9250 } else { |
9251 new_map = Map::CopyNormalized(fast_map, mode); | 9251 new_map = Map::CopyNormalized(fast_map, mode); |
9252 if (use_cache) { | 9252 if (use_cache) { |
9253 cache->Set(fast_map, new_map); | 9253 cache->Set(fast_map, new_map); |
9254 isolate->counters()->normalized_maps()->Increment(); | 9254 isolate->counters()->maps_normalized()->Increment(); |
9255 } | 9255 } |
9256 #if TRACE_MAPS | 9256 #if TRACE_MAPS |
9257 if (FLAG_trace_maps) { | 9257 if (FLAG_trace_maps) { |
9258 PrintF("[TraceMaps: Normalize from= %p to= %p reason= %s ]\n", | 9258 PrintF("[TraceMaps: Normalize from= %p to= %p reason= %s ]\n", |
9259 reinterpret_cast<void*>(*fast_map), | 9259 reinterpret_cast<void*>(*fast_map), |
9260 reinterpret_cast<void*>(*new_map), reason); | 9260 reinterpret_cast<void*>(*new_map), reason); |
9261 } | 9261 } |
9262 #endif | 9262 #endif |
9263 } | 9263 } |
9264 fast_map->NotifyLeafMapLayoutChange(); | 9264 fast_map->NotifyLeafMapLayoutChange(); |
(...skipping 10552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
19817 if (cell->value() != *new_value) { | 19817 if (cell->value() != *new_value) { |
19818 cell->set_value(*new_value); | 19818 cell->set_value(*new_value); |
19819 Isolate* isolate = cell->GetIsolate(); | 19819 Isolate* isolate = cell->GetIsolate(); |
19820 cell->dependent_code()->DeoptimizeDependentCodeGroup( | 19820 cell->dependent_code()->DeoptimizeDependentCodeGroup( |
19821 isolate, DependentCode::kPropertyCellChangedGroup); | 19821 isolate, DependentCode::kPropertyCellChangedGroup); |
19822 } | 19822 } |
19823 } | 19823 } |
19824 | 19824 |
19825 } // namespace internal | 19825 } // namespace internal |
19826 } // namespace v8 | 19826 } // namespace v8 |
OLD | NEW |