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 12863 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12874 ClearTypeFeedbackInfo(); | 12874 ClearTypeFeedbackInfo(); |
12875 set_ic_age(new_ic_age); | 12875 set_ic_age(new_ic_age); |
12876 if (code()->kind() == Code::FUNCTION) { | 12876 if (code()->kind() == Code::FUNCTION) { |
12877 code()->set_profiler_ticks(0); | 12877 code()->set_profiler_ticks(0); |
12878 if (optimization_disabled() && opt_count() >= FLAG_max_opt_count) { | 12878 if (optimization_disabled() && opt_count() >= FLAG_max_opt_count) { |
12879 // Re-enable optimizations if they were disabled due to opt_count limit. | 12879 // Re-enable optimizations if they were disabled due to opt_count limit. |
12880 set_optimization_disabled(false); | 12880 set_optimization_disabled(false); |
12881 } | 12881 } |
12882 set_opt_count(0); | 12882 set_opt_count(0); |
12883 set_deopt_count(0); | 12883 set_deopt_count(0); |
12884 } else if (code()->is_interpreter_entry_trampoline()) { | 12884 } else if (code()->is_interpreter_trampoline_builtin()) { |
12885 set_profiler_ticks(0); | 12885 set_profiler_ticks(0); |
12886 if (optimization_disabled() && opt_count() >= FLAG_max_opt_count) { | 12886 if (optimization_disabled() && opt_count() >= FLAG_max_opt_count) { |
12887 // Re-enable optimizations if they were disabled due to opt_count limit. | 12887 // Re-enable optimizations if they were disabled due to opt_count limit. |
12888 set_optimization_disabled(false); | 12888 set_optimization_disabled(false); |
12889 } | 12889 } |
12890 set_opt_count(0); | 12890 set_opt_count(0); |
12891 set_deopt_count(0); | 12891 set_deopt_count(0); |
12892 } | 12892 } |
12893 } | 12893 } |
12894 | 12894 |
(...skipping 5477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
18372 if (cell->value() != *new_value) { | 18372 if (cell->value() != *new_value) { |
18373 cell->set_value(*new_value); | 18373 cell->set_value(*new_value); |
18374 Isolate* isolate = cell->GetIsolate(); | 18374 Isolate* isolate = cell->GetIsolate(); |
18375 cell->dependent_code()->DeoptimizeDependentCodeGroup( | 18375 cell->dependent_code()->DeoptimizeDependentCodeGroup( |
18376 isolate, DependentCode::kPropertyCellChangedGroup); | 18376 isolate, DependentCode::kPropertyCellChangedGroup); |
18377 } | 18377 } |
18378 } | 18378 } |
18379 | 18379 |
18380 } // namespace internal | 18380 } // namespace internal |
18381 } // namespace v8 | 18381 } // namespace v8 |
OLD | NEW |