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

Issue 2318653002: [Interpreter] Localize the CanonicalHandleScope to parsing and renumbering. (Closed)

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

Description

[Interpreter] Localize the CanonicalHandleScope to parsing and renumbering. Ignition requires that objects which will be inserted into the constant pool are canonicalized (to enable off-thread bytecode generation). We created a CanonicalizeHandleScope across parse/compile however this impacts performance (~5-8% on CodeLoad). Now we localize the CanonicalHandleScope to only the parse / internalization and renumbering phases where objects are created which could end up in the constant array pool. This seems to address the performance regression. BUG=v8:5203, chromium:634953 Committed: https://crrev.com/b37daacd6b94086ad63ab763587ab2a7b8c88c6b Cr-Commit-Position: refs/heads/master@{#39443}

Patch Set 1 #

Patch Set 2 #

Total comments: 1

Patch Set 3 : Move scopes back to compiler.cc #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -47 lines) Patch
M src/api.cc View 1 2 3 1 chunk +12 lines, -9 lines 0 comments Download
M src/compiler.cc View 1 2 8 chunks +22 lines, -20 lines 0 comments Download
M src/compiler-dispatcher/compiler-dispatcher-job.cc View 1 2 3 3 chunks +14 lines, -18 lines 0 comments Download

Messages

Total messages: 30 (18 generated)
rmcilroy
Marja, this depends on the previous two CLs (plus Jochen's). It gets rid of a ...
4 years, 3 months ago (2016-09-09 15:18:18 UTC) #7
marja
Hmm, I don't get this... why does this get rid of the performance regression? It ...
4 years, 3 months ago (2016-09-12 07:26:41 UTC) #8
rmcilroy
On 2016/09/12 07:26:41, marja wrote: > Hmm, I don't get this... why does this get ...
4 years, 3 months ago (2016-09-12 08:52:58 UTC) #9
marja
lgtm Routing some offline discussion here: - The efficiency problem is that the CanonicalHandleScope is ...
4 years, 3 months ago (2016-09-12 10:22:06 UTC) #10
jochen (gone - plz use gerrit)
wouldn't it be enough to create the handle scopes closer to the calls to renumber ...
4 years, 3 months ago (2016-09-12 11:00:11 UTC) #12
rmcilroy
Updated to move the CanonicalHandleScope out of ast-value-factory.cc. This moves it mostly back to compiler.cc, ...
4 years, 3 months ago (2016-09-12 12:19:37 UTC) #15
jochen (gone - plz use gerrit)
lgtm
4 years, 3 months ago (2016-09-12 12:21:32 UTC) #18
marja
Even more lgtm now :)
4 years, 3 months ago (2016-09-13 08:15:55 UTC) #22
Michael Starzinger
LGTM.
4 years, 3 months ago (2016-09-13 10:48:48 UTC) #23
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/2318653002/60001
4 years, 3 months ago (2016-09-15 09:49:03 UTC) #26
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-15 10:26:27 UTC) #28
commit-bot: I haz the power
4 years, 3 months ago (2016-09-15 10:26:47 UTC) #30
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/b37daacd6b94086ad63ab763587ab2a7b8c88c6b
Cr-Commit-Position: refs/heads/master@{#39443}

Powered by Google App Engine
This is Rietveld 408576698