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

Issue 186723005: New Compilation API, part 1 (Closed)

Created:
6 years, 9 months ago by marja
Modified:
6 years, 9 months ago
Reviewers:
dcarney, Sven Panne
CC:
v8-dev, Paweł Hajdan Jr., Michael Starzinger
Visibility:
Public.

Description

New Compilation API, part 1 - Distinguish between context bound scripts (Script) and context unbound scripts (UnboundScript). - Add ScriptCompiler (which will later contain functions for async compilation). This is a breaking change, in particular, Script::New no longer exists (it is replaced by ScriptCompiler::CompileUnbound). Script::Compile remains as a backwards-compatible shorthand for ScriptCompiler::Compile. Passing CompilerOptions with produce_data_to_cache = true doesn't do anything yet; the only way to generate the data to cache is the old preparsing API. (To be fixed in the next version.) BUG= R=dcarney@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=19881

Patch Set 1 : . #

Patch Set 2 : . #

Total comments: 14

Patch Set 3 : Code review (dcarney) #

Patch Set 4 : more backwards compatibility #

Patch Set 5 : rebased #

Patch Set 6 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+418 lines, -277 lines) Patch
M include/v8.h View 1 2 3 4 5 2 chunks +121 lines, -62 lines 0 comments Download
M samples/lineprocessor.cc View 1 chunk +2 lines, -1 line 0 comments Download
M samples/shell.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/api.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M src/api.cc View 1 2 3 4 5 4 chunks +173 lines, -141 lines 0 comments Download
M src/d8.cc View 1 2 4 chunks +9 lines, -5 lines 0 comments Download
M src/heap.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/profile-generator-inl.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/cctest.h View 1 2 3 chunks +35 lines, -14 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 3 4 5 6 chunks +34 lines, -12 lines 0 comments Download
M test/cctest/test-cpu-profiler.cc View 1 chunk +6 lines, -10 lines 0 comments Download
M test/cctest/test-debug.cc View 1 2 3 6 chunks +17 lines, -20 lines 0 comments Download
M test/cctest/test-log.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M test/cctest/test-parsing.cc View 1 2 3 4 5 1 chunk +13 lines, -6 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
marja
dcarney, svenpanne, ptal.
6 years, 9 months ago (2014-03-10 14:12:35 UTC) #1
dcarney
https://codereview.chromium.org/186723005/diff/120001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/186723005/diff/120001/include/v8.h#newcode1005 include/v8.h:1005: class V8_EXPORT ContextUnboundScript { maybe just UnboundScript? https://codereview.chromium.org/186723005/diff/120001/include/v8.h#newcode1010 include/v8.h:1010: ...
6 years, 9 months ago (2014-03-10 15:50:34 UTC) #2
marja
Thanks for comments! https://codereview.chromium.org/186723005/diff/120001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/186723005/diff/120001/include/v8.h#newcode1005 include/v8.h:1005: class V8_EXPORT ContextUnboundScript { On 2014/03/10 ...
6 years, 9 months ago (2014-03-10 17:58:05 UTC) #3
marja
svenpanne, could you have a look? dcarney@ this LGTH, and he wanted you to ACK ...
6 years, 9 months ago (2014-03-11 10:51:13 UTC) #4
dcarney
lgtm
6 years, 9 months ago (2014-03-12 08:22:35 UTC) #5
marja
(mstarzinger, fyi)
6 years, 9 months ago (2014-03-12 08:50:21 UTC) #6
marja
Thanks for review! I added back one function, Script::Compile(Handle<String>, Handle<String>) because Chromium use it atm.
6 years, 9 months ago (2014-03-12 08:55:12 UTC) #7
marja
6 years, 9 months ago (2014-03-13 08:54:22 UTC) #8
Message was sent while issue was closed.
Committed patchset #6 manually as r19881 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698