v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
maglev.h
Go to the documentation of this file.
1// Copyright 2022 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_H_
6#define V8_MAGLEV_MAGLEV_H_
7
8#ifdef V8_ENABLE_MAGLEV
9
10#include "src/handles/handles.h"
11
12namespace v8 {
13namespace internal {
14
15class BytecodeOffset;
16class Isolate;
17class JSFunction;
18
19class Maglev : public AllStatic {
20 public:
21 // TODO(v8:7700): This entry point is only used for testing. Consider
22 // removing it once BenchMaglev runtime functions are no longer useful.
23 static MaybeHandle<Code> Compile(Isolate* isolate,
24 Handle<JSFunction> function,
25 BytecodeOffset osr_offset);
26};
27
28} // namespace internal
29} // namespace v8
30
31#endif // V8_ENABLE_MAGLEV
32#endif // V8_MAGLEV_MAGLEV_H_