Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(294)

Issue 2811333002: [builtins] HasOwnProperty: handle non-internalized string keys (Closed)

Created:
3 years, 8 months ago by Jakob Kummerow
Modified:
3 years, 8 months ago
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
v8
Visibility:
Public.

Description

[builtins] HasOwnProperty: handle non-internalized string keys Taking the slow runtime path for every non-internalized string key can be avoided by doing optimistic string table lookups: if there is a matching entry, use that; if there isn't, then no existing object has a property with that name. The hashing/internalizing logic is in C++ and called directly. Review-Url: https://codereview.chromium.org/2811333002 Cr-Commit-Position: refs/heads/master@{#44650} Committed: https://chromium.googlesource.com/v8/v8/+/204989a5aa3f6546aa01419cf8d24e7fca1b39f5

Patch Set 1 #

Patch Set 2 : fix #

Total comments: 8

Patch Set 3 : address comments #

Patch Set 4 : rebased (noop) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+323 lines, -62 lines) Patch
M src/assembler.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/assembler.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M src/builtins/builtins-object-gen.cc View 1 2 1 chunk +21 lines, -9 lines 0 comments Download
M src/code-stub-assembler.h View 1 2 3 1 chunk +17 lines, -2 lines 0 comments Download
M src/code-stub-assembler.cc View 1 2 3 3 chunks +28 lines, -2 lines 0 comments Download
M src/compiler/code-assembler.h View 1 chunk +4 lines, -0 lines 0 comments Download
M src/compiler/code-assembler.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M src/external-reference-table.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M src/flag-definitions.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M src/globals.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/ic/accessor-assembler.cc View 1 2 2 chunks +19 lines, -3 lines 0 comments Download
M src/objects.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/objects.cc View 1 2 3 4 chunks +204 lines, -44 lines 0 comments Download
M src/objects-inl.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M src/objects/string-table.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/utils.h View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 16 (10 generated)
Jakob Kummerow
PTAL. In a local microbenchmark around cons string creation and .hasOwnProperty() calls, this is about ...
3 years, 8 months ago (2017-04-12 16:56:18 UTC) #2
Benedikt Meurer
LGTM on compiler, thanks!
3 years, 8 months ago (2017-04-13 09:37:30 UTC) #7
Igor Sheludko
lgtm with nits: https://codereview.chromium.org/2811333002/diff/20001/src/ic/accessor-assembler.cc File src/ic/accessor-assembler.cc (right): https://codereview.chromium.org/2811333002/diff/20001/src/ic/accessor-assembler.cc#newcode2118 src/ic/accessor-assembler.cc:2118: /* { I'd suggest to add ...
3 years, 8 months ago (2017-04-13 11:38:54 UTC) #9
Jakob Kummerow
Thanks for the reviews. Comments addressed, will rebase and land. https://codereview.chromium.org/2811333002/diff/20001/src/ic/accessor-assembler.cc File src/ic/accessor-assembler.cc (right): https://codereview.chromium.org/2811333002/diff/20001/src/ic/accessor-assembler.cc#newcode2118 ...
3 years, 8 months ago (2017-04-13 14:01:53 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2811333002/60001
3 years, 8 months ago (2017-04-13 14:03:53 UTC) #13
commit-bot: I haz the power
3 years, 8 months ago (2017-04-13 14:41:31 UTC) #16
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/v8/v8/+/204989a5aa3f6546aa01419cf8d24e7fca1...

Powered by Google App Engine
This is Rietveld 408576698