Should treat state of async, * correctly for class method, object method

Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
This commit is contained in:
Seonghyun Kim 2020-03-10 12:06:59 +09:00 committed by Boram Bae
commit 1a1078a462
3 changed files with 7 additions and 523 deletions

View file

@ -476,8 +476,10 @@ void ScriptParser::dumpCodeBlockTree(InterpretedCodeBlock* topCodeBlock)
printf(" ");
PRINT_TAB()
printf("CodeBlock %p %s %s(%d:%d -> %d:%d, block %d, body %d)(%s, %s) (E:%d, W:%d, A:%d)\n", cb, cb->m_functionName.string()->toUTF8StringData().data(),
cb->m_isStrict ? "Strict" : "",
printf("CodeBlock %p %s %s%s%s(%d:%d -> %d:%d, block %d, body %d)(%s, %s) (E:%d, W:%d, A:%d)\n", cb, cb->m_functionName.string()->toUTF8StringData().data(),
cb->m_isStrict ? "Strict " : "",
cb->m_isGenerator ? "Generator " : "",
cb->m_isAsync ? "Async" : "",
(int)cb->m_functionStart.line,
(int)cb->m_functionStart.column,
(int)cb->m_bodyEndLOC.line,