summaryrefslogtreecommitdiffstats
path: root/chromium/v8/src/baseline/baseline.h
blob: ab85136d7710965370d5265527a4f3f2ccce4c45 (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
// Copyright 2020 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_BASELINE_BASELINE_H_
#define V8_BASELINE_BASELINE_H_

#include "src/handles/handles.h"

namespace v8 {
namespace internal {

class Code;
class SharedFunctionInfo;
class MacroAssembler;

bool CanCompileWithBaseline(Isolate* isolate,
                            Tagged<SharedFunctionInfo> shared);

MaybeHandle<Code> GenerateBaselineCode(Isolate* isolate,
                                       Handle<SharedFunctionInfo> shared);

void EmitReturnBaseline(MacroAssembler* masm);

}  // namespace internal
}  // namespace v8

#endif  // V8_BASELINE_BASELINE_H_