mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
Rename required register numbers for ByteCodeBlock
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
This commit is contained in:
parent
2593b3cabe
commit
d0716850af
10 changed files with 52 additions and 52 deletions
|
|
@ -61,13 +61,13 @@ protected:
|
|||
|
||||
ByteCodeBlock* blk = codeBlock->byteCodeBlock();
|
||||
Context* ctx = codeBlock->context();
|
||||
const size_t registerSize = blk->m_requiredGeneralRegisterSizeInValueSize;
|
||||
const size_t registerSize = blk->m_requiredOperandRegisterNumber;
|
||||
|
||||
#if !defined(NDEBUG)
|
||||
const size_t stackStorageSize = codeBlock->totalStackAllocatedVariableSize();
|
||||
const size_t literalStorageSize = blk->m_numeralLiteralData.size();
|
||||
ASSERT(codeBlock->isStrict() == isStrict);
|
||||
ASSERT(blk->m_requiredGeneralRegisterSizeInValueSize + stackStorageSize + literalStorageSize <= registerFileSize);
|
||||
ASSERT(blk->m_requiredOperandRegisterNumber + stackStorageSize + literalStorageSize <= registerFileSize);
|
||||
#endif
|
||||
|
||||
// prepare env, ec
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue