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

Issue 1230753004: [Interpreter] Add BytecodeArray class and add to SharedFunctionInfo. (Closed)

Created:
5 years, 5 months ago by oth
Modified:
5 years, 5 months ago
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[Interpreter] Add BytecodeArray class and add to SharedFunctionInfo. BUG=v8:4280 LOG=N Committed: https://crrev.com/cb6e7056862ee6991d3d884a92d36bebe45b8152 Cr-Commit-Position: refs/heads/master@{#29843}

Patch Set 1 #

Patch Set 2 : Add BytecodeArray for BytecodeEmitter output. #

Patch Set 3 : Use BytecodeArray in bytecode emission path in interpreter. #

Total comments: 36

Patch Set 4 : Incorporate patch set 3 comments #

Patch Set 5 : Undo future conflict. #

Patch Set 6 : Doh! Remove another future merge conflict :-) #

Patch Set 7 : Additional object methods for BytecodeArray. #

Total comments: 6

Patch Set 8 : Incorporate comments on patch set 7. #

Patch Set 9 : Fix missing/erroneous cases for BytecodeArray in heap and visitors. #

Patch Set 10 : Add BytecodeArray fields for frame size and number of locals. #

Patch Set 11 : Avoid outputting junk data in BytecodeArray::Print() and ByteArray::Print(). #

Total comments: 12

Patch Set 12 : Incorporate patch set 11 comments. #

Total comments: 4

Patch Set 13 : Don't use extra memory for BytecodeArray in SharedFunctionInfo and add a BytecodeArray test. #

Total comments: 8

Patch Set 14 : Incorporate review comments on patch set 13. #

Patch Set 15 : Avoid duplicate checks in SharedFunctionInfoVerify() and cl format. #

Patch Set 16 : Rebase against latest https://codereview.chromium.org/1239793002/ and re-run make grokdump. #

Patch Set 17 : Rebase against master and re-build v8heapconst.py #

Patch Set 18 : Fix BytecodeArray initialization and check SharedFunctionInfo has a BytecodeArray before printing i… #

Patch Set 19 : Change frame_size() and number_of_locals() to int accessors and fix 64-bit test crash. #

Patch Set 20 : Fix pedantic build. #

Patch Set 21 : Fix pedantic build (take2). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+479 lines, -211 lines) Patch
M include/v8.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -1 line 0 comments Download
M src/factory.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M src/factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +9 lines, -0 lines 0 comments Download
M src/heap-snapshot-generator.cc View 1 2 1 chunk +11 lines, -12 lines 0 comments Download
M src/heap/heap.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +10 lines, -1 line 0 comments Download
M src/heap/heap.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +29 lines, -0 lines 0 comments Download
M src/heap/objects-visiting.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +5 lines, -0 lines 0 comments Download
M src/heap/objects-visiting.cc View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M src/heap/objects-visiting-inl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +3 lines, -0 lines 0 comments Download
M src/interpreter/bytecodes.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +6 lines, -1 line 0 comments Download
M src/interpreter/bytecodes.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +6 lines, -0 lines 0 comments Download
M src/interpreter/interpreter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -0 lines 0 comments Download
M src/objects.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 7 chunks +57 lines, -2 lines 0 comments Download
M src/objects.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +28 lines, -0 lines 0 comments Download
M src/objects-debug.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +11 lines, -0 lines 0 comments Download
M src/objects-inl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 5 chunks +37 lines, -0 lines 0 comments Download
M src/objects-printer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +12 lines, -0 lines 0 comments Download
M src/types.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M test/cctest/test-heap.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +44 lines, -0 lines 0 comments Download
M tools/v8heapconst.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +202 lines, -194 lines 0 comments Download

Messages

Total messages: 31 (8 generated)
rmcilroy
Looks good overall. Lots of mostly nitty comments. https://codereview.chromium.org/1230753004/diff/40001/src/factory.cc File src/factory.cc (right): https://codereview.chromium.org/1230753004/diff/40001/src/factory.cc#newcode880 src/factory.cc:880: length, ...
5 years, 5 months ago (2015-07-15 13:33:38 UTC) #2
oth
Thanks! All done/ack'ed. https://codereview.chromium.org/1230753004/diff/40001/src/factory.cc File src/factory.cc (right): https://codereview.chromium.org/1230753004/diff/40001/src/factory.cc#newcode880 src/factory.cc:880: length, start, pretenure), On 2015/07/15 13:33:37, ...
5 years, 5 months ago (2015-07-16 09:15:50 UTC) #3
rmcilroy
Looks pretty good to me. A couple of comments. https://codereview.chromium.org/1230753004/diff/120001/src/heap/heap.h File src/heap/heap.h (right): https://codereview.chromium.org/1230753004/diff/120001/src/heap/heap.h#newcode1684 src/heap/heap.h:1684: ...
5 years, 5 months ago (2015-07-16 10:29:45 UTC) #4
oth
Thanks, incorporated changes. https://codereview.chromium.org/1230753004/diff/120001/src/heap/heap.h File src/heap/heap.h (right): https://codereview.chromium.org/1230753004/diff/120001/src/heap/heap.h#newcode1684 src/heap/heap.h:1684: PretenureFlag pretenure = NOT_TENURED); On 2015/07/16 ...
5 years, 5 months ago (2015-07-16 13:14:39 UTC) #5
rmcilroy
Generally looks good to me with a few more comments. Ulan: could you take a ...
5 years, 5 months ago (2015-07-20 11:39:46 UTC) #7
oth
Thanks! https://codereview.chromium.org/1230753004/diff/200001/src/heap/heap.h File src/heap/heap.h (right): https://codereview.chromium.org/1230753004/diff/200001/src/heap/heap.h#newcode1685 src/heap/heap.h:1685: On 2015/07/20 11:39:46, rmcilroy wrote: > nit - ...
5 years, 5 months ago (2015-07-20 13:47:31 UTC) #8
rmcilroy
lgtm other than the dissasembly (which I think should be in a different CL). Ulan: ...
5 years, 5 months ago (2015-07-21 11:25:16 UTC) #9
ulan
Everything looks good, except: 1) Memory overhead (see comment below). 2) Please add a test ...
5 years, 5 months ago (2015-07-21 11:55:24 UTC) #10
rmcilroy
On 2015/07/21 11:55:24, ulan wrote: > Everything looks good, except: > > 1) Memory overhead ...
5 years, 5 months ago (2015-07-21 12:12:55 UTC) #11
ulan
> Stashing in a spare field sounds ideal if possible. I'll have a look, but ...
5 years, 5 months ago (2015-07-21 12:26:14 UTC) #12
Michael Starzinger
Drive-by ... How about we use the SharedFunctionInfo::function_data for that overloading? This field is currently ...
5 years, 5 months ago (2015-07-21 12:51:04 UTC) #14
oth
On 2015/07/21 12:51:04, Michael Starzinger wrote: > Drive-by ... > > How about we use ...
5 years, 5 months ago (2015-07-21 13:41:58 UTC) #15
oth
Thanks all, the latest change adds a test for BytecodeArray (which exposed a bug!) and ...
5 years, 5 months ago (2015-07-21 20:39:26 UTC) #16
Michael Starzinger
LGTM on the changes to SharedFunctionInfo. Didn't look at the rest, please wait for Ulan's ...
5 years, 5 months ago (2015-07-22 07:20:55 UTC) #17
rmcilroy
https://codereview.chromium.org/1230753004/diff/240001/src/objects-debug.cc File src/objects-debug.cc (right): https://codereview.chromium.org/1230753004/diff/240001/src/objects-debug.cc#newcode552 src/objects-debug.cc:552: VerifyObjectField(kFunctionDataOffset); Could you add a CHECK here that kFunctionDataOffset ...
5 years, 5 months ago (2015-07-22 07:44:01 UTC) #18
ulan
lgtm, thanks. https://codereview.chromium.org/1230753004/diff/240001/src/types.cc File src/types.cc (right): https://codereview.chromium.org/1230753004/diff/240001/src/types.cc#newcode1 src/types.cc:1: Delete empty line.
5 years, 5 months ago (2015-07-22 08:11:59 UTC) #19
oth
Thanks all! https://codereview.chromium.org/1230753004/diff/240001/src/objects-debug.cc File src/objects-debug.cc (right): https://codereview.chromium.org/1230753004/diff/240001/src/objects-debug.cc#newcode552 src/objects-debug.cc:552: VerifyObjectField(kFunctionDataOffset); On 2015/07/22 07:44:00, rmcilroy wrote: > ...
5 years, 5 months ago (2015-07-22 08:50:00 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1230753004/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1230753004/340001
5 years, 5 months ago (2015-07-23 17:09:54 UTC) #22
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux_gcc_compile_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_gcc_compile_rel/builds/4686)
5 years, 5 months ago (2015-07-23 17:17:20 UTC) #24
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1230753004/360001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1230753004/360001
5 years, 5 months ago (2015-07-24 09:47:31 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1230753004/400001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1230753004/400001
5 years, 5 months ago (2015-07-24 11:23:18 UTC) #29
commit-bot: I haz the power
Committed patchset #21 (id:400001)
5 years, 5 months ago (2015-07-24 12:02:49 UTC) #30
commit-bot: I haz the power
5 years, 5 months ago (2015-07-24 12:03:16 UTC) #31
Message was sent while issue was closed.
Patchset 21 (id:??) landed as
https://crrev.com/cb6e7056862ee6991d3d884a92d36bebe45b8152
Cr-Commit-Position: refs/heads/master@{#29843}

Powered by Google App Engine
This is Rietveld 408576698