This repository was archived by the owner on Aug 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…r, WABT removal and OC disable
Add nodeos RPC API index, improve nodeos implementation doc, fix link
…s. They are no longer necessary.
Feature/new host function system
Avoid legacy for set_action_return_value intrinsic
Avoid aliasing the key and value spans within the kv_set intrinsic calls made in test contracts used for the `kv_tests/notify` unit tests.
swatanabe-b1
suggested changes
Apr 23, 2020
@@ -766,7 +766,7 @@ static const char kv_notify_wast[] = R"=====( | |||
(drop (call $kv_it_create (get_local 2) (get_local 0) (i32.const 0) (i32.const 0))) | |||
(drop (call $kv_it_create (get_local 2) (get_local 0) (i32.const 0) (i32.const 0))) | |||
(call $kv_it_destroy (i32.const 2)) | |||
(drop (call $kv_set (get_local 2) (get_local 0) (i32.const 0) (i32.const 0) (i32.const 0) (i32.const 1))) | |||
(drop (call $kv_set (get_local 2) (get_local 0) (i32.const 0) (i32.const 0) (i32.const 1) (i32.const 1))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The alias check is asymmetric. These should not be considered to alias.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will handle this in kv-database.
swatanabe-b1
approved these changes
Apr 23, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Change Description
This PR merges the
develop
branch (with the new host function system introduced in PR #8868) intokv-database
.It ports all of the intrinsics introduced in PR #8223 to the new host function system.
The new host function system revealed that the test wast code in the
kv_tests/notify
unit test was aliasing thekey
andvalue
spans in calls to thekv_set
intrinsic. The test wast code has been modified to avoid aliasing.This PR also includes fixes to a couple of additional bugs that were introduced in PR #8868 (one in
webassembly/preconditions.hpp
and one inwebassembly/common.hpp
):I recommend using the following diff to review the relevant changes (excluding the parts that just bring in code changes that were already merged into develop).
Consensus Changes
API Changes
Documentation Additions