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

Side by Side Diff: src/objects.cc

Issue 879693004: Remove IC age from Code. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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/objects.h ('k') | src/objects-inl.h » ('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 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 <sstream> 5 #include <sstream>
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #include "src/accessors.h" 9 #include "src/accessors.h"
10 #include "src/allocation-site-scopes.h" 10 #include "src/allocation-site-scopes.h"
(...skipping 10324 matching lines...) Expand 10 before | Expand all | Expand 10 after
10335 Isolate* isolate = GetIsolate(); 10335 Isolate* isolate = GetIsolate();
10336 if (isolate->serializer_enabled()) return; 10336 if (isolate->serializer_enabled()) return;
10337 10337
10338 if (map->unused_property_fields() == 0) return; 10338 if (map->unused_property_fields() == 0) return;
10339 10339
10340 map->set_counter(Map::kSlackTrackingCounterStart); 10340 map->set_counter(Map::kSlackTrackingCounterStart);
10341 } 10341 }
10342 10342
10343 10343
10344 void SharedFunctionInfo::ResetForNewContext(int new_ic_age) { 10344 void SharedFunctionInfo::ResetForNewContext(int new_ic_age) {
10345 code()->ClearInlineCaches();
mvstanton 2015/02/05 15:16:39 Also remove ClearTypeFeedbackInfo(), per our discu
ulan 2015/02/05 15:33:17 Done.
10346 // If we clear ICs, we need to clear the type feedback vector too, since 10345 // If we clear ICs, we need to clear the type feedback vector too, since
10347 // CallICs are synced with a feedback vector slot. 10346 // CallICs are synced with a feedback vector slot.
10348 ClearTypeFeedbackInfo(); 10347 ClearTypeFeedbackInfo();
10349 set_ic_age(new_ic_age); 10348 set_ic_age(new_ic_age);
10350 if (code()->kind() == Code::FUNCTION) { 10349 if (code()->kind() == Code::FUNCTION) {
10351 code()->set_profiler_ticks(0); 10350 code()->set_profiler_ticks(0);
10352 if (optimization_disabled() && 10351 if (optimization_disabled() &&
10353 opt_count() >= FLAG_max_opt_count) { 10352 opt_count() >= FLAG_max_opt_count) {
10354 // Re-enable optimizations if they were disabled due to opt_count limit. 10353 // Re-enable optimizations if they were disabled due to opt_count limit.
10355 set_optimization_disabled(false); 10354 set_optimization_disabled(false);
(...skipping 6525 matching lines...) Expand 10 before | Expand all | Expand 10 after
16881 Handle<DependentCode> codes = 16880 Handle<DependentCode> codes =
16882 DependentCode::Insert(handle(cell->dependent_code(), info->isolate()), 16881 DependentCode::Insert(handle(cell->dependent_code(), info->isolate()),
16883 DependentCode::kPropertyCellChangedGroup, 16882 DependentCode::kPropertyCellChangedGroup,
16884 info->object_wrapper()); 16883 info->object_wrapper());
16885 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes); 16884 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes);
16886 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add( 16885 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add(
16887 cell, info->zone()); 16886 cell, info->zone());
16888 } 16887 }
16889 16888
16890 } } // namespace v8::internal 16889 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698