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

Issue 1709653002: [wasm] Add support for import section. (Closed)

Created:
4 years, 10 months ago by titzer
Modified:
4 years, 10 months ago
Reviewers:
bradnelson, binji
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[wasm] Add support for import section. This CL introduces an import section that names functions to be imported as well as a CallImport bytecode to call imports from this table. R=binji@chromium.org,bradnelson@chromium.org LOG=Y BUG=chromium:575167 Committed: https://crrev.com/915ae08dd5598208d6eea727ef9478a442aba290 Cr-Commit-Position: refs/heads/master@{#34157}

Patch Set 1 #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Patch Set 4 : delete the import_code vector #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+386 lines, -91 lines) Patch
M src/compiler/wasm-compiler.h View 2 chunks +2 lines, -1 line 0 comments Download
M src/compiler/wasm-compiler.cc View 1 2 5 chunks +15 lines, -9 lines 2 comments Download
M src/wasm/ast-decoder.h View 1 chunk +10 lines, -0 lines 0 comments Download
M src/wasm/ast-decoder.cc View 5 chunks +48 lines, -0 lines 0 comments Download
M src/wasm/module-decoder.cc View 2 chunks +31 lines, -0 lines 0 comments Download
M src/wasm/wasm-macro-gen.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/wasm/wasm-module.h View 1 2 8 chunks +21 lines, -4 lines 0 comments Download
M src/wasm/wasm-module.cc View 1 2 3 7 chunks +63 lines, -24 lines 0 comments Download
M src/wasm/wasm-opcodes.h View 3 chunks +4 lines, -2 lines 0 comments Download
M test/cctest/wasm/test-run-wasm-js.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
A + test/mjsunit/wasm/import-table.js View 6 chunks +28 lines, -25 lines 0 comments Download
M test/mjsunit/wasm/wasm-constants.js View 2 chunks +2 lines, -0 lines 0 comments Download
M test/unittests/wasm/ast-decoder-unittest.cc View 6 chunks +45 lines, -0 lines 0 comments Download
M test/unittests/wasm/module-decoder-unittest.cc View 12 chunks +100 lines, -23 lines 0 comments Download
M test/unittests/wasm/wasm-macro-gen-unittest.cc View 1 chunk +12 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
titzer
4 years, 10 months ago (2016-02-17 18:30:28 UTC) #1
bradnelson
lgtm https://codereview.chromium.org/1709653002/diff/20001/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (right): https://codereview.chromium.org/1709653002/diff/20001/src/wasm/wasm-module.cc#newcode309 src/wasm/wasm-module.cc:309: thrower.Error("FFI function #%d:%s is not a JSFunction.", index, ...
4 years, 10 months ago (2016-02-19 06:43:57 UTC) #2
titzer
https://codereview.chromium.org/1709653002/diff/20001/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (right): https://codereview.chromium.org/1709653002/diff/20001/src/wasm/wasm-module.cc#newcode309 src/wasm/wasm-module.cc:309: thrower.Error("FFI function #%d:%s is not a JSFunction.", index, cstr); ...
4 years, 10 months ago (2016-02-19 11:53:47 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1709653002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1709653002/60001
4 years, 10 months ago (2016-02-19 14:56:22 UTC) #6
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 10 months ago (2016-02-19 14:58:30 UTC) #7
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/915ae08dd5598208d6eea727ef9478a442aba290 Cr-Commit-Position: refs/heads/master@{#34157}
4 years, 10 months ago (2016-02-19 14:58:47 UTC) #9
binji
https://codereview.chromium.org/1709653002/diff/60001/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): https://codereview.chromium.org/1709653002/diff/60001/src/compiler/wasm-compiler.cc#newcode1512 src/compiler/wasm-compiler.cc:1512: wasm::FunctionSig* sig = module_->GetFunctionSignature(index); I think this should be ...
4 years, 10 months ago (2016-02-19 20:30:12 UTC) #10
titzer
4 years, 10 months ago (2016-02-21 09:18:36 UTC) #11
Message was sent while issue was closed.
https://codereview.chromium.org/1709653002/diff/60001/src/compiler/wasm-compi...
File src/compiler/wasm-compiler.cc (right):

https://codereview.chromium.org/1709653002/diff/60001/src/compiler/wasm-compi...
src/compiler/wasm-compiler.cc:1512: wasm::FunctionSig* sig =
module_->GetFunctionSignature(index);
On 2016/02/19 20:30:12, binji wrote:
> I think this should be GetImportSignature. I'm getting a crash in sexpr-wasm
> without it.

Good catch. https://codereview.chromium.org/1717993002/

Powered by Google App Engine
This is Rietveld 408576698