Start creating a debugger API

- The debugger callbacks are implemented as class
- Using std::vector for storing data

Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
Zoltan Herczeg 2021-11-29 11:16:52 +00:00 committed by Hyukwoo Park
commit a481cd6dd8
15 changed files with 281 additions and 73 deletions

View file

@ -610,7 +610,7 @@ ScriptParser::InitializeScriptResult ScriptParser::initializeScriptWithDebugger(
m_context->astAllocator().reset();
if (m_context->debugger() != nullptr) {
m_context->debugger()->endParsing(source, srcName, orgError->message);
m_context->debugger()->parseCompleted(source, srcName, orgError->message);
}
GC_enable();
@ -643,7 +643,7 @@ ScriptParser::InitializeScriptResult ScriptParser::initializeScriptWithDebugger(
if (debugger != nullptr) {
recursivelyGenerateChildrenByteCode(topCodeBlock);
debugger->endParsing(source, srcName);
debugger->parseCompleted(source, srcName);
debugger->clearParsingData();
}