Update GC event callback registration

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
This commit is contained in:
HyukWoo Park 2021-10-06 10:38:28 +09:00 committed by Boram Bae
commit aef7ba0c98
11 changed files with 337 additions and 95 deletions

View file

@ -75,6 +75,7 @@ NEVER_INLINE void ScriptFunctionObject::generateByteCodeBlock(ExecutionState& st
state.context()->scriptParser().generateFunctionByteCode(state, interpretedCodeBlock(), stackRemainApprox);
auto& currentCodeSizeTotal = state.context()->vmInstance()->compiledByteCodeSize();
ASSERT(currentCodeSizeTotal < std::numeric_limits<size_t>::max());
currentCodeSizeTotal += interpretedCodeBlock()->byteCodeBlock()->memoryAllocatedSize();
}