#include "src/compiler/osr.h"
#include "src/codegen/optimized-compilation-info.h"
#include "src/compiler/frame.h"
#include "src/objects/js-array-inl.h"
namespace v8 {
namespace internal {
namespace compiler {
OsrHelper::OsrHelper(OptimizedCompilationInfo* info)
: parameter_count_(info->bytecode_array()->parameter_count()),
stack_slot_count_(UnoptimizedFrameConstants::RegisterStackSlotCount(
info->bytecode_array()->register_count()) +
UnoptimizedFrameConstants::kExtraSlotCount) {}
void OsrHelper::SetupFrame(Frame* frame) {
frame->ReserveSpillSlots(UnoptimizedFrameSlots());
}
}
}
}