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

Issue 1921203002: Add new relocation type WASM_MEMORY_SIZE_REFERENCE, use relocatable pointers to update wasm memory … (Closed)

Created:
4 years, 8 months ago by gdeepti
Modified:
4 years, 7 months ago
Reviewers:
titzer, bradnelson, Yang
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

Add new relocation type WASM_MEMORY_SIZE_REFERENCE, use relocatable pointers to update wasm memory size references in generated code. - Add new RelocInfo mode WASM_MEMORY_SIZE_REFERENCE in the assembler and add relocation information to immediates in compare instructions. - Use relocatable constants for MemSize/BoundsCheck in the wasm compiler R=titzer@chromium.org, yangguo@chromium.org, bradnelson@chromium.org Committed: https://crrev.com/117a56b7c2a88ab2b2f25fad88517d72f5edbac9 Cr-Commit-Position: refs/heads/master@{#36044}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Add compiler test #

Total comments: 4

Patch Set 3 : Ben's review #

Patch Set 4 : Fix constructors, additional DCHECKs #

Patch Set 5 : Fix mips/mips64 build #

Total comments: 6

Patch Set 6 : Ben's review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+563 lines, -157 lines) Patch
M src/arm/assembler-arm.cc View 1 2 3 4 5 1 chunk +36 lines, -0 lines 0 comments Download
M src/arm/assembler-arm-inl.h View 1 2 3 4 5 2 chunks +0 lines, -18 lines 0 comments Download
M src/arm64/assembler-arm64.cc View 1 2 3 4 5 1 chunk +35 lines, -0 lines 0 comments Download
M src/arm64/assembler-arm64-inl.h View 1 2 3 4 5 2 chunks +0 lines, -18 lines 0 comments Download
M src/assembler.h View 1 2 3 4 5 5 chunks +12 lines, -6 lines 0 comments Download
M src/assembler.cc View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M src/compiler/arm/code-generator-arm.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M src/compiler/arm64/code-generator-arm64.cc View 1 2 3 4 5 1 chunk +6 lines, -1 line 0 comments Download
M src/compiler/common-operator.h View 1 2 3 1 chunk +8 lines, -2 lines 0 comments Download
M src/compiler/common-operator.cc View 1 2 3 4 5 3 chunks +9 lines, -9 lines 0 comments Download
M src/compiler/ia32/code-generator-ia32.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M src/compiler/instruction.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M src/compiler/instruction.cc View 1 2 3 1 chunk +10 lines, -7 lines 0 comments Download
M src/compiler/x64/code-generator-x64.cc View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M src/ia32/assembler-ia32.cc View 1 2 3 4 5 1 chunk +36 lines, -0 lines 0 comments Download
M src/ia32/assembler-ia32-inl.h View 1 2 3 4 5 2 chunks +0 lines, -20 lines 0 comments Download
M src/mips/assembler-mips.cc View 1 2 3 4 5 1 chunk +36 lines, -0 lines 0 comments Download
M src/mips/assembler-mips-inl.h View 1 2 3 4 5 2 chunks +0 lines, -18 lines 0 comments Download
M src/mips64/assembler-mips64.cc View 1 2 3 4 5 1 chunk +37 lines, -0 lines 0 comments Download
M src/mips64/assembler-mips64-inl.h View 1 2 3 4 5 2 chunks +0 lines, -18 lines 0 comments Download
M src/x64/assembler-x64.h View 1 2 3 4 5 3 chunks +9 lines, -1 line 0 comments Download
M src/x64/assembler-x64.cc View 1 2 3 4 5 3 chunks +48 lines, -3 lines 0 comments Download
M src/x64/assembler-x64-inl.h View 1 2 3 4 5 2 chunks +0 lines, -20 lines 0 comments Download
M test/cctest/compiler/test-run-wasm-machops.cc View 1 2 2 chunks +29 lines, -4 lines 0 comments Download
M test/cctest/test-run-wasm-relocation-arm.cc View 2 chunks +56 lines, -2 lines 0 comments Download
M test/cctest/test-run-wasm-relocation-arm64.cc View 2 chunks +58 lines, -2 lines 0 comments Download
M test/cctest/test-run-wasm-relocation-ia32.cc View 3 chunks +64 lines, -3 lines 0 comments Download
M test/cctest/test-run-wasm-relocation-x64.cc View 2 chunks +60 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (7 generated)
gdeepti
https://codereview.chromium.org/1921203002/diff/1/src/assembler.h File src/assembler.h (right): https://codereview.chromium.org/1921203002/diff/1/src/assembler.h#newcode389 src/assembler.h:389: WASM_MEMORY_SIZE_REFERENCE, Removing wasm RelocInfo modes from the shareable relocation ...
4 years, 8 months ago (2016-04-26 08:09:36 UTC) #1
gdeepti
4 years, 8 months ago (2016-04-26 17:30:56 UTC) #4
titzer
https://codereview.chromium.org/1921203002/diff/20001/src/arm/assembler-arm-inl.h File src/arm/assembler-arm-inl.h (right): https://codereview.chromium.org/1921203002/diff/20001/src/arm/assembler-arm-inl.h#newcode127 src/arm/assembler-arm-inl.h:127: Address old_base, Address new_base, int32_t old_size, int32_t new_size, Let's ...
4 years, 7 months ago (2016-04-28 11:40:19 UTC) #5
gdeepti
https://codereview.chromium.org/1921203002/diff/20001/src/arm/assembler-arm-inl.h File src/arm/assembler-arm-inl.h (right): https://codereview.chromium.org/1921203002/diff/20001/src/arm/assembler-arm-inl.h#newcode127 src/arm/assembler-arm-inl.h:127: Address old_base, Address new_base, int32_t old_size, int32_t new_size, On ...
4 years, 7 months ago (2016-05-02 23:56:09 UTC) #7
titzer
lgtm other than below comments https://codereview.chromium.org/1921203002/diff/80001/src/arm/assembler-arm-inl.h File src/arm/assembler-arm-inl.h (right): https://codereview.chromium.org/1921203002/diff/80001/src/arm/assembler-arm-inl.h#newcode126 src/arm/assembler-arm-inl.h:126: void RelocInfo::update_wasm_memory_reference( Can we ...
4 years, 7 months ago (2016-05-04 11:21:23 UTC) #8
gdeepti
https://codereview.chromium.org/1921203002/diff/80001/src/arm/assembler-arm-inl.h File src/arm/assembler-arm-inl.h (right): https://codereview.chromium.org/1921203002/diff/80001/src/arm/assembler-arm-inl.h#newcode126 src/arm/assembler-arm-inl.h:126: void RelocInfo::update_wasm_memory_reference( On 2016/05/04 11:21:22, titzer wrote: > Can ...
4 years, 7 months ago (2016-05-04 20:14:52 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1921203002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1921203002/100001
4 years, 7 months ago (2016-05-04 20:15:08 UTC) #12
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 7 months ago (2016-05-04 20:19:34 UTC) #14
commit-bot: I haz the power
4 years, 7 months ago (2016-05-04 20:21:02 UTC) #16
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/117a56b7c2a88ab2b2f25fad88517d72f5edbac9
Cr-Commit-Position: refs/heads/master@{#36044}

Powered by Google App Engine
This is Rietveld 408576698