blob: 7207fdec5eabe73dffdf25634b110ff3367a92f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// Copyright 2022 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_MAGLEV_MAGLEV_H_
#define V8_MAGLEV_MAGLEV_H_
#ifdef V8_ENABLE_MAGLEV
#include "src/handles/handles.h"
namespace v8 {
namespace internal {
class Isolate;
class JSFunction;
class Maglev : public AllStatic {
public:
// TODO(v8:7700): This entry point is only used for testing. Consider
// removing it once BenchMaglev runtime functions are no longer useful.
static MaybeHandle<CodeT> Compile(Isolate* isolate,
Handle<JSFunction> function);
};
} // namespace internal
} // namespace v8
#endif // V8_ENABLE_MAGLEV
#endif // V8_MAGLEV_MAGLEV_H_
|