Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(470)

Side by Side Diff: src/objects.cc

Issue 1553523002: [telemetry] Counter Cleanups (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix merge conflicts Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/mips64/code-stubs-mips64.cc ('k') | src/ppc/code-stubs-ppc.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/mips64/code-stubs-mips64.cc ('k') | src/ppc/code-stubs-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698