xref: /third_party/node/deps/v8/src/baseline/baseline.h (revision 1cb0ef41)
1// Copyright 2020 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_BASELINE_BASELINE_H_
6#define V8_BASELINE_BASELINE_H_
7
8#include "src/handles/handles.h"
9
10namespace v8 {
11namespace internal {
12
13class Code;
14class SharedFunctionInfo;
15class MacroAssembler;
16
17bool CanCompileWithBaseline(Isolate* isolate, SharedFunctionInfo shared);
18
19MaybeHandle<Code> GenerateBaselineCode(Isolate* isolate,
20                                       Handle<SharedFunctionInfo> shared);
21
22void EmitReturnBaseline(MacroAssembler* masm);
23
24}  // namespace internal
25}  // namespace v8
26
27#endif  // V8_BASELINE_BASELINE_H_
28