5 #include "src/compiler/osr.h" 7 #include "src/compiler/frame.h" 8 #include "src/objects-inl.h" 9 #include "src/objects.h" 10 #include "src/objects/shared-function-info.h" 11 #include "src/optimized-compilation-info.h" 17 OsrHelper::OsrHelper(OptimizedCompilationInfo* info)
18 : parameter_count_(info->bytecode_array()->parameter_count()),
19 stack_slot_count_(InterpreterFrameConstants::RegisterStackSlotCount(
20 info->bytecode_array()->register_count()) +
21 InterpreterFrameConstants::kExtraSlotCount) {}
23 void OsrHelper::SetupFrame(Frame* frame) {
26 frame->ReserveSpillSlots(UnoptimizedFrameSlots());