blob: ab3a16ac9e01535be5a854b313adaf28833ad962 [file] [log] [blame] [edit]
// 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);
MaybeDirectHandle<Code> GenerateBaselineCode(Isolate* isolate,
Handle<SharedFunctionInfo> shared);
void EmitReturnBaseline(MacroAssembler* masm);
} // namespace internal
} // namespace v8
#endif // V8_BASELINE_BASELINE_H_