#include "src/baseline/baseline.h"
#include "src/handles/maybe-handles.h"
#include "src/objects/shared-function-info-inl.h"
#ifdef V8_ENABLE_SPARKPLUG
#include "src/baseline/baseline-assembler-inl.h"
#include "src/baseline/baseline-compiler.h"
#include "src/debug/debug.h"
#include "src/heap/factory-inl.h"
#include "src/logging/runtime-call-stats-scope.h"
#include "src/objects/script-inl.h"
namespace v8 {
namespace internal {
bool CanCompileWithBaseline(Isolate* isolate,
Tagged<SharedFunctionInfo> shared) { … }
MaybeHandle<Code> GenerateBaselineCode(Isolate* isolate,
Handle<SharedFunctionInfo> shared) { … }
void EmitReturnBaseline(MacroAssembler* masm) { … }
}
}
#else
namespace v8 {
namespace internal {
bool CanCompileWithBaseline(Isolate* isolate,
Tagged<SharedFunctionInfo> shared) {
return false;
}
MaybeHandle<Code> GenerateBaselineCode(Isolate* isolate,
Handle<SharedFunctionInfo> shared) {
UNREACHABLE();
}
void EmitReturnBaseline(MacroAssembler* masm) { UNREACHABLE(); }
}
}
#endif