Skip to content

Creating an obfuscated Loop1 #189

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

Merged
merged 1 commit into from
Dec 3, 2015
Merged

Creating an obfuscated Loop1 #189

merged 1 commit into from
Dec 3, 2015

Conversation

jcbeyler
Copy link

The loop1 method is too simple for LLVM, which then makes it return just 5.
Though this proves that the code is correct, we probably want to have the
code generation all the same.

This patch makes a loop3 method based on loop1 so that the code ais bit
different but at least the compiler can no longer optimize it all away.

We've left loop1 to show the difference in compiler technologies

@rossberg
Copy link
Member

LGTM

@sunfishcode
Copy link
Member

lgtm

@sunfishcode
Copy link
Member

This has LGTMs, and is now just waiting on a merge conflict resolution.

The loop1 method is too simple for LLVM, which then makes it return just 5.
Though this proves that the code is correct, we probably want to have the
  code generation all the same.

This patch makes a loop3 method based on loop1 so that the code ais  bit
  different but at least the compiler can no longer optimize it all away.

We've left loop1 to show the difference in compiler technologies
@jcbeyler
Copy link
Author

jcbeyler commented Dec 3, 2015

Fixed the merge conflict

@sunfishcode
Copy link
Member

Great! Carrying forward lgtms and merging.

sunfishcode added a commit that referenced this pull request Dec 3, 2015
Creating an obfuscated Loop1
@sunfishcode sunfishcode merged commit 7ad01ba into WebAssembly:master Dec 3, 2015
dhil pushed a commit to dhil/webassembly-spec that referenced this pull request Mar 2, 2023
This updates the explainer on
- We add stack trace option to `Exception` class in the JS API
- `Exception` can contain an optional `externref` to carry a stack trace
- `Exception` is not a subclass of JS `Error`

The WebIDL syntax is suggested by @eqrion in
WebAssembly/exception-handling#183 (comment)
and
WebAssembly/exception-handling#183 (comment).

Addresses WebAssembly#183 and WebAssembly#189.
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