Skip to content

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant

1.1 KB
Raw Blame
;;! target = "x86_64"
;;! test = "winch"
;;! flags = "-W threads"

(module
  (memory 1 1 shared)
  (func (export "_start") (result i32)
        (memory.atomic.wait64 offset=8
          (i32.const 4)
          (i64.const 0)
          (i64.const -1))))
;; wasm[0]::function[0]:
;;       pushq   %rbp
;;       movq    %rsp, %rbp
;;       movq    8(%rdi), %r11
;;       movq    0x18(%r11), %r11
;;       addq    $0x30, %r11
;;       cmpq    %rsp, %r11
;;       ja      0x88
;;   1c: movq    %rdi, %r14
;;       subq    $0x10, %rsp
;;       movq    %rdi, 8(%rsp)
;;       movq    %rsi, (%rsp)
;;       movq    $18446744073709551615, %rax
;;       movl    $0, %ecx
;;       movl    $4, %edx
;;       addq    $8, %rdx
;;       jb      0x8a
;;   4d: pushq   %rdx
;;       pushq   %rcx
;;       pushq   %rax
;;       subq    $8, %rsp
;;       movq    %r14, %rdi
;;       movl    $0, %esi
;;       movq    0x18(%rsp), %rdx
;;       movq    0x10(%rsp), %rcx
;;       movq    8(%rsp), %r8
;;       callq   0x1a6
;;       addq    $0x20, %rsp
;;       movq    8(%rsp), %r14
;;       addq    $0x10, %rsp
;;       popq    %rbp
;;       retq
;;   88: ud2
;;   8a: ud2