v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
turbofan.h
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
#ifndef V8_COMPILER_TURBOFAN_H_
6
#define V8_COMPILER_TURBOFAN_H_
7
8
#include <memory>
9
10
// Clients of this interface shouldn't depend on compiler internals.
11
// Do not include anything from src/compiler here, and keep includes minimal.
12
13
#include "
src/base/macros.h
"
14
#include "
src/utils/utils.h
"
15
16
namespace
v8
{
17
namespace
internal
{
18
19
class
Isolate;
20
class
JSFunction;
21
class
TurbofanCompilationJob;
22
23
namespace
compiler {
24
25
// Whether the given JSFunction has an associated Script.
26
enum class
IsScriptAvailable
{
27
kNo
,
28
kYes
,
29
};
30
31
V8_EXPORT_PRIVATE
std::unique_ptr<TurbofanCompilationJob>
NewCompilationJob
(
32
Isolate
* isolate,
Handle<JSFunction>
function,
IsScriptAvailable
has_script,
33
BytecodeOffset
osr_offset =
BytecodeOffset::None
());
34
35
}
// namespace compiler
36
}
// namespace internal
37
}
// namespace v8
38
39
#endif
// V8_COMPILER_TURBOFAN_H_
v8::internal::BytecodeOffset
Definition
utils.h:670
v8::internal::BytecodeOffset::None
static constexpr BytecodeOffset None()
Definition
utils.h:675
v8::internal::Handle
Definition
handles.h:149
v8::internal::Isolate
Definition
isolate.h:586
v8::internal::compiler::CanThrow::kYes
@ kYes
v8::internal::compiler::CanThrow::kNo
@ kNo
v8::internal::compiler::NewCompilationJob
std::unique_ptr< TurbofanCompilationJob > NewCompilationJob(Isolate *isolate, Handle< JSFunction > function, IsScriptAvailable has_script, BytecodeOffset osr_offset)
Definition
turbofan-disabled.cc:15
v8::internal::compiler::IsScriptAvailable
IsScriptAvailable
Definition
turbofan.h:26
v8::internal::internal
internal
Definition
wasm-objects-inl.h:458
v8
Definition
api-arguments-inl.h:19
macros.h
V8_EXPORT_PRIVATE
#define V8_EXPORT_PRIVATE
Definition
macros.h:460
utils.h
src
compiler
turbofan.h
Generated on Sun Apr 6 2025 21:08:52 for v8 by
1.12.0