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

Issue 1374723002: Introduce LiteralsArray to hide it's implementation. (Closed)

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

Description

Introduce LiteralsArray to hide it's implementation. The LiteralsArray will soon hold a type feedback vector. Code treats it as an ordinary fixed array, and needs to stop that. BUG= Committed: https://crrev.com/d8cdd6956a04cfcf03159ef7802c44838eee3146 Cr-Commit-Position: refs/heads/master@{#31000}

Patch Set 1 #

Patch Set 2 : Don't create the vector in this patch. #

Patch Set 3 : Ports done. #

Total comments: 13

Patch Set 4 : Addressed comments. #

Total comments: 8

Patch Set 5 : More comments. #

Total comments: 4

Patch Set 6 : Fix release build break. #

Patch Set 7 : Addressed comments. #

Patch Set 8 : REBASE. #

Patch Set 9 : Fix build break. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+185 lines, -72 lines) Patch
M src/arm/lithium-codegen-arm.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M src/arm64/lithium-codegen-arm64.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M src/code-stubs-hydrogen.cc View 2 chunks +6 lines, -4 lines 0 comments Download
M src/compiler.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M src/debug/liveedit.cc View 1 2 3 4 5 6 1 chunk +4 lines, -2 lines 0 comments Download
M src/factory.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download
M src/full-codegen/arm/full-codegen-arm.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M src/full-codegen/arm64/full-codegen-arm64.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M src/full-codegen/ia32/full-codegen-ia32.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M src/full-codegen/mips/full-codegen-mips.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M src/full-codegen/mips64/full-codegen-mips64.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M src/full-codegen/x64/full-codegen-x64.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M src/hydrogen.cc View 1 2 3 4 5 6 7 5 chunks +8 lines, -7 lines 0 comments Download
M src/ia32/lithium-codegen-ia32.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M src/mips/lithium-codegen-mips.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M src/mips64/lithium-codegen-mips64.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M src/objects.h View 1 2 3 4 5 6 7 7 chunks +41 lines, -4 lines 0 comments Download
M src/objects.cc View 1 2 3 4 5 6 7 3 chunks +15 lines, -2 lines 0 comments Download
M src/objects-inl.h View 1 2 3 4 5 6 7 3 chunks +55 lines, -3 lines 0 comments Download
M src/runtime/runtime.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M src/runtime/runtime-function.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -3 lines 0 comments Download
M src/runtime/runtime-literals.cc View 12 chunks +21 lines, -21 lines 0 comments Download
M src/runtime/runtime-regexp.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M src/x64/lithium-codegen-x64.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-heap.cc View 1 2 3 4 5 6 7 8 3 chunks +11 lines, -3 lines 0 comments Download

Messages

Total messages: 18 (6 generated)
mvstanton
Hi Igor, Here is the patch we discussed. The LiteralsArray type puts the existing vector ...
5 years, 2 months ago (2015-09-28 14:48:32 UTC) #2
mvstanton
Okay, ports komplett.
5 years, 2 months ago (2015-09-28 14:54:29 UTC) #3
Igor Sheludko
nits: https://codereview.chromium.org/1374723002/diff/40001/src/arm/lithium-codegen-arm.cc File src/arm/lithium-codegen-arm.cc (right): https://codereview.chromium.org/1374723002/diff/40001/src/arm/lithium-codegen-arm.cc#newcode5401 src/arm/lithium-codegen-arm.cc:5401: instr->hydrogen()->literal_index() + LiteralsArray::kFirstLiteralIndex); Shouldn't " + LiteralsArray::kFirstLiteralIndex" be ...
5 years, 2 months ago (2015-09-28 15:16:46 UTC) #4
mvstanton
Thanks Igor. All comments addressed. https://codereview.chromium.org/1374723002/diff/40001/src/arm/lithium-codegen-arm.cc File src/arm/lithium-codegen-arm.cc (right): https://codereview.chromium.org/1374723002/diff/40001/src/arm/lithium-codegen-arm.cc#newcode5401 src/arm/lithium-codegen-arm.cc:5401: instr->hydrogen()->literal_index() + LiteralsArray::kFirstLiteralIndex); On ...
5 years, 2 months ago (2015-09-28 16:01:33 UTC) #5
Igor Sheludko
https://codereview.chromium.org/1374723002/diff/60001/src/factory.cc File src/factory.cc (right): https://codereview.chromium.org/1374723002/diff/60001/src/factory.cc#newcode2094 src/factory.cc:2094: NewFixedArray(LiteralsArray::SizeFor(number_of_literals), pretenure); I'm afraid that here we will actually ...
5 years, 2 months ago (2015-09-28 16:35:28 UTC) #6
mvstanton
Hi Igor, Comments addressed. Thanks! --Michael https://codereview.chromium.org/1374723002/diff/60001/src/factory.cc File src/factory.cc (right): https://codereview.chromium.org/1374723002/diff/60001/src/factory.cc#newcode2094 src/factory.cc:2094: NewFixedArray(LiteralsArray::SizeFor(number_of_literals), pretenure); On ...
5 years, 2 months ago (2015-09-29 08:25:13 UTC) #7
Igor Sheludko
lgtm with nits: https://codereview.chromium.org/1374723002/diff/80001/src/factory.cc File src/factory.cc (right): https://codereview.chromium.org/1374723002/diff/80001/src/factory.cc#newcode2090 src/factory.cc:2090: Handle<LiteralsArray> Factory::NewLiteralsArray( I think we don't ...
5 years, 2 months ago (2015-09-29 08:40:42 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1374723002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1374723002/140001
5 years, 2 months ago (2015-09-29 09:43:57 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux_arm64_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_arm64_rel/builds/10055) v8_linux_arm_rel on tryserver.v8 (JOB_FAILED, ...
5 years, 2 months ago (2015-09-29 09:47:38 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1374723002/150026 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1374723002/150026
5 years, 2 months ago (2015-09-29 09:53:09 UTC) #16
commit-bot: I haz the power
Committed patchset #9 (id:150026)
5 years, 2 months ago (2015-09-29 10:15:37 UTC) #17
commit-bot: I haz the power
5 years, 2 months ago (2015-09-29 10:15:48 UTC) #18
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/d8cdd6956a04cfcf03159ef7802c44838eee3146
Cr-Commit-Position: refs/heads/master@{#31000}

Powered by Google App Engine
This is Rietveld 408576698