| 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 13931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13942 code()->ClearInlineCaches(); | 13942 code()->ClearInlineCaches(); |
| 13943 set_ic_age(new_ic_age); | 13943 set_ic_age(new_ic_age); |
| 13944 if (code()->kind() == Code::FUNCTION) { | 13944 if (code()->kind() == Code::FUNCTION) { |
| 13945 code()->set_profiler_ticks(0); | 13945 code()->set_profiler_ticks(0); |
| 13946 if (optimization_disabled() && opt_count() >= FLAG_max_opt_count) { | 13946 if (optimization_disabled() && opt_count() >= FLAG_max_opt_count) { |
| 13947 // Re-enable optimizations if they were disabled due to opt_count limit. | 13947 // Re-enable optimizations if they were disabled due to opt_count limit. |
| 13948 set_optimization_disabled(false); | 13948 set_optimization_disabled(false); |
| 13949 } | 13949 } |
| 13950 set_opt_count(0); | 13950 set_opt_count(0); |
| 13951 set_deopt_count(0); | 13951 set_deopt_count(0); |
| 13952 } else if (code()->is_interpreter_trampoline_builtin()) { | 13952 } else if (IsInterpreted()) { |
| 13953 set_profiler_ticks(0); | 13953 set_profiler_ticks(0); |
| 13954 if (optimization_disabled() && opt_count() >= FLAG_max_opt_count) { | 13954 if (optimization_disabled() && opt_count() >= FLAG_max_opt_count) { |
| 13955 // Re-enable optimizations if they were disabled due to opt_count limit. | 13955 // Re-enable optimizations if they were disabled due to opt_count limit. |
| 13956 set_optimization_disabled(false); | 13956 set_optimization_disabled(false); |
| 13957 } | 13957 } |
| 13958 set_opt_count(0); | 13958 set_opt_count(0); |
| 13959 set_deopt_count(0); | 13959 set_deopt_count(0); |
| 13960 } | 13960 } |
| 13961 } | 13961 } |
| 13962 | 13962 |
| (...skipping 6299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20262 ns, Accessors::ModuleNamespaceEntryInfo(isolate, name, attr)) | 20262 ns, Accessors::ModuleNamespaceEntryInfo(isolate, name, attr)) |
| 20263 .Check(); | 20263 .Check(); |
| 20264 } | 20264 } |
| 20265 JSObject::PreventExtensions(ns, THROW_ON_ERROR).ToChecked(); | 20265 JSObject::PreventExtensions(ns, THROW_ON_ERROR).ToChecked(); |
| 20266 | 20266 |
| 20267 return ns; | 20267 return ns; |
| 20268 } | 20268 } |
| 20269 | 20269 |
| 20270 } // namespace internal | 20270 } // namespace internal |
| 20271 } // namespace v8 | 20271 } // namespace v8 |
| OLD | NEW |