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

Issue 2168183002: [wasm] Adding a convolution matrix filter test to highlight the performance advantages of JITing (Closed)

Created:
4 years, 5 months ago by ritesht
Modified:
4 years, 5 months ago
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] Adding a convolution matrix filter test to highlight the performance advantages of JITing This cl also fixes two bugs in the previous code: 1) JITed functions were not allowed access to the heap because the module instance wasn't correctly synthesized. This wasn't discovered in the previous test. 2) Decoding of functions with the JITSingleFunction opcode was off by 1 as the length of the opcode wasn't computed correctly. BUG=5044 Committed: https://crrev.com/ccfd224ec3d1d9fd3b7e577f1db91bdf1e30d1f0 Cr-Commit-Position: refs/heads/master@{#37957}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Removed unnecessary changes #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+1010 lines, -4 lines) Patch
M src/runtime/runtime-wasm.cc View 1 chunk +9 lines, -2 lines 0 comments Download
M src/wasm/ast-decoder.cc View 2 chunks +2 lines, -2 lines 1 comment Download
A test/mjsunit/wasm/filter-jit.js View 1 chunk +998 lines, -0 lines 2 comments Download
M test/mjsunit/wasm/wasm-constants.js View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 16 (8 generated)
ritesht
4 years, 5 months ago (2016-07-21 19:00:37 UTC) #3
bradnelson
Update the commit message to reflect that this fixed two bugs: * JITed functions couldn't ...
4 years, 5 months ago (2016-07-21 19:05:20 UTC) #4
ritesht
4 years, 5 months ago (2016-07-21 20:52:15 UTC) #6
bradnelson
lgtm
4 years, 5 months ago (2016-07-21 22:34:33 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2168183002/20001
4 years, 5 months ago (2016-07-21 22:34:39 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 5 months ago (2016-07-21 22:37:03 UTC) #13
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/ccfd224ec3d1d9fd3b7e577f1db91bdf1e30d1f0 Cr-Commit-Position: refs/heads/master@{#37957}
4 years, 5 months ago (2016-07-21 22:39:51 UTC) #15
Mircea Trofin
4 years, 5 months ago (2016-07-22 00:15:58 UTC) #16
Message was sent while issue was closed.
Please see comments.

An overall comment: could you clarify (maybe in subsequent checkin) 
what you're comparing JITing with, and also, what exactly does 
"performance" refer to (e.g.: time spent JIT-ing? time spent executing 
JIT-ed code? both? etc)

Maybe I missed something, but the test seems to be just testing functionality,
not performance. Was the intent to just add a functional 
test?

If your purpose is to perform runtime measurements, we should do that
in a benchmark.

https://codereview.chromium.org/2168183002/diff/20001/src/wasm/ast-decoder.cc
File src/wasm/ast-decoder.cc (left):

https://codereview.chromium.org/2168183002/diff/20001/src/wasm/ast-decoder.cc...
src/wasm/ast-decoder.cc:20: 
why remove this space?

https://codereview.chromium.org/2168183002/diff/20001/test/mjsunit/wasm/filte...
File test/mjsunit/wasm/filter-jit.js (right):

https://codereview.chromium.org/2168183002/diff/20001/test/mjsunit/wasm/filte...
test/mjsunit/wasm/filter-jit.js:2: // Use of this source code is governed by a
BSD-style license that can be
Copyright 2016, not 2015

https://codereview.chromium.org/2168183002/diff/20001/test/mjsunit/wasm/filte...
test/mjsunit/wasm/filter-jit.js:31: kExprSetLocal, 06,
I'm concerned this will be tricky to maintain. A few suggestions:
- factor the instruction stream into a few building block functions, like
"dereference array"; or

- build the wasm part from C or from wast.

Powered by Google App Engine
This is Rietveld 408576698