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

Issue 2171083004: [interpreter] Implement OSR graph construction from bytecode. (Closed)

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

Description

[interpreter] Implement OSR graph construction from bytecode. This implements graph construction for entry via on-stack replacement within the {BytecodeGraphBuilder}. Entry points are at loop headers similar to previous OSR implementations. All interpreter registers are addressable via {OsrValue} nodes in the graph. Currently we rely on {OsrPoll} bytecodes to be placed right after loop headers (i.e. at the targets of back edges). R=jarin@chromium.org BUG=v8:4764 Committed: https://crrev.com/1314406c4788b7d669324b90a1b2b9d123d56546 Cr-Commit-Position: refs/heads/master@{#38083}

Patch Set 1 #

Patch Set 2 : Rebased. #

Patch Set 3 : Rebased. #

Total comments: 10

Patch Set 4 : Addressed comments. #

Patch Set 5 : Addressed comments. #

Patch Set 6 : Rebased. #

Patch Set 7 : Fix for parameters. #

Patch Set 8 : Fix for accumulator. #

Patch Set 9 : Fix build on Windows. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -13 lines) Patch
M src/compiler.cc View 1 2 3 4 5 3 chunks +15 lines, -6 lines 0 comments Download
M src/compiler/bytecode-graph-builder.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/bytecode-graph-builder.cc View 1 2 3 4 5 6 7 8 5 chunks +42 lines, -2 lines 0 comments Download
M src/compiler/linkage.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M src/compiler/osr.cc View 1 chunk +10 lines, -4 lines 0 comments Download
M src/compiler/pipeline.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M src/frames.h View 2 chunks +6 lines, -1 line 0 comments Download

Messages

Total messages: 37 (27 generated)
Michael Starzinger
Jaro: PTAL. Ross: FYI (and PTAL at compiler.cc).
4 years, 4 months ago (2016-07-25 16:02:28 UTC) #8
rmcilroy
lgtm. Couple of comments for compiler.cc https://codereview.chromium.org/2171083004/diff/40001/src/compiler.cc File src/compiler.cc (right): https://codereview.chromium.org/2171083004/diff/40001/src/compiler.cc#newcode753 src/compiler.cc:753: // from bytecode ...
4 years, 4 months ago (2016-07-26 11:23:37 UTC) #13
Michael Starzinger
Thanks! Comments addressed. https://codereview.chromium.org/2171083004/diff/40001/src/compiler.cc File src/compiler.cc (right): https://codereview.chromium.org/2171083004/diff/40001/src/compiler.cc#newcode753 src/compiler.cc:753: // from bytecode offset and overlap ...
4 years, 4 months ago (2016-07-26 14:43:15 UTC) #14
Jarin
lgtm. https://codereview.chromium.org/2171083004/diff/40001/src/compiler/bytecode-graph-builder.cc File src/compiler/bytecode-graph-builder.cc (right): https://codereview.chromium.org/2171083004/diff/40001/src/compiler/bytecode-graph-builder.cc#newcode368 src/compiler/bytecode-graph-builder.cc:368: Node* entry = graph()->NewNode(common()->OsrLoopEntry(), start, start); Could we ...
4 years, 4 months ago (2016-07-26 14:46:36 UTC) #15
Michael Starzinger
Thanks! Comments addressed. https://codereview.chromium.org/2171083004/diff/40001/src/compiler/bytecode-graph-builder.cc File src/compiler/bytecode-graph-builder.cc (right): https://codereview.chromium.org/2171083004/diff/40001/src/compiler/bytecode-graph-builder.cc#newcode368 src/compiler/bytecode-graph-builder.cc:368: Node* entry = graph()->NewNode(common()->OsrLoopEntry(), start, start); ...
4 years, 4 months ago (2016-07-26 14:58:51 UTC) #16
Jarin
On 2016/07/26 14:58:51, Michael Starzinger wrote: Thanks for the explanations. I am happy now, lgtm.
4 years, 4 months ago (2016-07-26 15:39:18 UTC) #17
Jarin
Uhm, my deleting skills are not great today. Time for vacation!
4 years, 4 months ago (2016-07-26 15:40:37 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/2171083004/160001
4 years, 4 months ago (2016-07-27 08:18:27 UTC) #33
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 4 months ago (2016-07-27 08:19:50 UTC) #35
commit-bot: I haz the power
4 years, 4 months ago (2016-07-27 08:21:14 UTC) #37
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/1314406c4788b7d669324b90a1b2b9d123d56546
Cr-Commit-Position: refs/heads/master@{#38083}

Powered by Google App Engine
This is Rietveld 408576698