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

Issue 2204243003: [Interpreter] Avoid dereferencing handles in ConstantPoolArrayBuilder. (Closed)

Created:
4 years, 4 months ago by rmcilroy
Modified:
4 years, 4 months ago
Reviewers:
Michael Starzinger
CC:
v8-reviews_googlegroups.com, oth, rmcilroy
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[Interpreter] Avoid dereferencing handles in ConstantPoolArrayBuilder. Changes ConstantPoolArrayBuilder to do object lookups using the location of the handles, rather than dereferencing the handles and comparing the objects. This also updates CanonicalHandleScope when internalizing AST nodes to ensure that duplicate objects share the same handles and so are only added to the constant pool once. BUG=v8:5203 Committed: https://crrev.com/297f2d831a569cf253374ac36841b1e1cb70f601 Cr-Commit-Position: refs/heads/master@{#38366}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -19 lines) Patch
M src/compiler.cc View 3 chunks +13 lines, -0 lines 0 comments Download
M src/interpreter/constant-array-builder.h View 2 chunks +2 lines, -3 lines 0 comments Download
M src/interpreter/constant-array-builder.cc View 6 chunks +26 lines, -12 lines 0 comments Download
M test/cctest/interpreter/test-interpreter.cc View 1 chunk +5 lines, -3 lines 0 comments Download
M test/cctest/test-api.cc View 2 chunks +11 lines, -1 line 0 comments Download
M test/unittests/interpreter/bytecode-array-builder-unittest.cc View 1 10 chunks +10 lines, -0 lines 0 comments Download
M test/unittests/interpreter/constant-array-builder-unittest.cc View 1 10 chunks +10 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 24 (18 generated)
rmcilroy
Michi, ptal, thanks.
4 years, 4 months ago (2016-08-04 11:36:19 UTC) #10
Michael Starzinger
LGTM. https://codereview.chromium.org/2204243003/diff/40001/test/unittests/interpreter/bytecode-array-builder-unittest.cc File test/unittests/interpreter/bytecode-array-builder-unittest.cc (right): https://codereview.chromium.org/2204243003/diff/40001/test/unittests/interpreter/bytecode-array-builder-unittest.cc#newcode25 test/unittests/interpreter/bytecode-array-builder-unittest.cc:25: BytecodeArrayBuilder builder(isolate(), zone(), 0, 1, 131); nit: IIUC ...
4 years, 4 months ago (2016-08-05 09:19:06 UTC) #17
rmcilroy
https://codereview.chromium.org/2204243003/diff/40001/test/unittests/interpreter/bytecode-array-builder-unittest.cc File test/unittests/interpreter/bytecode-array-builder-unittest.cc (right): https://codereview.chromium.org/2204243003/diff/40001/test/unittests/interpreter/bytecode-array-builder-unittest.cc#newcode25 test/unittests/interpreter/bytecode-array-builder-unittest.cc:25: BytecodeArrayBuilder builder(isolate(), zone(), 0, 1, 131); On 2016/08/05 09:19:06, ...
4 years, 4 months ago (2016-08-05 09:45:08 UTC) #18
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/2204243003/60001
4 years, 4 months ago (2016-08-05 09:45:59 UTC) #21
commit-bot: I haz the power
Committed patchset #2 (id:60001)
4 years, 4 months ago (2016-08-05 10:09:54 UTC) #22
commit-bot: I haz the power
4 years, 4 months ago (2016-08-05 10:10:09 UTC) #24
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/297f2d831a569cf253374ac36841b1e1cb70f601
Cr-Commit-Position: refs/heads/master@{#38366}

Powered by Google App Engine
This is Rietveld 408576698