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

Issue 10807024: Optimize functions on a second thread. (Closed)

Created:
8 years, 5 months ago by sanjoy
Modified:
8 years, 5 months ago
Reviewers:
danno, Yang
CC:
v8-dev
Visibility:
Public.

Description

Optimize functions on a second thread. BUG= TEST= Committed: https://code.google.com/p/v8/source/detail?r=12148

Patch Set 1 : #

Total comments: 26

Patch Set 2 : Review. #

Patch Set 3 : Review. #

Total comments: 4

Patch Set 4 : Review. #

Total comments: 3

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+822 lines, -253 lines) Patch
M src/SConscript View 1 chunk +1 line, -0 lines 0 comments Download
M src/arm/builtins-arm.cc View 1 chunk +37 lines, -0 lines 0 comments Download
M src/ast.h View 1 chunk +1 line, -1 line 0 comments Download
M src/builtins.h View 3 chunks +6 lines, -0 lines 0 comments Download
M src/compiler.h View 1 2 3 7 chunks +26 lines, -6 lines 0 comments Download
M src/compiler.cc View 1 2 3 4 6 chunks +194 lines, -77 lines 0 comments Download
M src/d8.h View 1 chunk +1 line, -1 line 0 comments Download
M src/execution.h View 2 chunks +4 lines, -1 line 0 comments Download
M src/execution.cc View 1 2 chunks +30 lines, -0 lines 0 comments Download
M src/flag-definitions.h View 2 1 chunk +6 lines, -0 lines 0 comments Download
M src/flags.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/handles.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/handles-inl.h View 1 1 chunk +18 lines, -12 lines 0 comments Download
M src/heap.h View 1 4 chunks +23 lines, -0 lines 0 comments Download
M src/heap.cc View 1 2 3 4 4 chunks +7 lines, -1 line 0 comments Download
M src/heap-inl.h View 1 1 chunk +12 lines, -4 lines 0 comments Download
M src/hydrogen.cc View 1 2 3 3 chunks +4 lines, -5 lines 0 comments Download
M src/hydrogen-instructions.h View 1 2 3 4 chunks +13 lines, -3 lines 0 comments Download
M src/ia32/builtins-ia32.cc View 1 1 chunk +37 lines, -0 lines 0 comments Download
M src/isolate.h View 1 3 chunks +8 lines, -0 lines 0 comments Download
M src/isolate.cc View 3 chunks +5 lines, -1 line 0 comments Download
M src/mark-compact.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M src/objects.h View 1 3 chunks +7 lines, -1 line 0 comments Download
M src/objects.cc View 1 1 chunk +12 lines, -0 lines 0 comments Download
M src/objects-inl.h View 1 1 chunk +12 lines, -0 lines 0 comments Download
A src/optimizing-compiler-thread.h View 1 chunk +97 lines, -0 lines 0 comments Download
A src/optimizing-compiler-thread.cc View 1 2 3 4 1 chunk +107 lines, -0 lines 0 comments Download
M src/profile-generator-inl.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime.cc View 3 chunks +14 lines, -1 line 0 comments Download
M src/runtime-profiler.cc View 2 chunks +10 lines, -4 lines 0 comments Download
D src/smart-array-pointer.h View 1 chunk +0 lines, -100 lines 0 comments Download
A + src/smart-pointers.h View 1 3 chunks +53 lines, -14 lines 0 comments Download
M src/v8.cc View 1 1 chunk +6 lines, -3 lines 0 comments Download
M src/v8globals.h View 1 chunk +6 lines, -5 lines 0 comments Download
M src/vm-state-inl.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/x64/builtins-x64.cc View 1 1 chunk +39 lines, -0 lines 0 comments Download
M test/cctest/test-mark-compact.cc View 1 chunk +4 lines, -1 line 0 comments Download
M test/mjsunit/array-literal-transitions.js View 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/assert-opt-and-deopt.js View 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/count-based-osr.js View 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/debug-break-inline.js View 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/debug-script.js View 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/elements-transition-hoisting.js View 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/fuzz-natives.js View 1 chunk +1 line, -0 lines 0 comments Download
M test/mjsunit/harmony/block-let-crankshaft.js View 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/math-floor-of-div-minus-zero.js View 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/regress/regress-1118.js View 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/unbox-double-arrays.js View 1 chunk +1 line, -1 line 0 comments Download
M tools/gyp/v8.gyp View 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
sanjoy
Parallel recompilation is turned off by default. Please use the --parallel-recompilation flag.
8 years, 5 months ago (2012-07-18 22:57:37 UTC) #1
Yang
Did a first pass. I'll do a second pass but here's the first round of ...
8 years, 5 months ago (2012-07-19 12:47:30 UTC) #2
Yang
A few more comments. LGTM if all comments are addressed. http://codereview.chromium.org/10807024/diff/2001/src/isolate.h File src/isolate.h (right): http://codereview.chromium.org/10807024/diff/2001/src/isolate.h#newcode56 ...
8 years, 5 months ago (2012-07-19 14:26:31 UTC) #3
sanjoy
* Edited NoHandleAllocation and AssertNoAllocation to be null operations when activated on the compiler thread. ...
8 years, 5 months ago (2012-07-19 15:06:09 UTC) #4
Yang
LGTM with comment. http://codereview.chromium.org/10807024/diff/1102/src/compiler.h File src/compiler.h (right): http://codereview.chromium.org/10807024/diff/1102/src/compiler.h#newcode382 src/compiler.h:382: bool abort_optimization_; imo checking for BAILED_OUT ...
8 years, 5 months ago (2012-07-19 15:56:01 UTC) #5
Yang
One more comment. http://codereview.chromium.org/10807024/diff/1102/src/compiler.cc File src/compiler.cc (right): http://codereview.chromium.org/10807024/diff/1102/src/compiler.cc#newcode824 src/compiler.cc:824: ASSERT(!closure->IsInRecompileQueue()); As discussed, this should probably ...
8 years, 5 months ago (2012-07-19 16:11:56 UTC) #6
sanjoy
Other than addressing comments, changed IsCompilerThread() to return false if recompilation is false. This simplifies ...
8 years, 5 months ago (2012-07-19 16:25:36 UTC) #7
Yang
8 years, 5 months ago (2012-07-19 16:37:16 UTC) #8
LGTM if comments addressed.

http://codereview.chromium.org/10807024/diff/5007/src/compiler.cc
File src/compiler.cc (right):

http://codereview.chromium.org/10807024/diff/5007/src/compiler.cc#newcode357
src/compiler.cc:357: return SetLastStatus(BAILED_OUT);
Do we handle BAILED_OUT when running this in the parallel thread at all?

http://codereview.chromium.org/10807024/diff/5007/src/optimizing-compiler-thr...
File src/optimizing-compiler-thread.cc (right):

http://codereview.chromium.org/10807024/diff/5007/src/optimizing-compiler-thr...
src/optimizing-compiler-thread.cc:62: (void) status;
What does this line do?

http://codereview.chromium.org/10807024/diff/5007/src/optimizing-compiler-thr...
src/optimizing-compiler-thread.cc:101: return false;
Put this on the previous line or in {}.

Powered by Google App Engine
This is Rietveld 408576698