| 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 <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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |