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

Removing some optimizations to prepare for refactoring #680

Merged
merged 5 commits into from Jan 8, 2020

Conversation

sebastienros
Copy link
Owner

  • FunctionWasCalled is not used anymore but kept for future reference. It detects if a method is called to release an arguments array to the pull.
  • The last binding memoization has been removed.

- FunctionWasCalled is not used anymore but kept for future reference. It detects if a method is called to release an arguments array to the pull.
- The last binding memoization has been removed.
@@ -14,5 +14,7 @@ public Binding(JsValue value, bool canBeDeleted, bool mutable)
public JsValue Value;
public readonly bool CanBeDeleted;
public readonly bool Mutable;

public bool IsInitialized => !ReferenceEquals(Value, null);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Need to add a mental note about this non-readonly-struct and methods causes defensive copies, we can revisit when things settle.

@lahma lahma self-requested a review October 30, 2019 05:23
@lahma
Copy link
Collaborator

lahma commented Oct 30, 2019

Merge if ready for next steps, not sure if you are planning to do add onto this or smaller PRs.

@lahma
Copy link
Collaborator

lahma commented Oct 30, 2019

UncacheableExpressionBenchmark shows taking twice the time and allocating 8x, so we probably need to get the tweaks (or their variants) back in when the dust settles.

@sebastienros
Copy link
Owner Author

Are you still ok with merging this one, I had forgotten about it, and the more we wait, the harder it will be. Unless your other PR would become hard to merge with these changes.

@lahma
Copy link
Collaborator

lahma commented Jan 8, 2020

Sure thing, please merge, we can tweak performance later on. I'm more eager to get the let/const bits 🙂

@sebastienros
Copy link
Owner Author

Next step, before let/const work is done, is to get hoisting working based on the specs, and not based on the hackery that happens in esprima. And we can then remove it from esprima.

@sebastienros sebastienros merged commit d53c2ce into dev Jan 8, 2020
@sebastienros sebastienros deleted the sebros/bindings2 branch January 8, 2020 20:26
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.

None yet

2 participants