Skip to content

Commit

Permalink
Remove duplicated opcode.def file
Browse files Browse the repository at this point in the history
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
  • Loading branch information
clover2123 authored and ksh8281 committed Jul 2, 2024
1 parent f697236 commit e16fc8f
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 611 deletions.
12 changes: 6 additions & 6 deletions src/parser/WASMParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ enum class WASMOpcode : size_t {
#define WABT_OPCODE(rtype, type1, type2, type3, memSize, prefix, code, name, \
text, decomp) \
name##Opcode,
#include "parser/opcode.def"
#include "wabt/opcode.def"
#undef WABT_OPCODE
OpcodeKindEnd,
};
Expand Down Expand Up @@ -103,7 +103,7 @@ WASMCodeInfo g_wasmCodeInfo[static_cast<size_t>(WASMOpcode::OpcodeKindEnd)] = {
WASMCodeInfo::rtype, \
{ WASMCodeInfo::type1, WASMCodeInfo::type2, WASMCodeInfo::type3 }, \
text },
#include "parser/opcode.def"
#include "wabt/opcode.def"
#undef WABT_OPCODE
};

Expand Down Expand Up @@ -779,11 +779,11 @@ class WASMBinaryReader : public wabt::WASMBinaryReaderDelegate {
moduleName, fieldName, m_result.m_tableTypes[tableIndex]));
}

virtual void OnImportMemory(Index importIndex, std::string moduleName, std::string fieldName, Index memoryIndex, size_t initialSize, size_t maximumSize, bool is_shared) override
virtual void OnImportMemory(Index importIndex, std::string moduleName, std::string fieldName, Index memoryIndex, size_t initialSize, size_t maximumSize, bool isShared) override
{
ASSERT(memoryIndex == m_result.m_memoryTypes.size());
ASSERT(m_result.m_imports.size() == importIndex);
m_result.m_memoryTypes.push_back(new Walrus::MemoryType(initialSize, maximumSize, is_shared));
m_result.m_memoryTypes.push_back(new Walrus::MemoryType(initialSize, maximumSize, isShared));
m_result.m_imports.push_back(new Walrus::ImportType(
Walrus::ImportType::Memory,
moduleName, fieldName, m_result.m_memoryTypes[memoryIndex]));
Expand Down Expand Up @@ -886,10 +886,10 @@ class WASMBinaryReader : public wabt::WASMBinaryReaderDelegate {
m_result.m_memoryTypes.reserve(count);
}

virtual void OnMemory(Index index, uint64_t initialSize, uint64_t maximumSize, bool is_shared) override
virtual void OnMemory(Index index, uint64_t initialSize, uint64_t maximumSize, bool isShared) override
{
ASSERT(index == m_result.m_memoryTypes.size());
m_result.m_memoryTypes.push_back(new Walrus::MemoryType(initialSize, maximumSize, is_shared));
m_result.m_memoryTypes.push_back(new Walrus::MemoryType(initialSize, maximumSize, isShared));
}

virtual void OnDataSegmentCount(Index count) override
Expand Down
Loading

0 comments on commit e16fc8f

Please sign in to comment.