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

Issue 376223002: Refactor ScriptData class for cached compile data. (Closed)

Created:
6 years, 5 months ago by Yang
Modified:
6 years, 5 months ago
Reviewers:
vogelheim, marja
CC:
v8-dev
Project:
v8
Visibility:
Public.

Description

Refactor ScriptData class for cached compile data. R=marja@chromium.org, vogelheim@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=22314

Patch Set 1 #

Total comments: 32

Patch Set 2 : addressed comments, refactored test cases. #

Total comments: 7

Patch Set 3 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+368 lines, -579 lines) Patch
M include/v8.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M src/api.cc View 1 2 chunks +15 lines, -47 lines 0 comments Download
M src/compiler.h View 3 chunks +30 lines, -2 lines 0 comments Download
M src/compiler.cc View 1 chunk +12 lines, -0 lines 0 comments Download
M src/messages.js View 1 chunk +0 lines, -2 lines 0 comments Download
M src/mksnapshot.cc View 10 chunks +20 lines, -23 lines 0 comments Download
M src/parser.h View 1 2 3 chunks +26 lines, -73 lines 0 comments Download
M src/parser.cc View 1 2 9 chunks +65 lines, -213 lines 0 comments Download
M src/preparse-data.h View 1 2 2 chunks +10 lines, -3 lines 2 comments Download
M src/preparse-data.cc View 1 3 chunks +12 lines, -7 lines 0 comments Download
M src/serialize.h View 1 3 chunks +62 lines, -2 lines 0 comments Download
M src/serialize.cc View 1 2 4 chunks +36 lines, -38 lines 0 comments Download
M src/snapshot-source-sink.h View 4 chunks +10 lines, -9 lines 0 comments Download
M src/snapshot-source-sink.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 1 chunk +4 lines, -117 lines 0 comments Download
M test/cctest/test-parsing.cc View 1 14 chunks +55 lines, -38 lines 0 comments Download
M test/cctest/test-serialize.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Yang
6 years, 5 months ago (2014-07-09 14:15:36 UTC) #1
marja
https://codereview.chromium.org/376223002/diff/1/src/api.cc File src/api.cc (right): https://codereview.chromium.org/376223002/diff/1/src/api.cc#newcode1709 src/api.cc:1709: ASSERT(source->cached_data == NULL); Shouldn't you crash if source->cached_data != ...
6 years, 5 months ago (2014-07-09 14:42:30 UTC) #2
vogelheim
lgtm Mostly nitpicks... I do think the crash-on-CacheData-from-the-wrong-version thing needs to be documented. https://codereview.chromium.org/376223002/diff/1/src/parser.cc File ...
6 years, 5 months ago (2014-07-09 17:23:37 UTC) #3
vogelheim
lgtm Mostly nitpicks... I do think the crash-on-CacheData-from-the-wrong-version thing needs to be documented.
6 years, 5 months ago (2014-07-09 17:23:37 UTC) #4
marja
https://codereview.chromium.org/376223002/diff/1/test/cctest/test-parsing.cc File test/cctest/test-parsing.cc (right): https://codereview.chromium.org/376223002/diff/1/test/cctest/test-parsing.cc#newcode1224 test/cctest/test-parsing.cc:1224: i::ScriptData* sd = log.GetScriptData(); Btw, in these tests, would ...
6 years, 5 months ago (2014-07-09 17:28:51 UTC) #5
marja
(Also, feel free to commit this despite my further cleanup suggestions, I don't want to ...
6 years, 5 months ago (2014-07-10 07:14:20 UTC) #6
Yang
Addressed comments. Please take another look. (Especially Marja, since I changed a lot of code ...
6 years, 5 months ago (2014-07-10 08:28:46 UTC) #7
marja
lgtm with comments https://codereview.chromium.org/376223002/diff/40001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/376223002/diff/40001/include/v8.h#newcode1095 include/v8.h:1095: * produced the the same version ...
6 years, 5 months ago (2014-07-10 08:48:11 UTC) #8
vogelheim
lgtm https://codereview.chromium.org/376223002/diff/60001/src/preparse-data.h File src/preparse-data.h (right): https://codereview.chromium.org/376223002/diff/60001/src/preparse-data.h#newcode122 src/preparse-data.h:122: class ScriptData; stlye nitpick: Forward declarations near always ...
6 years, 5 months ago (2014-07-10 10:05:32 UTC) #9
Yang
https://codereview.chromium.org/376223002/diff/40001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/376223002/diff/40001/include/v8.h#newcode1095 include/v8.h:1095: * produced the the same version of V8. On ...
6 years, 5 months ago (2014-07-10 10:27:58 UTC) #10
Yang
6 years, 5 months ago (2014-07-10 10:28:22 UTC) #11
Message was sent while issue was closed.
Committed patchset #3 manually as r22314 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698