#ifndef V8_MAGLEV_MAGLEV_COMPILER_H_
#define V8_MAGLEV_MAGLEV_COMPILER_H_
#include "src/common/globals.h"
#include "src/compiler/bytecode-analysis.h"
#include "src/compiler/heap-refs.h"
#include "src/maglev/maglev-compilation-unit.h"
namespace v8 {
namespace internal {
namespace compiler {
class JSHeapBroker;
}
namespace maglev {
class Graph;
class MaglevCompiler : public AllStatic {
public:
static bool Compile(LocalIsolate* local_isolate,
MaglevCompilationInfo* compilation_info);
static std::pair<MaybeHandle<Code>, BailoutReason> GenerateCode(
Isolate* isolate, MaglevCompilationInfo* compilation_info);
};
}
}
}
#endif