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

Issue 1759873002: Assembler changes for enabling GrowHeap in Wasm (Closed)

Created:
4 years, 9 months ago by gdeepti1
Modified:
4 years, 9 months ago
CC:
v8-reviews_googlegroups.com, v8-mips-ports_googlegroups.com, v8-x87-ports_googlegroups.com, v8-ppc-ports_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Assembler changes for enabling GrowHeap in Wasm - New RelocInfo mode WASM_MEMORY_REFERENCE as a marker for wasm code objects that need to be relocated on a heap change - RelocInfo mode recorded for immediates that use the memory buffer as base - Tests to verify address patching works BUG= Committed: https://crrev.com/cc815b69c17da368107ed77306a5bb161170c834 Cr-Commit-Position: refs/heads/master@{#34831} Committed: https://crrev.com/e1a7c1e76c150713339bc5ba4ce84d7eb6a5420a Cr-Commit-Position: refs/heads/master@{#34836}

Patch Set 1 #

Patch Set 2 : Adding arm, arm64 tests #

Patch Set 3 : Adding x64 test #

Total comments: 21

Patch Set 4 : Review comments, fix x64 test #

Patch Set 5 : Review changes #

Patch Set 6 : #

Patch Set 7 : #

Total comments: 4

Patch Set 8 : More review changes #

Patch Set 9 : Fix comments #

Total comments: 5

Patch Set 10 : Fixes for x64 from Yang's review #

Patch Set 11 : Fix update method for ia32/x64 #

Total comments: 12

Patch Set 12 : Review comments #

Total comments: 6

Patch Set 13 : Review changes #

Total comments: 1

Patch Set 14 : Fix compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+482 lines, -13 lines) Patch
M src/arm/assembler-arm-inl.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +16 lines, -0 lines 0 comments Download
M src/arm64/assembler-arm64.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M src/arm64/assembler-arm64-inl.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +16 lines, -0 lines 0 comments Download
M src/assembler.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +11 lines, -1 line 0 comments Download
M src/assembler.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -0 lines 0 comments Download
M src/ia32/assembler-ia32.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M src/ia32/assembler-ia32-inl.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +22 lines, -0 lines 0 comments Download
M src/mips/assembler-mips-inl.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +16 lines, -0 lines 0 comments Download
M src/mips64/assembler-mips64-inl.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +16 lines, -0 lines 0 comments Download
M src/x64/assembler-x64.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -2 lines 0 comments Download
M src/x64/assembler-x64.cc View 1 2 3 4 5 6 1 chunk +6 lines, -5 lines 0 comments Download
M src/x64/assembler-x64-inl.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +18 lines, -0 lines 0 comments Download
M src/x64/macro-assembler-x64.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M src/x64/macro-assembler-x64.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +8 lines, -0 lines 0 comments Download
M test/cctest/cctest.gyp View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +8 lines, -4 lines 0 comments Download
A test/cctest/test-run-wasm-relocation-arm.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +80 lines, -0 lines 0 comments Download
A test/cctest/test-run-wasm-relocation-arm64.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +82 lines, -0 lines 0 comments Download
A test/cctest/test-run-wasm-relocation-ia32.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +89 lines, -0 lines 0 comments Download
A test/cctest/test-run-wasm-relocation-x64.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +83 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 44 (13 generated)
gdeepti1
4 years, 9 months ago (2016-03-03 01:36:08 UTC) #2
gdeepti1
4 years, 9 months ago (2016-03-03 01:36:14 UTC) #3
Yang
https://codereview.chromium.org/1759873002/diff/40001/src/assembler.h File src/assembler.h (right): https://codereview.chromium.org/1759873002/diff/40001/src/assembler.h#newcode389 src/assembler.h:389: // objects Can you change the comment to say ...
4 years, 9 months ago (2016-03-03 06:21:56 UTC) #4
gdeepti1
https://codereview.chromium.org/1759873002/diff/40001/src/assembler.h File src/assembler.h (right): https://codereview.chromium.org/1759873002/diff/40001/src/assembler.h#newcode389 src/assembler.h:389: // objects On 2016/03/03 06:21:56, Yang wrote: > Can ...
4 years, 9 months ago (2016-03-03 18:00:10 UTC) #5
titzer
https://codereview.chromium.org/1759873002/diff/40001/src/arm/assembler-arm-inl.h File src/arm/assembler-arm-inl.h (right): https://codereview.chromium.org/1759873002/diff/40001/src/arm/assembler-arm-inl.h#newcode69 src/arm/assembler-arm-inl.h:69: Address RelocInfo::target_address() { I think we should add new ...
4 years, 9 months ago (2016-03-03 18:11:59 UTC) #6
gdeepti1
https://codereview.chromium.org/1759873002/diff/40001/src/arm/assembler-arm-inl.h File src/arm/assembler-arm-inl.h (right): https://codereview.chromium.org/1759873002/diff/40001/src/arm/assembler-arm-inl.h#newcode69 src/arm/assembler-arm-inl.h:69: Address RelocInfo::target_address() { On 2016/03/03 18:11:59, titzer wrote: > ...
4 years, 9 months ago (2016-03-03 22:59:16 UTC) #7
Yang
On 2016/03/03 22:59:16, gdeepti1 wrote: > https://codereview.chromium.org/1759873002/diff/40001/src/arm/assembler-arm-inl.h > File src/arm/assembler-arm-inl.h (right): > > https://codereview.chromium.org/1759873002/diff/40001/src/arm/assembler-arm-inl.h#newcode69 > ...
4 years, 9 months ago (2016-03-07 06:37:42 UTC) #9
gdeepti1
On 2016/03/07 06:37:42, Yang wrote: > On 2016/03/03 22:59:16, gdeepti1 wrote: > > > https://codereview.chromium.org/1759873002/diff/40001/src/arm/assembler-arm-inl.h ...
4 years, 9 months ago (2016-03-07 06:48:46 UTC) #10
Yang
On 2016/03/07 06:48:46, gdeepti1 wrote: > On 2016/03/07 06:37:42, Yang wrote: > > On 2016/03/03 ...
4 years, 9 months ago (2016-03-07 06:50:13 UTC) #11
Yang
On 2016/03/07 06:50:13, Yang wrote: > On 2016/03/07 06:48:46, gdeepti1 wrote: > > On 2016/03/07 ...
4 years, 9 months ago (2016-03-07 06:51:09 UTC) #12
titzer
https://codereview.chromium.org/1759873002/diff/140001/src/assembler.h File src/assembler.h (right): https://codereview.chromium.org/1759873002/diff/140001/src/assembler.h#newcode388 src/assembler.h:388: // To relocate pointers into the wasm heap embedded ...
4 years, 9 months ago (2016-03-07 19:39:24 UTC) #13
gdeepti1
On 2016/03/07 06:51:09, Yang wrote: > On 2016/03/07 06:50:13, Yang wrote: > > On 2016/03/07 ...
4 years, 9 months ago (2016-03-08 03:38:02 UTC) #14
gdeepti1
https://codereview.chromium.org/1759873002/diff/140001/src/assembler.h File src/assembler.h (right): https://codereview.chromium.org/1759873002/diff/140001/src/assembler.h#newcode388 src/assembler.h:388: // To relocate pointers into the wasm heap embedded ...
4 years, 9 months ago (2016-03-08 03:38:51 UTC) #15
Yang
https://codereview.chromium.org/1759873002/diff/180001/src/arm64/assembler-arm64-inl.h File src/arm64/assembler-arm64-inl.h (right): https://codereview.chromium.org/1759873002/diff/180001/src/arm64/assembler-arm64-inl.h#newcode52 src/arm64/assembler-arm64-inl.h:52: Assembler::set_target_address_at(isolate_, pc_, host_, updated_reference, There doesn't seem to be ...
4 years, 9 months ago (2016-03-08 05:41:50 UTC) #16
gdeepti1
https://codereview.chromium.org/1759873002/diff/180001/src/arm64/assembler-arm64-inl.h File src/arm64/assembler-arm64-inl.h (right): https://codereview.chromium.org/1759873002/diff/180001/src/arm64/assembler-arm64-inl.h#newcode52 src/arm64/assembler-arm64-inl.h:52: Assembler::set_target_address_at(isolate_, pc_, host_, updated_reference, On 2016/03/08 05:41:50, Yang wrote: ...
4 years, 9 months ago (2016-03-09 04:01:43 UTC) #18
gdeepti1
https://codereview.chromium.org/1759873002/diff/180001/src/arm64/assembler-arm64-inl.h File src/arm64/assembler-arm64-inl.h (right): https://codereview.chromium.org/1759873002/diff/180001/src/arm64/assembler-arm64-inl.h#newcode52 src/arm64/assembler-arm64-inl.h:52: Assembler::set_target_address_at(isolate_, pc_, host_, updated_reference, On 2016/03/09 04:01:43, gdeepti1 wrote: ...
4 years, 9 months ago (2016-03-11 03:55:51 UTC) #19
bradn
ping?
4 years, 9 months ago (2016-03-13 18:20:58 UTC) #21
titzer
Looking mostly good. https://codereview.chromium.org/1759873002/diff/220001/src/arm/assembler-arm-inl.h File src/arm/assembler-arm-inl.h (right): https://codereview.chromium.org/1759873002/diff/220001/src/arm/assembler-arm-inl.h#newcode125 src/arm/assembler-arm-inl.h:125: DCHECK(old_size <= new_size); No need to ...
4 years, 9 months ago (2016-03-14 15:23:39 UTC) #22
gdeepti1
https://codereview.chromium.org/1759873002/diff/220001/src/arm/assembler-arm-inl.h File src/arm/assembler-arm-inl.h (right): https://codereview.chromium.org/1759873002/diff/220001/src/arm/assembler-arm-inl.h#newcode125 src/arm/assembler-arm-inl.h:125: DCHECK(old_size <= new_size); On 2016/03/14 15:23:38, titzer wrote: > ...
4 years, 9 months ago (2016-03-14 20:08:14 UTC) #23
Yang
LGTM if comments are addressed. https://codereview.chromium.org/1759873002/diff/240001/src/arm/assembler-arm-inl.h File src/arm/assembler-arm-inl.h (right): https://codereview.chromium.org/1759873002/diff/240001/src/arm/assembler-arm-inl.h#newcode126 src/arm/assembler-arm-inl.h:126: wasm_memory_reference() <= old_base + ...
4 years, 9 months ago (2016-03-15 07:44:18 UTC) #24
gdeepti1
https://codereview.chromium.org/1759873002/diff/240001/src/arm/assembler-arm-inl.h File src/arm/assembler-arm-inl.h (right): https://codereview.chromium.org/1759873002/diff/240001/src/arm/assembler-arm-inl.h#newcode126 src/arm/assembler-arm-inl.h:126: wasm_memory_reference() <= old_base + old_size); On 2016/03/15 07:44:18, Yang ...
4 years, 9 months ago (2016-03-16 06:05:26 UTC) #25
Yang
On 2016/03/16 06:05:26, gdeepti1 wrote: > https://codereview.chromium.org/1759873002/diff/240001/src/arm/assembler-arm-inl.h > File src/arm/assembler-arm-inl.h (right): > > https://codereview.chromium.org/1759873002/diff/240001/src/arm/assembler-arm-inl.h#newcode126 > ...
4 years, 9 months ago (2016-03-16 06:11:43 UTC) #26
titzer
lgtm
4 years, 9 months ago (2016-03-16 09:26:59 UTC) #27
Marija Antic
https://codereview.chromium.org/1759873002/diff/260001/test/cctest/cctest.gyp File test/cctest/cctest.gyp (right): https://codereview.chromium.org/1759873002/diff/260001/test/cctest/cctest.gyp#newcode272 test/cctest/cctest.gyp:272: 'test-macro-assembler-mips64.cc' Tests ported for MIPS https://codereview.chromium.org/1775443002/
4 years, 9 months ago (2016-03-16 12:50:53 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1759873002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1759873002/260001
4 years, 9 months ago (2016-03-16 17:07:46 UTC) #31
commit-bot: I haz the power
Committed patchset #13 (id:260001)
4 years, 9 months ago (2016-03-16 17:10:11 UTC) #33
commit-bot: I haz the power
Patchset 13 (id:??) landed as https://crrev.com/cc815b69c17da368107ed77306a5bb161170c834 Cr-Commit-Position: refs/heads/master@{#34831}
4 years, 9 months ago (2016-03-16 17:11:54 UTC) #35
Michael Achenbach
A revert of this CL (patchset #13 id:260001) has been created in https://codereview.chromium.org/1808823002/ by machenbach@chromium.org. ...
4 years, 9 months ago (2016-03-16 17:27:27 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1759873002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1759873002/280001
4 years, 9 months ago (2016-03-16 17:49:38 UTC) #40
commit-bot: I haz the power
Committed patchset #14 (id:280001)
4 years, 9 months ago (2016-03-16 18:13:52 UTC) #42
commit-bot: I haz the power
4 years, 9 months ago (2016-03-16 18:15:58 UTC) #44
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/e1a7c1e76c150713339bc5ba4ce84d7eb6a5420a
Cr-Commit-Position: refs/heads/master@{#34836}

Powered by Google App Engine
This is Rietveld 408576698