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

Optimise type comparisons #441

Merged
merged 58 commits into from
Jun 10, 2020
Merged

Optimise type comparisons #441

merged 58 commits into from
Jun 10, 2020

Conversation

Lan2u
Copy link

@Lan2u Lan2u commented Jun 1, 2020

This Pull Request fixes #435.

It changes the following:

  • Add a new Type enum which is returned from the get_type() function replacing the string used previously.
  • Updates usages.

I've made the mistake of basing this of the branch used for pull request #422 so depending on if/when that PR is merged this PR can be merged. If it's going to be a pain to merge I can re-do it based on master.

Paul Lancaster and others added 30 commits May 26, 2020 09:04
Co-authored-by: Iban Eguia <[email protected]>
Divided up GetConstField, GetField
seperated out
boa/src/builtins/value/val_type.rs Outdated Show resolved Hide resolved
boa/src/builtins/value/val_type.rs Outdated Show resolved Hide resolved
boa/src/builtins/value/mod.rs Outdated Show resolved Hide resolved
@Lan2u Lan2u marked this pull request as ready for review June 3, 2020 20:16
@Razican Razican added blocked Waiting for another code change enhancement New feature or request labels Jun 6, 2020
@Razican Razican added this to the v0.9.0 milestone Jun 6, 2020
Copy link
Member

@Razican Razican left a comment

Choose a reason for hiding this comment

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

This is looking pretty good. Let's wait for #422 to land to be able to easily see the changes in this branch.

boa/src/exec/conditional/mod.rs Outdated Show resolved Hide resolved
@Razican Razican added builtins PRs and Issues related to builtins/intrinsics execution Issues or PRs related to code execution labels Jun 6, 2020
Copy link
Member

@Razican Razican left a comment

Choose a reason for hiding this comment

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

Cool this is good to go then!

@HalidOdat HalidOdat removed the blocked Waiting for another code change label Jun 10, 2020
Copy link
Member

@HalidOdat HalidOdat left a comment

Choose a reason for hiding this comment

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

This looks perfect to me! Just needs a rebase :)

@Razican Razican merged commit 634dfb7 into boa-dev:master Jun 10, 2020
@Lan2u Lan2u deleted the optimise_type_comparisons branch June 10, 2020 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
builtins PRs and Issues related to builtins/intrinsics enhancement New feature or request execution Issues or PRs related to code execution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Optimize type comparisons
3 participants