v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
turbofan-enabled.cc
Go to the documentation of this file.
1// Copyright 2023 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4//
5// This file implements the Turbofan API when TF is enabled.
6// See also v8_enable_turbofan in BUILD.gn.
7
12
13namespace v8 {
14namespace internal {
15namespace compiler {
16
17std::unique_ptr<TurbofanCompilationJob> NewCompilationJob(
18 Isolate* isolate, Handle<JSFunction> function, IsScriptAvailable has_script,
19 BytecodeOffset osr_offset) {
20 return Pipeline::NewCompilationJob(isolate, function, CodeKind::TURBOFAN_JS,
21 has_script == IsScriptAvailable::kYes,
22 osr_offset);
23}
24
25} // namespace compiler
26} // namespace internal
27} // namespace v8
static V8_EXPORT_PRIVATE std::unique_ptr< TurbofanCompilationJob > NewCompilationJob(Isolate *isolate, Handle< JSFunction > function, CodeKind code_kind, bool has_script, BytecodeOffset osr_offset=BytecodeOffset::None())
Definition pipeline.cc:3273
std::unique_ptr< TurbofanCompilationJob > NewCompilationJob(Isolate *isolate, Handle< JSFunction > function, IsScriptAvailable has_script, BytecodeOffset osr_offset)
Local< T > Handle