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

Side by Side Diff: src/objects.cc

Issue 723023003: Remove --clever-optimizations (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years, 1 month 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/heap/mark-compact.cc ('k') | no next file » | 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 10196 matching lines...) Expand 10 before | Expand all | Expand 10 after
10207 DeoptimizationOutputData::cast(unoptimized->deoptimization_data()); 10207 DeoptimizationOutputData::cast(unoptimized->deoptimization_data());
10208 unsigned ignore = Deoptimizer::GetOutputInfo(data, id, this); 10208 unsigned ignore = Deoptimizer::GetOutputInfo(data, id, this);
10209 USE(ignore); 10209 USE(ignore);
10210 return true; // Return true if there was no DCHECK. 10210 return true; // Return true if there was no DCHECK.
10211 } 10211 }
10212 10212
10213 10213
10214 void JSFunction::StartInobjectSlackTracking() { 10214 void JSFunction::StartInobjectSlackTracking() {
10215 DCHECK(has_initial_map() && !IsInobjectSlackTrackingInProgress()); 10215 DCHECK(has_initial_map() && !IsInobjectSlackTrackingInProgress());
10216 10216
10217 if (!FLAG_clever_optimizations) return;
10218 Map* map = initial_map(); 10217 Map* map = initial_map();
10219 10218
10220 // Only initiate the tracking the first time. 10219 // Only initiate the tracking the first time.
10221 if (map->done_inobject_slack_tracking()) return; 10220 if (map->done_inobject_slack_tracking()) return;
10222 map->set_done_inobject_slack_tracking(true); 10221 map->set_done_inobject_slack_tracking(true);
10223 10222
10224 // No tracking during the snapshot construction phase. 10223 // No tracking during the snapshot construction phase.
10225 Isolate* isolate = GetIsolate(); 10224 Isolate* isolate = GetIsolate();
10226 if (isolate->serializer_enabled()) return; 10225 if (isolate->serializer_enabled()) return;
10227 10226
(...skipping 6579 matching lines...) Expand 10 before | Expand all | Expand 10 after
16807 Handle<DependentCode> codes = 16806 Handle<DependentCode> codes =
16808 DependentCode::Insert(handle(cell->dependent_code(), info->isolate()), 16807 DependentCode::Insert(handle(cell->dependent_code(), info->isolate()),
16809 DependentCode::kPropertyCellChangedGroup, 16808 DependentCode::kPropertyCellChangedGroup,
16810 info->object_wrapper()); 16809 info->object_wrapper());
16811 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes); 16810 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes);
16812 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add( 16811 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add(
16813 cell, info->zone()); 16812 cell, info->zone());
16814 } 16813 }
16815 16814
16816 } } // namespace v8::internal 16815 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap/mark-compact.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698