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

src: clean up PER_ISOLATE_STRING_PROPERTIES #8207

Merged
merged 2 commits into from
Aug 23, 2016

Conversation

bnoordhuis
Copy link
Member

@bnoordhuis bnoordhuis commented Aug 21, 2016

@bnoordhuis bnoordhuis added c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. labels Aug 21, 2016
env->as_external());
CHECK(maybe.FromJust());
{
auto name = FIXED_ONE_BYTE_STRING(env->isolate(), "title");
Copy link
Member

Choose a reason for hiding this comment

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

I find name confusing. Can we inline it or rename it to title_string?

@fhinkel
Copy link
Member

fhinkel commented Aug 21, 2016

LGTM.

@jasnell
Copy link
Member

jasnell commented Aug 21, 2016

LGTM

@bnoordhuis
Copy link
Member Author

Renamed the variables. CI: https://ci.nodejs.org/job/node-test-pull-request/3796/

@jasnell
Copy link
Member

jasnell commented Aug 23, 2016

Still LGTM

Remove unused strings from the PER_ISOLATE_STRING_PROPERTIES list.

PR-URL: nodejs#8207
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Remove strings from the PER_ISOLATE_STRING_PROPERTIES list that are
only used once during initialization.  It's less expensive to simply
create them when needed than turn them into v8::Eternal instances.

PR-URL: nodejs#8207
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@bnoordhuis bnoordhuis closed this Aug 23, 2016
@bnoordhuis bnoordhuis deleted the clean-up-per-isolate-strings branch August 23, 2016 19:16
@bnoordhuis bnoordhuis merged commit b4ea3a0 into nodejs:master Aug 23, 2016
evanlucas pushed a commit that referenced this pull request Aug 24, 2016
Remove unused strings from the PER_ISOLATE_STRING_PROPERTIES list.

PR-URL: #8207
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
evanlucas pushed a commit that referenced this pull request Aug 24, 2016
Remove strings from the PER_ISOLATE_STRING_PROPERTIES list that are
only used once during initialization.  It's less expensive to simply
create them when needed than turn them into v8::Eternal instances.

PR-URL: #8207
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@MylesBorins
Copy link
Contributor

@bnoordhuis should this be backported?

@bnoordhuis
Copy link
Member Author

If it applies and builds, sure. If it doesn't, it's okay to leave it out.

@MylesBorins
Copy link
Contributor

@bnoordhuis this does not land cleanly, leaving it out unless someone wants to backport

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants