Introduce abstract base class for debugger

Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
Zoltan Herczeg 2021-11-17 09:46:04 +00:00 committed by Hyukwoo Park
commit e3b1a9f5e6
11 changed files with 393 additions and 276 deletions

View file

@ -198,8 +198,8 @@ ByteCodeBlock* ByteCodeGenerator::generateByteCode(Context* context, Interpreted
ast->generateStatementByteCode(block, &ctx);
#ifdef ESCARGOT_DEBUGGER
if (context->debugger() && context->debugger()->enabled() && breakpointContext.m_parsingEnabled) {
context->debugger()->sendBreakpointLocations(breakpointContext.m_breakpointLocations);
if (breakpointContext.m_parsingEnabled) {
context->debugger()->storeBreakpointLocations(breakpointContext.m_breakpointLocations);
}
#endif /* ESCARGOT_DEBUGGER */