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

Issue 2717973003: [wasm] Exit loop once wasm code in JS_TO_WASM is found (Closed)

Created:
3 years, 9 months ago by Clemens Hammacher
Modified:
3 years, 9 months ago
Reviewers:
titzer, ahaas
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[wasm] Exit loop once wasm code in JS_TO_WASM is found This is a minor performance optimization. Instead of iterating the relocation information till the end, we exit the loop once we found the call to wasm code. R=titzer@chromium.org, ahaas@chromium.org Review-Url: https://codereview.chromium.org/2717973003 Cr-Commit-Position: refs/heads/master@{#43534} Committed: https://chromium.googlesource.com/v8/v8/+/9fd418b96a67f3c83e36dcc0fa274ab71d21bf56

Patch Set 1 #

Patch Set 2 : Minor fix #

Total comments: 6

Patch Set 3 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -33 lines) Patch
M src/wasm/wasm-code-specialization.cc View 3 chunks +14 lines, -17 lines 0 comments Download
M src/wasm/wasm-module.cc View 1 2 1 chunk +20 lines, -16 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 26 (17 generated)
Clemens Hammacher
3 years, 9 months ago (2017-02-27 12:46:07 UTC) #9
Clemens Hammacher
Ping
3 years, 9 months ago (2017-02-28 15:01:08 UTC) #10
titzer
https://codereview.chromium.org/2717973003/diff/20001/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (right): https://codereview.chromium.org/2717973003/diff/20001/src/wasm/wasm-module.cc#newcode863 src/wasm/wasm-module.cc:863: Code* UnwrapImportWrapper(Object* target) { any reason for dropping the ...
3 years, 9 months ago (2017-02-28 15:07:31 UTC) #11
Clemens Hammacher
https://codereview.chromium.org/2717973003/diff/20001/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (right): https://codereview.chromium.org/2717973003/diff/20001/src/wasm/wasm-module.cc#newcode863 src/wasm/wasm-module.cc:863: Code* UnwrapImportWrapper(Object* target) { On 2017/02/28 at 15:07:31, titzer ...
3 years, 9 months ago (2017-02-28 15:14:52 UTC) #12
ahaas
lgtm once Ben's comments are resolved. https://codereview.chromium.org/2717973003/diff/20001/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (right): https://codereview.chromium.org/2717973003/diff/20001/src/wasm/wasm-module.cc#newcode872 src/wasm/wasm-module.cc:872: target->kind() != Code::WASM_TO_JS_FUNCTION) ...
3 years, 9 months ago (2017-02-28 18:40:35 UTC) #13
titzer
On 2017/02/28 15:14:52, Clemens Hammacher wrote: > https://codereview.chromium.org/2717973003/diff/20001/src/wasm/wasm-module.cc > File src/wasm/wasm-module.cc (right): > > https://codereview.chromium.org/2717973003/diff/20001/src/wasm/wasm-module.cc#newcode863 ...
3 years, 9 months ago (2017-03-01 09:07:15 UTC) #14
Clemens Hammacher
Thanks for clarifying. All done. https://codereview.chromium.org/2717973003/diff/20001/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (right): https://codereview.chromium.org/2717973003/diff/20001/src/wasm/wasm-module.cc#newcode863 src/wasm/wasm-module.cc:863: Code* UnwrapImportWrapper(Object* target) { ...
3 years, 9 months ago (2017-03-01 15:31:15 UTC) #20
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/2717973003/40001
3 years, 9 months ago (2017-03-02 10:19:32 UTC) #23
commit-bot: I haz the power
3 years, 9 months ago (2017-03-02 10:21:15 UTC) #26
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/v8/v8/+/9fd418b96a67f3c83e36dcc0fa274ab71d2...

Powered by Google App Engine
This is Rietveld 408576698