Enable threaded interpreter for arm64 architecture

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
This commit is contained in:
HyukWoo Park 2023-01-04 15:29:50 +09:00 committed by Patrick Kim
commit 81bcf2ed13
7 changed files with 20 additions and 14 deletions

View file

@ -402,7 +402,7 @@ void CodeCacheWriter::storeByteCodeStream(ByteCodeBlock* block)
while (code < end) {
ByteCode* currentCode = reinterpret_cast<ByteCode*>(code);
#if defined(COMPILER_GCC) || defined(COMPILER_CLANG)
#if defined(ESCARGOT_COMPUTED_GOTO_INTERPRETER)
Opcode opcode = (Opcode)(size_t)currentCode->m_opcodeInAddress;
#else
Opcode opcode = currentCode->m_opcode;
@ -982,7 +982,7 @@ void CodeCacheReader::loadByteCodeStream(Context* context, ByteCodeBlock* block)
ByteCodeRelocInfo& info = relocInfoVector[i];
ByteCode* currentCode = reinterpret_cast<ByteCode*>(code + info.codeOffset);
#if defined(COMPILER_GCC) || defined(COMPILER_CLANG)
#if defined(ESCARGOT_COMPUTED_GOTO_INTERPRETER)
Opcode opcode = (Opcode)(size_t)currentCode->m_opcodeInAddress;
#else
Opcode opcode = currentCode->m_opcode;