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

Issue 110203002: Refactor the compiling pipeline. (Closed)

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

Description

Refactor the compiling pipeline. Goals: - easier to read, more suitable identifiers. - better distinction between compiling optimized/unoptimized code - compiler does not install code on the function. - easier to add features (e.g. caching optimized code for osr). - remove unnecessary code. R=titzer@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=18409

Patch Set 1 #

Patch Set 2 : move some code #

Total comments: 54

Patch Set 3 : addressed comments #

Patch Set 4 : addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1262 lines, -1410 lines) Patch
M src/accessors.cc View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M src/api.cc View 1 chunk +10 lines, -10 lines 0 comments Download
M src/arm/builtins-arm.cc View 1 2 4 chunks +40 lines, -23 lines 0 comments Download
M src/bootstrapper.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M src/builtins.h View 1 2 3 chunks +8 lines, -8 lines 0 comments Download
M src/compilation-cache.h View 2 chunks +0 lines, -2 lines 0 comments Download
M src/compilation-cache.cc View 4 chunks +4 lines, -10 lines 0 comments Download
M src/compiler.h View 1 2 12 chunks +62 lines, -74 lines 0 comments Download
M src/compiler.cc View 1 2 18 chunks +603 lines, -681 lines 0 comments Download
M src/debug.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/debug.cc View 1 2 8 chunks +32 lines, -62 lines 0 comments Download
M src/factory.cc View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
M src/full-codegen.h View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M src/full-codegen.cc View 1 2 3 4 chunks +17 lines, -20 lines 0 comments Download
M src/ia32/builtins-ia32.cc View 1 2 4 chunks +43 lines, -23 lines 0 comments Download
M src/ic.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M src/liveedit.cc View 2 chunks +1 line, -22 lines 0 comments Download
M src/log.cc View 1 2 2 chunks +3 lines, -4 lines 0 comments Download
M src/mark-compact.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M src/mips/builtins-mips.cc View 1 2 4 chunks +39 lines, -23 lines 0 comments Download
M src/objects.h View 1 2 3 13 chunks +83 lines, -93 lines 0 comments Download
M src/objects.cc View 1 2 3 6 chunks +32 lines, -80 lines 0 comments Download
M src/objects-inl.h View 1 2 3 chunks +10 lines, -8 lines 0 comments Download
M src/optimizing-compiler-thread.h View 1 2 5 chunks +12 lines, -12 lines 0 comments Download
M src/optimizing-compiler-thread.cc View 1 2 3 13 chunks +39 lines, -35 lines 0 comments Download
M src/parser.h View 1 chunk +6 lines, -1 line 0 comments Download
M src/runtime.h View 1 chunk +3 lines, -4 lines 0 comments Download
M src/runtime.cc View 1 2 3 17 chunks +113 lines, -148 lines 0 comments Download
M src/runtime-profiler.cc View 1 2 3 chunks +6 lines, -6 lines 0 comments Download
M src/utils.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/x64/builtins-x64.cc View 1 2 4 chunks +43 lines, -23 lines 0 comments Download
M test/cctest/test-compiler.cc View 1 2 1 chunk +9 lines, -10 lines 0 comments Download
M test/mjsunit/compiler/concurrent-invalidate-transition-map.js View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M test/mjsunit/compiler/concurrent-proto-change.js View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M test/mjsunit/concurrent-initial-prototype-change.js View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M test/mjsunit/fuzz-natives-part1.js View 1 chunk +3 lines, -3 lines 0 comments Download
M test/mjsunit/fuzz-natives-part2.js View 1 chunk +3 lines, -3 lines 0 comments Download
M test/mjsunit/fuzz-natives-part3.js View 1 chunk +3 lines, -3 lines 0 comments Download
M test/mjsunit/fuzz-natives-part4.js View 1 chunk +3 lines, -3 lines 0 comments Download
M test/mjsunit/regress/regress-2618.js View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
Yang
I realize that this is a huge CL. Feel free to suggest another reviewer for ...
7 years ago (2013-12-09 12:34:44 UTC) #1
titzer
https://codereview.chromium.org/110203002/diff/20001/src/accessors.cc File src/accessors.cc (right): https://codereview.chromium.org/110203002/diff/20001/src/accessors.cc#newcode653 src/accessors.cc:653: if (!Compiler::EnsureCompiled(function_handle, KEEP_EXCEPTION)) { Not sure why you negated ...
7 years ago (2013-12-09 14:49:27 UTC) #2
Yang
Addressed comments. Regarding the is_compiled() asserts: we currently assume that we first compile unoptimized code ...
7 years ago (2013-12-10 11:22:03 UTC) #3
Yang
Precautionary ping. Would be nice to get this in shape before the holidays.
7 years ago (2013-12-17 09:54:29 UTC) #4
titzer
lgtm. There is still something weird about the debugger interaction with the pipeline, but willing ...
7 years ago (2013-12-17 15:27:54 UTC) #5
Yang
Addressed comments in a new patch set. https://codereview.chromium.org/110203002/diff/20001/src/full-codegen.h File src/full-codegen.h (right): https://codereview.chromium.org/110203002/diff/20001/src/full-codegen.h#newcode934 src/full-codegen.h:934: static void ...
7 years ago (2013-12-17 16:31:32 UTC) #6
Yang
7 years ago (2013-12-23 14:30:58 UTC) #7
Message was sent while issue was closed.
Committed patchset #4 manually as r18409 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698