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

Issue 2692943002: [wasm] Introduce EmitVarInt and EmitWithVarInt (Closed)

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

Description

[wasm] Introduce EmitVarInt and EmitWithVarInt Use them to encode int32 constants properly. This reduces the generated wasm size in the unity benchmark from 21.6 MB to 16.8 MB (-22.2%). This hopefully also translates to increased performance especially on mobile because of lower memory usage. R=bradnelson@chromium.org, titzer@chromium.org Review-Url: https://codereview.chromium.org/2692943002 Cr-Commit-Position: refs/heads/master@{#43200} Committed: https://chromium.googlesource.com/v8/v8/+/494fd7156b36213bc7718bc7177424596013f4ba

Patch Set 1 #

Total comments: 2

Patch Set 2 : Use bit_cast instead of static_cast #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -28 lines) Patch
M src/asmjs/asm-wasm-builder.cc View 1 1 chunk +8 lines, -17 lines 0 comments Download
M src/wasm/wasm-module-builder.h View 2 chunks +2 lines, -0 lines 0 comments Download
M src/wasm/wasm-module-builder.cc View 3 chunks +17 lines, -11 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 22 (15 generated)
Clemens Hammacher
3 years, 10 months ago (2017-02-13 18:30:57 UTC) #1
titzer
lgtm with nit https://codereview.chromium.org/2692943002/diff/1/src/asmjs/asm-wasm-builder.cc File src/asmjs/asm-wasm-builder.cc (right): https://codereview.chromium.org/2692943002/diff/1/src/asmjs/asm-wasm-builder.cc#newcode691 src/asmjs/asm-wasm-builder.cc:691: current_function_builder_->EmitI32Const(static_cast<int32_t>(u)); static_cast<int32_t> isn't really safe. should ...
3 years, 10 months ago (2017-02-13 18:49:36 UTC) #5
Clemens Hammacher
https://codereview.chromium.org/2692943002/diff/1/src/asmjs/asm-wasm-builder.cc File src/asmjs/asm-wasm-builder.cc (right): https://codereview.chromium.org/2692943002/diff/1/src/asmjs/asm-wasm-builder.cc#newcode691 src/asmjs/asm-wasm-builder.cc:691: current_function_builder_->EmitI32Const(static_cast<int32_t>(u)); On 2017/02/13 at 18:49:36, titzer wrote: > static_cast<int32_t> ...
3 years, 10 months ago (2017-02-13 18:56:02 UTC) #10
bradnelson
lgtm
3 years, 10 months ago (2017-02-13 20:54:06 UTC) #14
commit-bot: I haz the power
This CL has an open dependency (Issue 2694633003 Patch 1). Please resolve the dependency and ...
3 years, 10 months ago (2017-02-13 20:54:15 UTC) #17
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/2692943002/20001
3 years, 10 months ago (2017-02-14 18:13:57 UTC) #19
commit-bot: I haz the power
3 years, 10 months ago (2017-02-14 18:15:38 UTC) #22
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/v8/v8/+/494fd7156b36213bc7718bc717742459601...

Powered by Google App Engine
This is Rietveld 408576698