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

Issue 2251713002: [Compiler] Add compile to CompilerDispatcherJob. (Closed)

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

Description

[Compiler] Add compile operations to CompilerDispatcherJob. Adds compile operations to the CompilerDispatcherJob interface. As such, introduces Compiler::PrepareUnoptimizedCompilationJob and updates the unoptimized compilation path to use CompilationJobs. Also unifies FinalizeCompilationJob to deal with both optimized and unoptimized compilation jobs. A dummy FullCodegenCompilationJob is also introduced, where all the work is done in the ExecuteJob phase, which cannot be run on a background thread. BUG=v8:5203 Committed: https://crrev.com/c2d2d4d1cea75c838bf9871526772bc155631e9c Cr-Commit-Position: refs/heads/master@{#38897}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address comments #

Total comments: 1

Patch Set 3 : Rebase #

Patch Set 4 : Address comments #

Total comments: 12

Patch Set 5 : Address Jochen's comments #

Total comments: 4

Patch Set 6 : Address nits #

Total comments: 4

Patch Set 7 : Address Michi's comments. #

Patch Set 8 : Fix tests #

Total comments: 2

Patch Set 9 : Fix comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+483 lines, -184 lines) Patch
M src/compiler.h View 1 2 3 4 5 6 4 chunks +22 lines, -6 lines 0 comments Download
M src/compiler.cc View 1 2 3 4 5 6 7 10 chunks +181 lines, -117 lines 0 comments Download
M src/compiler-dispatcher/compiler-dispatcher-job.h View 1 2 3 4 5 5 chunks +25 lines, -1 line 0 comments Download
M src/compiler-dispatcher/compiler-dispatcher-job.cc View 1 2 3 4 5 6 chunks +80 lines, -2 lines 0 comments Download
M src/compiler/pipeline.cc View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M src/crankshaft/hydrogen.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/full-codegen/full-codegen.h View 1 2 chunks +10 lines, -4 lines 0 comments Download
M src/full-codegen/full-codegen.cc View 1 2 3 3 chunks +28 lines, -5 lines 0 comments Download
M src/interpreter/bytecode-generator.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M src/interpreter/interpreter.h View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -2 lines 0 comments Download
M src/interpreter/interpreter.cc View 1 2 3 2 chunks +30 lines, -30 lines 0 comments Download
M test/unittests/compiler-dispatcher/compiler-dispatcher-job-unittest.cc View 1 2 3 4 5 6 chunks +96 lines, -11 lines 0 comments Download

Messages

Total messages: 75 (52 generated)
rmcilroy
Michi: what do you think of this general approach? I've tried to centralize the logic ...
4 years, 4 months ago (2016-08-16 10:53:45 UTC) #3
rmcilroy
Still struggling to figure out what's wrong with the preceeding CL, but I would appreciate ...
4 years, 4 months ago (2016-08-19 10:09:09 UTC) #8
Michael Starzinger
Sorry for the delay, seemed to have fallen through the cracks. Approach looks good to ...
4 years, 4 months ago (2016-08-19 10:54:14 UTC) #9
Michael Starzinger
https://codereview.chromium.org/2251713002/diff/1/src/compiler.h File src/compiler.h (right): https://codereview.chromium.org/2251713002/diff/1/src/compiler.h#newcode58 src/compiler.h:58: static CompilationJob* PrepareUnoptimizedCompilationJob( On 2016/08/19 10:54:14, Michael Starzinger wrote: ...
4 years, 4 months ago (2016-08-19 10:57:10 UTC) #10
rmcilroy
+Jochen: PTAL at CompilerDispatcherJob changes. https://codereview.chromium.org/2251713002/diff/1/src/compiler.h File src/compiler.h (right): https://codereview.chromium.org/2251713002/diff/1/src/compiler.h#newcode610 src/compiler.h:610: void RecordCompilationStats() const { ...
4 years, 4 months ago (2016-08-22 13:27:09 UTC) #12
jochen (gone - plz use gerrit)
yeah, I don't think that'll work :-/ e.g. the finalize parsing step creates a bunch ...
4 years, 4 months ago (2016-08-22 15:49:21 UTC) #28
rmcilroy
On 2016/08/22 15:49:21, jochen wrote: > yeah, I don't think that'll work :-/ You don't ...
4 years, 4 months ago (2016-08-22 15:54:41 UTC) #29
jochen (gone - plz use gerrit)
On 2016/08/22 at 15:54:41, rmcilroy wrote: > On 2016/08/22 15:49:21, jochen wrote: > > yeah, ...
4 years, 4 months ago (2016-08-22 15:57:06 UTC) #30
rmcilroy
On 2016/08/22 15:57:06, jochen wrote: > On 2016/08/22 at 15:54:41, rmcilroy wrote: > > On ...
4 years, 4 months ago (2016-08-22 16:17:25 UTC) #31
rmcilroy
Updated as discussed offline. PTAL, thanks.
4 years, 4 months ago (2016-08-23 11:38:39 UTC) #35
jochen (gone - plz use gerrit)
https://codereview.chromium.org/2251713002/diff/80001/src/compiler-dispatcher/compiler-dispatcher-job.cc File src/compiler-dispatcher/compiler-dispatcher-job.cc (right): https://codereview.chromium.org/2251713002/diff/80001/src/compiler-dispatcher/compiler-dispatcher-job.cc#newcode143 src/compiler-dispatcher/compiler-dispatcher-job.cc:143: void CompilerDispatcherJob::PrepareToCompileOnMainThread() { can you make this return a ...
4 years, 4 months ago (2016-08-23 12:04:26 UTC) #38
rmcilroy
PTAL https://codereview.chromium.org/2251713002/diff/80001/src/compiler-dispatcher/compiler-dispatcher-job.cc File src/compiler-dispatcher/compiler-dispatcher-job.cc (right): https://codereview.chromium.org/2251713002/diff/80001/src/compiler-dispatcher/compiler-dispatcher-job.cc#newcode143 src/compiler-dispatcher/compiler-dispatcher-job.cc:143: void CompilerDispatcherJob::PrepareToCompileOnMainThread() { On 2016/08/23 12:04:26, jochen wrote: ...
4 years, 4 months ago (2016-08-23 15:55:11 UTC) #40
jochen (gone - plz use gerrit)
lgtm with nits https://codereview.chromium.org/2251713002/diff/80001/src/compiler-dispatcher/compiler-dispatcher-job.h File src/compiler-dispatcher/compiler-dispatcher-job.h (right): https://codereview.chromium.org/2251713002/diff/80001/src/compiler-dispatcher/compiler-dispatcher-job.h#newcode48 src/compiler-dispatcher/compiler-dispatcher-job.h:48: } On 2016/08/23 at 15:55:10, rmcilroy ...
4 years, 4 months ago (2016-08-23 16:06:22 UTC) #43
rmcilroy
https://codereview.chromium.org/2251713002/diff/80001/src/compiler-dispatcher/compiler-dispatcher-job.h File src/compiler-dispatcher/compiler-dispatcher-job.h (right): https://codereview.chromium.org/2251713002/diff/80001/src/compiler-dispatcher/compiler-dispatcher-job.h#newcode48 src/compiler-dispatcher/compiler-dispatcher-job.h:48: } On 2016/08/23 16:06:22, jochen wrote: > On 2016/08/23 ...
4 years, 4 months ago (2016-08-23 16:58:30 UTC) #50
rmcilroy
4 years, 4 months ago (2016-08-23 16:58:33 UTC) #51
Michael Starzinger
https://codereview.chromium.org/2251713002/diff/140001/src/compiler.cc File src/compiler.cc (right): https://codereview.chromium.org/2251713002/diff/140001/src/compiler.cc#newcode601 src/compiler.cc:601: InstallUnoptimizedCode(job->info()); This will eventually cause an implicit tier-down once ...
4 years, 4 months ago (2016-08-24 07:29:32 UTC) #52
rmcilroy
+Jakob for Crankshaft changes. https://codereview.chromium.org/2251713002/diff/140001/src/compiler.cc File src/compiler.cc (right): https://codereview.chromium.org/2251713002/diff/140001/src/compiler.cc#newcode601 src/compiler.cc:601: InstallUnoptimizedCode(job->info()); On 2016/08/24 07:29:32, Michael ...
4 years, 4 months ago (2016-08-24 09:26:58 UTC) #54
Jakob Kummerow
src/crankshaft/ LGTM.
4 years, 4 months ago (2016-08-24 09:35:52 UTC) #57
Michael Starzinger
LGTM. https://codereview.chromium.org/2251713002/diff/190001/src/interpreter/interpreter.h File src/interpreter/interpreter.h (right): https://codereview.chromium.org/2251713002/diff/190001/src/interpreter/interpreter.h#newcode46 src/interpreter/interpreter.h:46: // Creates a compilation job which will generating ...
4 years, 4 months ago (2016-08-25 08:10:56 UTC) #67
rmcilroy
https://codereview.chromium.org/2251713002/diff/190001/src/interpreter/interpreter.h File src/interpreter/interpreter.h (right): https://codereview.chromium.org/2251713002/diff/190001/src/interpreter/interpreter.h#newcode46 src/interpreter/interpreter.h:46: // Creates a compilation job which will generating bytecode ...
4 years, 3 months ago (2016-08-25 09:49:05 UTC) #68
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/2251713002/210001
4 years, 3 months ago (2016-08-25 10:02:21 UTC) #71
commit-bot: I haz the power
Committed patchset #9 (id:210001)
4 years, 3 months ago (2016-08-25 10:25:01 UTC) #73
commit-bot: I haz the power
4 years, 3 months ago (2016-08-25 10:25:20 UTC) #75
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/c2d2d4d1cea75c838bf9871526772bc155631e9c
Cr-Commit-Position: refs/heads/master@{#38897}

Powered by Google App Engine
This is Rietveld 408576698