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

Use Undefined instruction with payload to carry over TrapInformation on Singlepass #2836

Merged
merged 15 commits into from
May 11, 2022

Conversation

ptitSeb
Copy link
Contributor

@ptitSeb ptitSeb commented Apr 4, 2022

Description

Use Undefined instruction with payload to carry over TrapInformation on without using an vector or hashmap on Singlepass.
This allow for slightly more compact binary and slightly faster trap decoding on runtime.

…without using an vector or hashmap on Singlepass
@ptitSeb ptitSeb requested a review from syrusakbary as a code owner April 4, 2022 14:18
@syrusakbary
Copy link
Member

Tests seem to be failing

Copy link
Contributor

@Amanieu Amanieu left a comment

Choose a reason for hiding this comment

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

You can probably also remove TrapCode::StackOverflow and TrapCode::HeapAccessOutOfBounds from singlepass since those trap codes are now detected in the signal handler.

lib/vm/src/trap/traphandlers.rs Outdated Show resolved Hide resolved
lib/vm/src/trap/traphandlers.rs Outdated Show resolved Hide resolved
lib/vm/src/trap/traphandlers.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@Amanieu Amanieu left a comment

Choose a reason for hiding this comment

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

Apart from that, LGTM.

lib/vm/src/trap/traphandlers.rs Show resolved Hide resolved
@syrusakbary
Copy link
Member

Based on the comment from Amanieu, we can merge manually (tests are already passing for everything)

@ptitSeb
Copy link
Contributor Author

ptitSeb commented May 11, 2022

bors r+

bors bot added a commit that referenced this pull request May 11, 2022
2836: Use Undefined instruction with payload to carry over TrapInformation on Singlepass r=ptitSeb a=ptitSeb

# Description
Use Undefined instruction with payload to carry over TrapInformation on without using an vector or hashmap on Singlepass.
This allow for slightly more compact binary and slightly faster trap decoding on runtime.


Co-authored-by: ptitSeb <[email protected]>
@bors
Copy link
Contributor

bors bot commented May 11, 2022

Timed out.

@syrusakbary syrusakbary merged commit e92acb0 into master May 11, 2022
@bors bors bot deleted the feat/TrapInformation_improvments branch May 11, 2022 18:35
@Amanieu
Copy link
Contributor

Amanieu commented May 11, 2022

bors retry

@bors
Copy link
Contributor

bors bot commented May 11, 2022

Already running a review

@ptitSeb
Copy link
Contributor Author

ptitSeb commented May 11, 2022

Those TimeOut seems to be more and more frequent now. There is an issue with the CI.

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