Remove c++ try-catch statement in interpreter function. (#387)

* separate ByteCodeGenerator::m_tryStatementCount into multiple items for implementing es6 generator

Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
This commit is contained in:
Patrick Kim 2019-08-23 16:55:34 +09:00 committed by Hyukwoo Park
commit 66bd235740
30 changed files with 1466 additions and 1376 deletions

View file

@ -73,7 +73,7 @@ NEVER_INLINE void ScriptFunctionObject::generateByteCodeBlock(ExecutionState& st
ExecutionState* es = &state;
while (es) {
FunctionObject* callee = es->callee();
FunctionObject* callee = es->resolveCallee();
if (callee && callee->codeBlock()->isInterpretedCodeBlock()) {
InterpretedCodeBlock* cblk = callee->codeBlock()->asInterpretedCodeBlock();
if (cblk->script() && cblk->byteCodeBlock() && std::find(codeBlocksInCurrentStack.begin(), codeBlocksInCurrentStack.end(), cblk) == codeBlocksInCurrentStack.end()) {