Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

node: add inTick and lastThrew to infoBox #5952

Merged
merged 1 commit into from
Jul 31, 2013
Merged

node: add inTick and lastThrew to infoBox #5952

merged 1 commit into from
Jul 31, 2013

Conversation

trevnorris
Copy link

To prevent all unnecessary calls to JS from MakeCallback, the remaining
two immediate return variables inTick and lastThrew have been added to
infoBox. Now MakeCallback should never need to call into JS unless it
absolutely has to.

Also removed Tock. Performance tests showed it was at least as fast or
faster than using a normal object, and this is more readable.

@trevnorris
Copy link
Author

/cc @bnoordhuis for review

@bnoordhuis
Copy link
Member

LGTM

@trevnorris
Copy link
Author

@bnoordhuis thanks much. do you ever sleep?

To prevent all unnecessary calls to JS from MakeCallback, the remaining
two immediate return variables inTick and lastThrew have been added to
infoBox. Now MakeCallback should never need to call into JS unless it
absolutely has to.

Also removed Tock. Performance tests showed it was at least as fast or
faster than using a normal object, and this is more readable.
@trevnorris trevnorris merged commit 6a5a7b0 into nodejs:master Jul 31, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants