Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Contribute to GitLab
  • Sign in / Register
V
V8
  • Project
    • Project
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Linshizhi
  • V8
  • Repository

Switch branch/tag
  • v8
  • test
  • mjsunit
  • wasm
  • stack-switching-export.js
Find file
BlameHistoryPermalink
  • Thibaud Michaud's avatar
    [wasm] Implement new JS Promise Integration API · 29db5631
    Thibaud Michaud authored Aug 03, 2022
    Implement the WebAssembly.Function-based API.
    With the old API, wrapping an import and export with JS Promise
    Integration looked like:
    
      WebAssembly.returnPromiseOnSuspend(<wasm_export>);
      WebAssembly.suspendOnReturnedPromise(
        new WebAssembly.Function(<sig>, <js_import>));
    
    With the new API:
    
      new WebAssembly.Function(<sig>, <wasm_export>, {promising: 'first'})
      new WebAssembly.Function(<sig>, <js_import>, {suspending: 'first'})
    
    For details, see
    https://github.com/WebAssembly/js-promise-integration/pull/8/files
    
    R=ahaas@chromium.org
    
    Bug: v8:12191
    Change-Id: Iaefaac5304a038fc39283db165b637af7e48b009
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3804669Reviewed-by: 's avatarAndreas Haas <ahaas@chromium.org>
    Commit-Queue: Thibaud Michaud <thibaudm@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#82183}
    29db5631
stack-switching-export.js 29.5 KB
EditWeb IDE

Replace stack-switching-export.js

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.