Use external storage instead of ByteCodeCodeData for generator, async function

Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
This commit is contained in:
Seonghyun Kim 2020-11-16 21:37:10 +09:00 committed by Hyukwoo Park
commit 033fb60f2a
13 changed files with 31 additions and 52 deletions

View file

@ -3398,9 +3398,6 @@ NEVER_INLINE Value ByteCodeInterpreter::executionResumeOperation(ExecutionState*
state = data->m_executionState;
// remove extra code
byteCodeBlock->m_code.resize(data->m_extraDataByteCodePosition);
// update program counter
programCounter = data->m_byteCodePosition + (size_t)byteCodeBlock->m_code.data();