OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/runtime/runtime-utils.h" | 5 #include "src/runtime/runtime-utils.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "src/arguments.h" | 9 #include "src/arguments.h" |
10 #include "src/compiler-dispatcher/optimizing-compile-dispatcher.h" | 10 #include "src/compiler-dispatcher/optimizing-compile-dispatcher.h" |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 // With --always-opt, optimization status expectations might not | 261 // With --always-opt, optimization status expectations might not |
262 // match up, so just return a sentinel. | 262 // match up, so just return a sentinel. |
263 return Smi::FromInt(3); // 3 == "always". | 263 return Smi::FromInt(3); // 3 == "always". |
264 } | 264 } |
265 if (FLAG_deopt_every_n_times) { | 265 if (FLAG_deopt_every_n_times) { |
266 return Smi::FromInt(6); // 6 == "maybe deopted". | 266 return Smi::FromInt(6); // 6 == "maybe deopted". |
267 } | 267 } |
268 if (function->IsOptimized() && function->code()->is_turbofanned()) { | 268 if (function->IsOptimized() && function->code()->is_turbofanned()) { |
269 return Smi::FromInt(7); // 7 == "TurboFan compiler". | 269 return Smi::FromInt(7); // 7 == "TurboFan compiler". |
270 } | 270 } |
271 if (function->IsInterpreted()) { | |
272 return Smi::FromInt(8); // 8 == "Interpreted". | |
273 } | |
274 return function->IsOptimized() ? Smi::FromInt(1) // 1 == "yes". | 271 return function->IsOptimized() ? Smi::FromInt(1) // 1 == "yes". |
275 : Smi::FromInt(2); // 2 == "no". | 272 : Smi::FromInt(2); // 2 == "no". |
276 } | 273 } |
277 | 274 |
278 | 275 |
279 RUNTIME_FUNCTION(Runtime_UnblockConcurrentRecompilation) { | 276 RUNTIME_FUNCTION(Runtime_UnblockConcurrentRecompilation) { |
280 DCHECK(args.length() == 0); | 277 DCHECK(args.length() == 0); |
281 if (FLAG_block_concurrent_recompilation && | 278 if (FLAG_block_concurrent_recompilation && |
282 isolate->concurrent_recompilation_enabled()) { | 279 isolate->concurrent_recompilation_enabled()) { |
283 isolate->optimizing_compile_dispatcher()->Unblock(); | 280 isolate->optimizing_compile_dispatcher()->Unblock(); |
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
812 RUNTIME_FUNCTION(Runtime_ValidateWasmOrphanedInstance) { | 809 RUNTIME_FUNCTION(Runtime_ValidateWasmOrphanedInstance) { |
813 HandleScope shs(isolate); | 810 HandleScope shs(isolate); |
814 DCHECK(args.length() == 1); | 811 DCHECK(args.length() == 1); |
815 CONVERT_ARG_HANDLE_CHECKED(JSObject, instance_obj, 0); | 812 CONVERT_ARG_HANDLE_CHECKED(JSObject, instance_obj, 0); |
816 wasm::testing::ValidateOrphanedInstance(isolate, instance_obj); | 813 wasm::testing::ValidateOrphanedInstance(isolate, instance_obj); |
817 return isolate->heap()->ToBoolean(true); | 814 return isolate->heap()->ToBoolean(true); |
818 } | 815 } |
819 | 816 |
820 } // namespace internal | 817 } // namespace internal |
821 } // namespace v8 | 818 } // namespace v8 |
OLD | NEW |