Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Use precise array type check #128

Merged
merged 4 commits into from
Apr 10, 2017
Merged

Conversation

smarr
Copy link
Owner

@smarr smarr commented Apr 10, 2017

Avoid use of instanceof in favor for precise .getClass() == check.

This avoids some complexity for compilation, and potentially run time.
It doesn't have any relevant performance impact at the moment.
However, it also avoids Truffle's performance warning for instanceof Object[], because it isn't a leaf type.

@Richard-Roberts would be great if you could review this.

smarr added 4 commits April 10, 2017 15:48
Signed-off-by: Stefan Marr <git@stefan-marr.de>
- refactor handling of VmOptions to be initialized outside of VM directly based on arguments
- avoids double instantiation and confusion

Signed-off-by: Stefan Marr <git@stefan-marr.de>
Signed-off-by: Stefan Marr <git@stefan-marr.de>
Signed-off-by: Stefan Marr <git@stefan-marr.de>
@smarr smarr added the enhancement Improves the implementation with something noteworthy label Apr 10, 2017
@smarr smarr merged commit e3a3f2d into smarr:master Apr 10, 2017
@smarr smarr deleted the precise-array-type-check branch April 10, 2017 20:23
@smarr smarr added this to the v0.5.0 - More Newspeak milestone Mar 14, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement Improves the implementation with something noteworthy
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant