Skip to content

Conversation

@bnoordhuis
Copy link
Member

The accessors run inside an implicit HandleScope, there is no need to
create a new one.

R=@trevnorris?

CI: https://jenkins-iojs.nodesource.com/view/iojs/job/iojs+any-pr+multi/37/

@mscdexmscdex added the vm Issues and PRs related to the vm subsystem. label Jun 17, 2015
The accessors run inside an implicit HandleScope, there is no need to create a new one. PR-URL: nodejs#2001 Reviewed-By: Trevor Norris <[email protected]>
@trevnorris
Copy link
Contributor

LGTM

@bnoordhuisbnoordhuis deleted the remove-handlescopes branch June 17, 2015 18:06
@bnoordhuisbnoordhuis merged commit 5d0cee4 into nodejs:masterJun 17, 2015
@domenic
Copy link
Contributor

For my future learnings, how do you know this?

@rvagg
Copy link
Member

my understanding is that methods that are called by V8 from JS code have an implicit HandleScope, that's standard methods as well as property getters and whatnot.

@bnoordhuis
Copy link
MemberAuthor

@domenic It's part of the generated code: https://github.com/nodejs/io.js/blob/v2.3.0/deps/v8/src/x64/code-stubs-x64.cc#L4751-4761 (CallApiFunctionAndReturn is used for both normal API callbacks and accessors.)

@domenic
Copy link
Contributor

Awesome, thanks!

@rvaggrvagg mentioned this pull request Jun 18, 2015
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

vmIssues and PRs related to the vm subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@bnoordhuis@trevnorris@domenic@rvagg@mscdex