mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
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:
parent
90240a18f8
commit
66bd235740
30 changed files with 1466 additions and 1376 deletions
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue