| 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 <memory> | 9 #include <memory> |
| 10 #include <sstream> | 10 #include <sstream> |
| (...skipping 13936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13947 code()->ClearInlineCaches(); | 13947 code()->ClearInlineCaches(); |
| 13948 set_ic_age(new_ic_age); | 13948 set_ic_age(new_ic_age); |
| 13949 if (code()->kind() == Code::FUNCTION) { | 13949 if (code()->kind() == Code::FUNCTION) { |
| 13950 code()->set_profiler_ticks(0); | 13950 code()->set_profiler_ticks(0); |
| 13951 if (optimization_disabled() && opt_count() >= FLAG_max_opt_count) { | 13951 if (optimization_disabled() && opt_count() >= FLAG_max_opt_count) { |
| 13952 // Re-enable optimizations if they were disabled due to opt_count limit. | 13952 // Re-enable optimizations if they were disabled due to opt_count limit. |
| 13953 set_optimization_disabled(false); | 13953 set_optimization_disabled(false); |
| 13954 } | 13954 } |
| 13955 set_opt_count(0); | 13955 set_opt_count(0); |
| 13956 set_deopt_count(0); | 13956 set_deopt_count(0); |
| 13957 } else if (code()->is_interpreter_trampoline_builtin()) { | 13957 } else if (IsInterpreted()) { |
| 13958 set_profiler_ticks(0); | 13958 set_profiler_ticks(0); |
| 13959 if (optimization_disabled() && opt_count() >= FLAG_max_opt_count) { | 13959 if (optimization_disabled() && opt_count() >= FLAG_max_opt_count) { |
| 13960 // Re-enable optimizations if they were disabled due to opt_count limit. | 13960 // Re-enable optimizations if they were disabled due to opt_count limit. |
| 13961 set_optimization_disabled(false); | 13961 set_optimization_disabled(false); |
| 13962 } | 13962 } |
| 13963 set_opt_count(0); | 13963 set_opt_count(0); |
| 13964 set_deopt_count(0); | 13964 set_deopt_count(0); |
| 13965 } | 13965 } |
| 13966 } | 13966 } |
| 13967 | 13967 |
| (...skipping 6341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20309 // Check if the accessor uses a cached property. | 20309 // Check if the accessor uses a cached property. |
| 20310 if (!fti->cached_property_name()->IsTheHole(isolate)) { | 20310 if (!fti->cached_property_name()->IsTheHole(isolate)) { |
| 20311 return handle(Name::cast(fti->cached_property_name())); | 20311 return handle(Name::cast(fti->cached_property_name())); |
| 20312 } | 20312 } |
| 20313 } | 20313 } |
| 20314 return MaybeHandle<Name>(); | 20314 return MaybeHandle<Name>(); |
| 20315 } | 20315 } |
| 20316 | 20316 |
| 20317 } // namespace internal | 20317 } // namespace internal |
| 20318 } // namespace v8 | 20318 } // namespace v8 |
| OLD | NEW |