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

Issue 2240463002: [Interpreter] Introduce InterpreterCompilationJob (Closed)

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

Description

[Interpreter] Introduce InterpreterCompilationJob Adds InterpreterCompilationJob as a sub-class of CompilationJob, to enable off-thread bytecode generation. Currently only used in Interpreter::MakeBytecode. As part of this change, CompilationJob is modified to make it less specific to optimized compilation, renaming the phases as follows: - CreateGraph -> PrepareJob - OptimizeGraph -> ExecuteJob - GenerateCode -> FinalizeJob RegisterWeakObjectsInOptimizedCode is also moved out of CompilationJob and instead becomes a static function on Compiler. BUG=v8:5203 Committed: https://crrev.com/1fb6a7e697e8bc5b4af51647553741f966e00cdc Committed: https://crrev.com/785990e9fc0dd9a9d963d25d0bed2909165e4ca9 Committed: https://crrev.com/d7c6195c4c5cdc080caa74dfe2ae9ecab69bea73 Committed: https://crrev.com/0996cea5b6bda4de260ab44ae67c0dd10e091a6b Cr-Original-Original-Original-Commit-Position: refs/heads/master@{#38662} Cr-Original-Original-Commit-Position: refs/heads/master@{#38668} Cr-Original-Commit-Position: refs/heads/master@{#38725} Cr-Commit-Position: refs/heads/master@{#38778}

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Subclass Compiler::CompilationTask #

Patch Set 4 : DISALLOW_COPY_AND_ASSIGN #

Total comments: 8

Patch Set 5 : Rebase #

Patch Set 6 : Address comments #

Total comments: 2

Patch Set 7 : BASE_EMBEDDED #

Patch Set 8 : Rebase and tweak #

Patch Set 9 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+171 lines, -117 lines) Patch
M src/compiler.h View 1 2 3 4 5 6 7 8 1 chunk +56 lines, -32 lines 0 comments Download
M src/compiler.cc View 1 2 3 4 5 6 7 8 8 chunks +30 lines, -31 lines 0 comments Download
M src/compiler-dispatcher/optimizing-compile-dispatcher.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/pipeline.cc View 1 2 3 4 5 6 7 6 chunks +14 lines, -13 lines 0 comments Download
M src/compiler/wasm-compiler.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -6 lines 0 comments Download
M src/crankshaft/hydrogen.h View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M src/crankshaft/hydrogen.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -3 lines 0 comments Download
M src/crankshaft/lithium-codegen.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M src/interpreter/bytecode-generator.h View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -3 lines 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -7 lines 0 comments Download
M src/interpreter/interpreter.cc View 1 2 3 4 5 6 7 8 3 chunks +54 lines, -14 lines 0 comments Download
M test/cctest/wasm/wasm-run-utils.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 62 (34 generated)
rmcilroy
Michi, PTAL, thanks.
4 years, 4 months ago (2016-08-11 14:53:26 UTC) #4
rmcilroy
On 2016/08/11 14:53:26, rmcilroy wrote: > Michi, PTAL, thanks. Actually, don't review this yet, I'll ...
4 years, 4 months ago (2016-08-11 15:17:13 UTC) #7
Michael Starzinger
On 2016/08/11 15:17:13, rmcilroy wrote: > On 2016/08/11 14:53:26, rmcilroy wrote: > > Michi, PTAL, ...
4 years, 4 months ago (2016-08-11 15:38:59 UTC) #8
rmcilroy
On 2016/08/11 15:38:59, Michael Starzinger wrote: > On 2016/08/11 15:17:13, rmcilroy wrote: > > On ...
4 years, 4 months ago (2016-08-11 15:55:28 UTC) #9
rmcilroy
+Benedikt for changes in crankshaft/ Michi: Changed to subclass CompilationJob as discussed, PTAL.
4 years, 4 months ago (2016-08-12 13:13:42 UTC) #13
Michael Starzinger
Looking good. I like it. Just two comments (plus nits). https://codereview.chromium.org/2240463002/diff/80001/src/compiler.h File src/compiler.h (right): https://codereview.chromium.org/2240463002/diff/80001/src/compiler.h#newcode124 ...
4 years, 4 months ago (2016-08-16 08:46:40 UTC) #16
rmcilroy
+Jakob for trivial Crankshaft change https://codereview.chromium.org/2240463002/diff/80001/src/compiler.h File src/compiler.h (right): https://codereview.chromium.org/2240463002/diff/80001/src/compiler.h#newcode124 src/compiler.h:124: static void RegisterWeakObjectsInOptimizedCode(Handle<Code> code); ...
4 years, 4 months ago (2016-08-16 11:10:45 UTC) #20
Michael Starzinger
LGTM. Thanks! https://codereview.chromium.org/2240463002/diff/120001/src/ast/ast.h File src/ast/ast.h (left): https://codereview.chromium.org/2240463002/diff/120001/src/ast/ast.h#oldcode2849 src/ast/ast.h:2849: class AstVisitor BASE_EMBEDDED { nit: Can this ...
4 years, 4 months ago (2016-08-16 12:11:44 UTC) #23
rmcilroy
https://codereview.chromium.org/2240463002/diff/120001/src/ast/ast.h File src/ast/ast.h (left): https://codereview.chromium.org/2240463002/diff/120001/src/ast/ast.h#oldcode2849 src/ast/ast.h:2849: class AstVisitor BASE_EMBEDDED { On 2016/08/16 12:11:44, Michael Starzinger ...
4 years, 4 months ago (2016-08-16 12:16:11 UTC) #24
Jakob Kummerow
Trivial crankshaft changes LGTM.
4 years, 4 months ago (2016-08-16 13:12:33 UTC) #25
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/2240463002/140001
4 years, 4 months ago (2016-08-16 14:17:43 UTC) #28
commit-bot: I haz the power
Committed patchset #7 (id:140001)
4 years, 4 months ago (2016-08-16 14:45:15 UTC) #30
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/1fb6a7e697e8bc5b4af51647553741f966e00cdc Cr-Commit-Position: refs/heads/master@{#38662}
4 years, 4 months ago (2016-08-16 14:45:33 UTC) #32
rmcilroy
A revert of this CL (patchset #7 id:140001) has been created in https://codereview.chromium.org/2249153002/ by rmcilroy@chromium.org. ...
4 years, 4 months ago (2016-08-16 15:06:14 UTC) #33
rmcilroy
On 2016/08/16 15:06:14, rmcilroy wrote: > A revert of this CL (patchset #7 id:140001) has ...
4 years, 4 months ago (2016-08-16 19:24:37 UTC) #35
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/2240463002/140001
4 years, 4 months ago (2016-08-16 19:24:54 UTC) #37
commit-bot: I haz the power
Committed patchset #7 (id:140001)
4 years, 4 months ago (2016-08-16 19:28:43 UTC) #39
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/785990e9fc0dd9a9d963d25d0bed2909165e4ca9 Cr-Commit-Position: refs/heads/master@{#38668}
4 years, 4 months ago (2016-08-16 19:29:01 UTC) #41
rmcilroy
A revert of this CL (patchset #7 id:140001) has been created in https://codereview.chromium.org/2251673003/ by rmcilroy@chromium.org. ...
4 years, 4 months ago (2016-08-16 20:16:34 UTC) #42
rmcilroy
A revert of this CL (patchset #7 id:140001) has been created in https://codereview.chromium.org/2253713002/ by rmcilroy@chromium.org. ...
4 years, 4 months ago (2016-08-16 20:17:20 UTC) #43
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/2240463002/180001
4 years, 4 months ago (2016-08-18 15:56:22 UTC) #47
commit-bot: I haz the power
Committed patchset #9 (id:180001)
4 years, 4 months ago (2016-08-18 16:32:36 UTC) #49
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/d7c6195c4c5cdc080caa74dfe2ae9ecab69bea73 Cr-Commit-Position: refs/heads/master@{#38725}
4 years, 4 months ago (2016-08-18 16:32:59 UTC) #51
rmcilroy
A revert of this CL (patchset #9 id:180001) has been created in https://codereview.chromium.org/2260583002/ by rmcilroy@chromium.org. ...
4 years, 4 months ago (2016-08-18 17:06:23 UTC) #52
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/2240463002/180001
4 years, 4 months ago (2016-08-22 10:38:26 UTC) #55
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/2240463002/180001
4 years, 4 months ago (2016-08-22 11:47:06 UTC) #58
commit-bot: I haz the power
Committed patchset #9 (id:180001)
4 years, 4 months ago (2016-08-22 11:49:06 UTC) #60
commit-bot: I haz the power
4 years, 4 months ago (2016-08-22 11:49:35 UTC) #62
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/0996cea5b6bda4de260ab44ae67c0dd10e091a6b
Cr-Commit-Position: refs/heads/master@{#38778}

Powered by Google App Engine
This is Rietveld 408576698