Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve WASM Memory Ergonomics #1589

Merged
merged 20 commits into from
Jan 31, 2020
Merged

Improve WASM Memory Ergonomics #1589

merged 20 commits into from
Jan 31, 2020

Commits on Jan 11, 2020

  1. Prevent most modules from accessing memory._data directly

    Eric Hennenfent committed Jan 11, 2020
    Configuration menu
    Copy the full SHA
    c7bf715 View commit details
    Browse the repository at this point in the history
  2. Fix broken assert

    Cheap way of getting the memory size, but it'll work
    Eric Hennenfent committed Jan 11, 2020
    Configuration menu
    Copy the full SHA
    4b202bc View commit details
    Browse the repository at this point in the history
  3. Lazily create memory pages as-needed

    Eric Hennenfent committed Jan 11, 2020
    Configuration menu
    Copy the full SHA
    da7c6fb View commit details
    Browse the repository at this point in the history

Commits on Jan 16, 2020

  1. Add (disabled) support for name sections

    The WASM importer module we're currently relying on breaks if you try to import the spectest binaries with name sections enabled. Dumb, I know.
    Eric Hennenfent committed Jan 16, 2020
    Configuration menu
    Copy the full SHA
    9923e3c View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2020

  1. Fix misnamed events

    Eric Hennenfent committed Jan 18, 2020
    Configuration menu
    Copy the full SHA
    8e5e12d View commit details
    Browse the repository at this point in the history
  2. Add imports to postfilled import names

    Eric Hennenfent committed Jan 18, 2020
    Configuration menu
    Copy the full SHA
    ce213dd View commit details
    Browse the repository at this point in the history

Commits on Jan 21, 2020

  1. Fix did->will set global

    Eric Hennenfent committed Jan 21, 2020
    Configuration menu
    Copy the full SHA
    0f602d9 View commit details
    Browse the repository at this point in the history

Commits on Jan 22, 2020

  1. Fix memory callbacks and add tests

    Eric Hennenfent committed Jan 22, 2020
    Configuration menu
    Copy the full SHA
    1d5ac65 View commit details
    Browse the repository at this point in the history
  2. Update structure.py

    Eric Hennenfent committed Jan 22, 2020
    Configuration menu
    Copy the full SHA
    bedb722 View commit details
    Browse the repository at this point in the history
  3. mypy

    Eric Hennenfent committed Jan 22, 2020
    Configuration menu
    Copy the full SHA
    588789a View commit details
    Browse the repository at this point in the history
  4. Revert "Update structure.py"

    This reverts commit bedb722.
    Eric Hennenfent committed Jan 22, 2020
    Configuration menu
    Copy the full SHA
    7d475b7 View commit details
    Browse the repository at this point in the history

Commits on Jan 23, 2020

  1. Print module names and function returns

    Eric Hennenfent committed Jan 23, 2020
    Configuration menu
    Copy the full SHA
    51d1528 View commit details
    Browse the repository at this point in the history
  2. Fix docstrings for function names

    Eric Hennenfent committed Jan 23, 2020
    Configuration menu
    Copy the full SHA
    81e8304 View commit details
    Browse the repository at this point in the history
  3. Blacken

    Eric Hennenfent committed Jan 23, 2020
    Configuration menu
    Copy the full SHA
    86c7423 View commit details
    Browse the repository at this point in the history
  4. Fix type declaration

    Eric Hennenfent committed Jan 23, 2020
    Configuration menu
    Copy the full SHA
    e45daa3 View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2020

  1. Add SerializeState exception

    Raise `SerializeState("checkpoint.pkl")` to dump a state to the disk, which you can later load and resume execution from. Needs unit tests.
    Eric Hennenfent committed Jan 24, 2020
    Configuration menu
    Copy the full SHA
    af0c94a View commit details
    Browse the repository at this point in the history

Commits on Jan 28, 2020

  1. Merge branch 'master' into dev-wasm-mem

    Eric Hennenfent committed Jan 28, 2020
    Configuration menu
    Copy the full SHA
    f95f0cb View commit details
    Browse the repository at this point in the history

Commits on Jan 29, 2020

  1. PAGESIZE constant

    Eric Hennenfent committed Jan 29, 2020
    Configuration menu
    Copy the full SHA
    32ac3ea View commit details
    Browse the repository at this point in the history
  2. Make decoding names a config value

    Eric Hennenfent committed Jan 29, 2020
    Configuration menu
    Copy the full SHA
    0ea1272 View commit details
    Browse the repository at this point in the history
  3. Attempt to add type hints to memory io operations

    They won't hold up to anything symbolic so we'll need to keep an eye on them
    Eric Hennenfent committed Jan 29, 2020
    Configuration menu
    Copy the full SHA
    3f20c23 View commit details
    Browse the repository at this point in the history