diff options
Diffstat (limited to 'src/wasm/wasm.cpp')
-rw-r--r-- | src/wasm/wasm.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/wasm/wasm.cpp b/src/wasm/wasm.cpp index c99bb0994..f7081e49c 100644 --- a/src/wasm/wasm.cpp +++ b/src/wasm/wasm.cpp @@ -37,6 +37,7 @@ const char* TargetFeatures = "target_features"; } Name GROW_WASM_MEMORY("__growWasmMemory"), + WASM_CALL_CTORS("__wasm_call_ctors"), MEMORY_BASE("__memory_base"), TABLE_BASE("__table_base"), GET_TEMP_RET0("getTempRet0"), @@ -105,7 +106,7 @@ const char* getExpressionName(Expression* curr) { case Expression::Id::AtomicCmpxchgId: return "atomic_cmpxchg"; case Expression::Id::AtomicRMWId: return "atomic_rmw"; case Expression::Id::AtomicWaitId: return "atomic_wait"; - case Expression::Id::AtomicWakeId: return "atomic_wake"; + case Expression::Id::AtomicNotifyId: return "atomic_notify"; case Expression::Id::SIMDExtractId: return "simd_extract"; case Expression::Id::SIMDReplaceId: return "simd_replace"; case Expression::Id::SIMDShuffleId: return "simd_shuffle"; @@ -420,9 +421,9 @@ void AtomicWait::finalize() { } } -void AtomicWake::finalize() { +void AtomicNotify::finalize() { type = i32; - if (ptr->type == unreachable || wakeCount->type == unreachable) { + if (ptr->type == unreachable || notifyCount->type == unreachable) { type = unreachable; } } |