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

Issue 432273004: Implement Blink-side changes to enable V8 code caching. (Closed)

Created:
6 years, 4 months ago by vogelheim
Modified:
6 years, 4 months ago
CC:
abarth-chromium, arv+blink, blink-reviews, blink-reviews-bindings_chromium.org, dglazkov+blink, gavinp+loader_chromium.org, jamesr, Nate Chapin
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Implement Blink-side changes to enable V8 code caching. Further info: - Design doc etc. is found in the referenced issue. - Main part is V8ScriptRunner. Most of the rest is merely there to support getting the settings string in the right place. - Depends on a Chromium CL (forthcoming) for the new setting. - Support for Workers not yet implemented. BUG=399580 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=179643

Patch Set 1 #

Total comments: 4

Patch Set 2 : V8CacheOptions enum (instead of string) #

Total comments: 6

Patch Set 3 : Incorporate review feedback. #

Patch Set 4 : Fix very silly bug that causes an unitialized field and a CHECK fail at startup. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -40 lines) Patch
M Source/bindings/core/v8/ScriptController.cpp View 1 2 2 chunks +5 lines, -1 line 0 comments Download
A + Source/bindings/core/v8/V8CacheOptions.h View 1 2 1 chunk +9 lines, -8 lines 0 comments Download
M Source/bindings/core/v8/V8ScriptRunner.h View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M Source/bindings/core/v8/V8ScriptRunner.cpp View 1 2 2 chunks +71 lines, -29 lines 0 comments Download
M Source/core/fetch/Resource.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/fetch/Resource.cpp View 1 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/frame/Settings.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/frame/Settings.in View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M Source/web/AssertMatchingEnums.cpp View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M Source/web/WebSettingsImpl.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/WebSettingsImpl.cpp View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M public/web/WebSettings.h View 1 2 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
jochen (gone - plz use gerrit)
https://codereview.chromium.org/432273004/diff/1/Source/core/fetch/Resource.cpp File Source/core/fetch/Resource.cpp (right): https://codereview.chromium.org/432273004/diff/1/Source/core/fetch/Resource.cpp#newcode426 Source/core/fetch/Resource.cpp:426: m_cachedMetadata.clear(); have you verified that this works across reloads, ...
6 years, 4 months ago (2014-08-04 09:27:29 UTC) #1
haraken
Looked at the design document. This is fantastic work!
6 years, 4 months ago (2014-08-04 14:10:46 UTC) #2
vogelheim
PTAL. https://codereview.chromium.org/432273004/diff/1/Source/core/fetch/Resource.cpp File Source/core/fetch/Resource.cpp (right): https://codereview.chromium.org/432273004/diff/1/Source/core/fetch/Resource.cpp#newcode426 Source/core/fetch/Resource.cpp:426: m_cachedMetadata.clear(); On 2014/08/04 09:27:29, jochen wrote: > have ...
6 years, 4 months ago (2014-08-05 16:03:40 UTC) #3
jochen (gone - plz use gerrit)
https://codereview.chromium.org/432273004/diff/20001/Source/bindings/core/v8/V8CacheOptionsType.h File Source/bindings/core/v8/V8CacheOptionsType.h (right): https://codereview.chromium.org/432273004/diff/20001/Source/bindings/core/v8/V8CacheOptionsType.h#newcode36 Source/bindings/core/v8/V8CacheOptionsType.h:36: enum V8CacheOptionsType { i'd name this V8CacheOptions (and the ...
6 years, 4 months ago (2014-08-05 16:10:01 UTC) #4
vogelheim
https://codereview.chromium.org/432273004/diff/20001/Source/bindings/core/v8/V8CacheOptionsType.h File Source/bindings/core/v8/V8CacheOptionsType.h (right): https://codereview.chromium.org/432273004/diff/20001/Source/bindings/core/v8/V8CacheOptionsType.h#newcode36 Source/bindings/core/v8/V8CacheOptionsType.h:36: enum V8CacheOptionsType { On 2014/08/05 16:10:01, jochen wrote: > ...
6 years, 4 months ago (2014-08-05 17:02:52 UTC) #5
jochen (gone - plz use gerrit)
the code changes look good did you check the disk cache interaction?
6 years, 4 months ago (2014-08-05 17:06:15 UTC) #6
blink-reviews
On Tue, Aug 5, 2014 at 7:06 PM, <jochen@chromium.org> wrote: > the code changes look ...
6 years, 4 months ago (2014-08-05 17:29:54 UTC) #7
jochen (gone - plz use gerrit)
lgtm
6 years, 4 months ago (2014-08-06 11:26:34 UTC) #8
vogelheim
The CQ bit was checked by vogelheim@chromium.org
6 years, 4 months ago (2014-08-06 16:17:00 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vogelheim@chromium.org/432273004/60001
6 years, 4 months ago (2014-08-06 16:18:33 UTC) #10
vogelheim
The CQ bit was unchecked by vogelheim@chromium.org
6 years, 4 months ago (2014-08-06 16:24:50 UTC) #11
vogelheim
The CQ bit was checked by vogelheim@chromium.org
6 years, 4 months ago (2014-08-06 16:51:57 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vogelheim@chromium.org/432273004/60001
6 years, 4 months ago (2014-08-06 16:52:23 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_compile_dbg on tryserver.blink ...
6 years, 4 months ago (2014-08-06 18:43:44 UTC) #14
commit-bot: I haz the power
Change committed as 179643
6 years, 4 months ago (2014-08-06 19:01:23 UTC) #15
marja
Post-commit comment: Huh, afaics this disables the parser cache. There's no place that would set ...
6 years, 4 months ago (2014-08-18 10:46:53 UTC) #16
vogelheim
I hope not... :) (I'm on vacation for a week so I hope this isn't ...
6 years, 4 months ago (2014-08-18 13:25:08 UTC) #17
marja
6 years, 4 months ago (2014-08-18 13:44:51 UTC) #18
Message was sent while issue was closed.
Do not read this e-mail, go back to vacation :)

It wasn't default-disabled before. It was just never put to disk, but the data
was produced and kept in a in-memory cache. Afaics, now we don't do even that
any more.

Powered by Google App Engine
This is Rietveld 408576698