baseline.h 701 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
// 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;
15
class MacroAssembler;
16

17
bool CanCompileWithBaseline(Isolate* isolate, SharedFunctionInfo shared);
18

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

22 23
void EmitReturnBaseline(MacroAssembler* masm);

24 25 26 27
}  // namespace internal
}  // namespace v8

#endif  // V8_BASELINE_BASELINE_H_