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

Implement support for optional fuel metering #653

Merged
merged 77 commits into from
Feb 11, 2023
Merged

Commits on Feb 5, 2023

  1. add TrapCode::OutOfFuel

    Robbepop committed Feb 5, 2023
    Configuration menu
    Copy the full SHA
    0730fd6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2a59256 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cfa4a65 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    77a16f0 View commit details
    Browse the repository at this point in the history
  5. apply rustfmt

    Robbepop committed Feb 5, 2023
    Configuration menu
    Copy the full SHA
    64d74b3 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ccb16bf View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2023

  1. Configuration menu
    Copy the full SHA
    c51defb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bb74cc8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5a3de31 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    738c338 View commit details
    Browse the repository at this point in the history
  5. apply rustfmt

    Robbepop committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    0791743 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    22b31ef View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a697cd6 View commit details
    Browse the repository at this point in the history
  8. apply clippy suggestion

    Robbepop committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    aee84f9 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    b1b8977 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    a8ba20d View commit details
    Browse the repository at this point in the history
  11. simplify Store's Fuel implementation

    This should optimize consume_fuel at the cost of add_fuel. Note that consume_fuel is expected to be called way more often than add_fuel.
    Robbepop committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    05ad655 View commit details
    Browse the repository at this point in the history
  12. fix comment

    Robbepop committed Feb 6, 2023
    Configuration menu
    Copy the full SHA
    e68ce39 View commit details
    Browse the repository at this point in the history

Commits on Feb 7, 2023

  1. Configuration menu
    Copy the full SHA
    62ab087 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c4b551e View commit details
    Browse the repository at this point in the history
  3. fix doc link

    Robbepop committed Feb 7, 2023
    Configuration menu
    Copy the full SHA
    e4a8860 View commit details
    Browse the repository at this point in the history

Commits on Feb 8, 2023

  1. Configuration menu
    Copy the full SHA
    5318fce View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0f0805f View commit details
    Browse the repository at this point in the history
  3. move FuncBuilderAllocations to translator module

    This is were it belongs. Also renamed it accordingly.
    Robbepop committed Feb 8, 2023
    Configuration menu
    Copy the full SHA
    300d702 View commit details
    Browse the repository at this point in the history
  4. remove unused imports

    Robbepop committed Feb 8, 2023
    Configuration menu
    Copy the full SHA
    a3789d3 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f1d65ea View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a952f15 View commit details
    Browse the repository at this point in the history
  7. apply rustfmt

    Robbepop committed Feb 8, 2023
    Configuration menu
    Copy the full SHA
    9ec99f2 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    3a65f9a View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    8057850 View commit details
    Browse the repository at this point in the history
  10. add doc comment

    Robbepop committed Feb 8, 2023
    Configuration menu
    Copy the full SHA
    32ed222 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    b67949b View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    cdf5c10 View commit details
    Browse the repository at this point in the history

Commits on Feb 10, 2023

  1. Configuration menu
    Copy the full SHA
    67d1706 View commit details
    Browse the repository at this point in the history
  2. add FuelCosts to Config

    Robbepop committed Feb 10, 2023
    Configuration menu
    Copy the full SHA
    68c39f5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5dea3e3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    22e789b View commit details
    Browse the repository at this point in the history
  5. apply rustfmt

    Robbepop committed Feb 10, 2023
    Configuration menu
    Copy the full SHA
    c7c7304 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b15dbd6 View commit details
    Browse the repository at this point in the history
  7. fix nostd build

    Robbepop committed Feb 10, 2023
    Configuration menu
    Copy the full SHA
    dce8d7d View commit details
    Browse the repository at this point in the history
  8. fix internal doc links

    Robbepop committed Feb 10, 2023
    Configuration menu
    Copy the full SHA
    5116e15 View commit details
    Browse the repository at this point in the history
  9. apply rustfmt

    Robbepop committed Feb 10, 2023
    Configuration menu
    Copy the full SHA
    ba4a17f View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    6eaf9f6 View commit details
    Browse the repository at this point in the history
  11. apply clippy suggestion

    Robbepop committed Feb 10, 2023
    Configuration menu
    Copy the full SHA
    5dbe355 View commit details
    Browse the repository at this point in the history
  12. fix internal doc link

    Robbepop committed Feb 10, 2023
    Configuration menu
    Copy the full SHA
    9fdbf78 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    34c2d00 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    46ed117 View commit details
    Browse the repository at this point in the history
  15. make Engine::config return Config by reference

    With the integrated FuelCosts the Config type no longer is as light weight as it was before.
    Robbepop committed Feb 10, 2023
    Configuration menu
    Copy the full SHA
    dfa707e View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    c8fd0a3 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    7445c6a View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    01492a7 View commit details
    Browse the repository at this point in the history
  19. remove unused fuel cost code

    Robbepop committed Feb 10, 2023
    Configuration menu
    Copy the full SHA
    f4e7052 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    3c3c751 View commit details
    Browse the repository at this point in the history
  21. rename add_fuel to bump_fuel_consumption

    This should avoid confusion.
    Robbepop committed Feb 10, 2023
    Configuration menu
    Copy the full SHA
    1c91428 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    46c72c5 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    e15e813 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    e9fc34d View commit details
    Browse the repository at this point in the history
  25. fix compilation

    Robbepop committed Feb 10, 2023
    Configuration menu
    Copy the full SHA
    9163894 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    6aafefd View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    11d98bf View commit details
    Browse the repository at this point in the history
  28. consume fuel for bulk-memory and table instructions

    They are treated differently because it is only known during execution how costly the execution of those instructions is going to be.
    Robbepop committed Feb 10, 2023
    Configuration menu
    Copy the full SHA
    2e2849e View commit details
    Browse the repository at this point in the history

Commits on Feb 11, 2023

  1. make existing fuel metering tests base on default fuel costs

    This way tests won't break when default fuel costs change.
    Robbepop committed Feb 11, 2023
    Configuration menu
    Copy the full SHA
    c167e16 View commit details
    Browse the repository at this point in the history
  2. apply clippy suggestion

    Robbepop committed Feb 11, 2023
    Configuration menu
    Copy the full SHA
    379a820 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    650c22d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6623e89 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1d96ace View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ec6387f View commit details
    Browse the repository at this point in the history
  7. add fuel metering test

    Robbepop committed Feb 11, 2023
    Configuration menu
    Copy the full SHA
    5d65cba View commit details
    Browse the repository at this point in the history
  8. add more fuel metering tests

    Robbepop committed Feb 11, 2023
    Configuration menu
    Copy the full SHA
    9922052 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    4631e22 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    fbf9da0 View commit details
    Browse the repository at this point in the history
  11. fix internal doc link

    Robbepop committed Feb 11, 2023
    Configuration menu
    Copy the full SHA
    67b8d05 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    547ee39 View commit details
    Browse the repository at this point in the history
  13. use $b for local in test

    Robbepop committed Feb 11, 2023
    Configuration menu
    Copy the full SHA
    499b075 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    7763747 View commit details
    Browse the repository at this point in the history
  15. apply rustfmt

    Robbepop committed Feb 11, 2023
    Configuration menu
    Copy the full SHA
    ca1a01e View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    53cd277 View commit details
    Browse the repository at this point in the history