Skip to content

Conversation

@s1na
Copy link
Collaborator

@s1na s1na commented Apr 11, 2019

Adds debug methods specified in ECI.

These methods would have to be remapped by chisel, but the remapping part is being refactored in wasmx/wasm-chisel#66, so I'll wait for that to be merged and then work on a PR.

@axic
Copy link
Member

axic commented Apr 11, 2019

@jakelang what do you think, should we expose these?

Need to squash this first.

@@ -0,0 +1,10 @@
/// The native debug interface exposed to the ewasm contract. These functions are for testing
/// purposes only. On a live VM, any bytecode trying to import these symbols will be rejected.
extern "C" {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think adding a feature flag for conditional compilation of these features would be useful.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@s1na make sure that the conditional compilation flag is not on the interface declaration, but instead the pub mod debug; statement in the parent module.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah good idea Jake. Updated the code, is this what you meant?

Copy link
Member

@axic axic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a feature flag for these. Also squash the commits.

Update debug mod docs

Add feature flag for debug api
Copy link
Member

@jakelang jakelang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good!

@axic axic merged commit 7e7ac2a into ewasm:master Apr 12, 2019
@s1na s1na deleted the debug-api branch April 15, 2019 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants