v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
maglev-compiler.h
Go to the documentation of this file.
1
// Copyright 2021 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_MAGLEV_MAGLEV_COMPILER_H_
6
#define V8_MAGLEV_MAGLEV_COMPILER_H_
7
8
#include "
src/common/globals.h
"
9
#include "
src/compiler/bytecode-analysis.h
"
10
#include "
src/compiler/heap-refs.h
"
11
#include "
src/maglev/maglev-compilation-unit.h
"
12
13
namespace
v8
{
14
namespace
internal
{
15
16
namespace
compiler {
17
class
JSHeapBroker;
18
}
19
20
namespace
maglev {
21
22
class
Graph;
23
24
class
MaglevCompiler
:
public
AllStatic
{
25
public
:
26
// May be called from any thread.
27
static
bool
Compile
(
LocalIsolate
* local_isolate,
28
MaglevCompilationInfo
* compilation_info);
29
30
// Called on the main thread after Compile has completed.
31
// TODO(v8:7700): Move this to a different class?
32
static
std::pair<MaybeHandle<Code>,
BailoutReason
>
GenerateCode
(
33
Isolate
* isolate,
MaglevCompilationInfo
* compilation_info);
34
};
35
36
}
// namespace maglev
37
}
// namespace internal
38
}
// namespace v8
39
40
#endif
// V8_MAGLEV_MAGLEV_COMPILER_H_
bytecode-analysis.h
v8::internal::AllStatic
Definition
globals.h:364
v8::internal::Isolate
Definition
isolate.h:586
v8::internal::LocalIsolate
Definition
local-isolate.h:45
v8::internal::maglev::MaglevCompilationInfo
Definition
maglev-compilation-info.h:48
v8::internal::maglev::MaglevCompiler
Definition
maglev-compiler.h:24
v8::internal::maglev::MaglevCompiler::Compile
static bool Compile(LocalIsolate *local_isolate, MaglevCompilationInfo *compilation_info)
Definition
maglev-compiler.cc:60
v8::internal::maglev::MaglevCompiler::GenerateCode
static std::pair< MaybeHandle< Code >, BailoutReason > GenerateCode(Isolate *isolate, MaglevCompilationInfo *compilation_info)
Definition
maglev-compiler.cc:277
globals.h
heap-refs.h
maglev-compilation-unit.h
v8::internal::BailoutReason
BailoutReason
Definition
bailout-reason.h:140
v8::internal::internal
internal
Definition
wasm-objects-inl.h:458
v8
Definition
api-arguments-inl.h:19
src
maglev
maglev-compiler.h
Generated on Sun Apr 6 2025 21:08:55 for v8 by
1.12.0