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

Issue 12488006: Parallel recompilation: remove interrupt for code generation. (Closed)

Created:
7 years, 9 months ago by Yang
Modified:
7 years, 9 months ago
CC:
v8-dev
Visibility:
Public.

Description

Parallel recompilation: remove interrupt for code generation. R=jkummerow@chromium.org BUG= Committed: https://code.google.com/p/v8/source/detail?r=13917

Patch Set 1 #

Total comments: 11

Patch Set 2 : addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+315 lines, -180 lines) Patch
M src/arm/builtins-arm.cc View 1 chunk +29 lines, -0 lines 0 comments Download
M src/builtins.h View 2 chunks +3 lines, -0 lines 0 comments Download
M src/compiler.cc View 6 chunks +27 lines, -18 lines 0 comments Download
M src/deoptimizer.cc View 1 4 chunks +4 lines, -0 lines 0 comments Download
M src/execution.h View 1 chunk +1 line, -2 lines 0 comments Download
M src/execution.cc View 1 2 chunks +0 lines, -30 lines 0 comments Download
M src/flag-definitions.h View 1 chunk +1 line, -4 lines 0 comments Download
M src/full-codegen.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/ia32/builtins-ia32.cc View 1 chunk +26 lines, -0 lines 0 comments Download
M src/mips/builtins-mips.cc View 1 chunk +29 lines, -0 lines 0 comments Download
M src/objects.h View 1 6 chunks +11 lines, -3 lines 0 comments Download
M src/objects.cc View 1 1 chunk +38 lines, -9 lines 0 comments Download
M src/objects-inl.h View 1 4 chunks +32 lines, -2 lines 0 comments Download
M src/optimizing-compiler-thread.h View 3 chunks +0 lines, -5 lines 0 comments Download
M src/optimizing-compiler-thread.cc View 1 4 chunks +29 lines, -33 lines 0 comments Download
M src/runtime.h View 2 chunks +1 line, -1 line 0 comments Download
M src/runtime.cc View 1 3 chunks +20 lines, -21 lines 0 comments Download
M src/runtime-profiler.cc View 5 chunks +18 lines, -6 lines 0 comments Download
M src/x64/builtins-x64.cc View 1 chunk +27 lines, -0 lines 0 comments Download
M test/mjsunit/compiler/parallel-proto-change.js View 2 chunks +5 lines, -4 lines 0 comments Download
M test/mjsunit/fuzz-natives-part1.js View 2 chunks +1 line, -4 lines 0 comments Download
M test/mjsunit/fuzz-natives-part2.js View 2 chunks +1 line, -4 lines 0 comments Download
M test/mjsunit/fuzz-natives-part3.js View 2 chunks +1 line, -4 lines 0 comments Download
M test/mjsunit/fuzz-natives-part4.js View 2 chunks +1 line, -4 lines 0 comments Download
M test/mjsunit/manual-parallel-recompile.js View 2 chunks +6 lines, -23 lines 0 comments Download
M test/mjsunit/parallel-optimize-disabled.js View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Yang
7 years, 9 months ago (2013-03-08 13:10:57 UTC) #1
Jakob Kummerow
LGTM with comments. https://chromiumcodereview.appspot.com/12488006/diff/1/src/execution.cc File src/execution.cc (right): https://chromiumcodereview.appspot.com/12488006/diff/1/src/execution.cc#newcode882 src/execution.cc:882: return isolate->heap()->undefined_value(); Probably better to do ...
7 years, 9 months ago (2013-03-12 15:19:30 UTC) #2
Sven Panne
Some DBCs... https://chromiumcodereview.appspot.com/12488006/diff/1/src/execution.cc File src/execution.cc (right): https://chromiumcodereview.appspot.com/12488006/diff/1/src/execution.cc#newcode882 src/execution.cc:882: return isolate->heap()->undefined_value(); On 2013/03/12 15:19:30, Jakob wrote: ...
7 years, 9 months ago (2013-03-12 15:44:51 UTC) #3
Yang
Committed patchset #2 manually as r13917 (presubmit successful).
7 years, 9 months ago (2013-03-12 18:03:34 UTC) #4
Yang
7 years, 9 months ago (2013-03-12 18:03:38 UTC) #5
Message was sent while issue was closed.
https://chromiumcodereview.appspot.com/12488006/diff/1/src/execution.cc
File src/execution.cc (right):

https://chromiumcodereview.appspot.com/12488006/diff/1/src/execution.cc#newco...
src/execution.cc:882: return isolate->heap()->undefined_value();
On 2013/03/12 15:44:51, Sven Panne wrote:
> On 2013/03/12 15:19:30, Jakob wrote:
> > Probably better to do this change of behavior in a separate CL to isolate
any
> > potential performance impact.
> 
> +1 for a separate CL, I considered something similar in the past, and there
was
> some impact, but I can't remember the details. :-)
> 
> It would be very good if we could return here, because this would remove some
> flakiness.
> 
> Hmmm, thinking about it: Is it really still the case than that interrupt flags
> form a *set*? Isn't there only a single reason for any interupt? Not sure, but
> it would be worthwhile to find out...

Done.

https://chromiumcodereview.appspot.com/12488006/diff/1/src/objects.cc
File src/objects.cc (right):

https://chromiumcodereview.appspot.com/12488006/diff/1/src/objects.cc#newcode...
src/objects.cc:8003: // No write barrier required, since the builtin is part of
the root set.
On 2013/03/12 15:19:30, Jakob wrote:
> Since this is true for all builtins, please update ReplaceCode(...builtin...)
> calls in the vicinity for consistency.

Done.

https://chromiumcodereview.appspot.com/12488006/diff/1/src/optimizing-compile...
File src/optimizing-compiler-thread.cc (right):

https://chromiumcodereview.appspot.com/12488006/diff/1/src/optimizing-compile...
src/optimizing-compiler-thread.cc:93: // After putting the finished function
onto the install queue but before
On 2013/03/12 15:19:30, Jakob wrote:
> This comment is misleading. Maybe something like:
> The execution thread can call InstallOptimizedFunctions() at any time,
including
> right now, but that function doesn't do anything with the optimizing_compiler
we
> just enqueued unless its closure is marked for installing recompiled code.

Done.

https://chromiumcodereview.appspot.com/12488006/diff/1/src/runtime.cc
File src/runtime.cc (right):

https://chromiumcodereview.appspot.com/12488006/diff/1/src/runtime.cc#newcode...
src/runtime.cc:7752: CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0);
On 2013/03/12 15:44:51, Sven Panne wrote:
> Can we please move the argument access macros (and any related HandleScope) to
> the beginning of the runtime functions? This way error checking does not
depend
> on e.g. the value of any flags or other random circumstances.

Done.

https://chromiumcodereview.appspot.com/12488006/diff/1/src/runtime.cc#newcode...
src/runtime.cc:7928: CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0);
On 2013/03/12 15:44:51, Sven Panne wrote:
> Same as above.

Done.

Powered by Google App Engine
This is Rietveld 408576698