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

Issue 2610813009: [wasm] factor lower level utilties out of WasmFullDecoder (Closed)

Created:
3 years, 11 months ago by Mircea Trofin
Modified:
3 years, 11 months ago
Reviewers:
bradnelson
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[wasm] factor lower level utilties out of WasmFullDecoder Separated: - decoding of locals - loop assignment analysis - determination of opcode length as statics that work on a Decoder. Neither need the context of a Module, and were used in scenarios where one wasn't available either. Changed BodyLocalDecls to match the usecases for the type. In all but one (a printer), we want the list (in order of declaration, with repetitions) of types of locals. Removed a now-unnecessary constructor for the WasmFullDecoder. BUG= Review-Url: https://codereview.chromium.org/2610813009 Cr-Commit-Position: refs/heads/master@{#42115} Committed: https://chromium.googlesource.com/v8/v8/+/ccfb815c9d234da10e9071e2349c2efab54f5006

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : harden decl decoding #

Unified diffs Side-by-side diffs Delta from patch set Stats (+186 lines, -210 lines) Patch
M src/wasm/decoder.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/wasm/function-body-decoder.h View 1 chunk +4 lines, -9 lines 0 comments Download
M src/wasm/function-body-decoder.cc View 1 2 17 chunks +149 lines, -158 lines 0 comments Download
M src/wasm/wasm-interpreter.cc View 6 chunks +8 lines, -8 lines 0 comments Download
M src/wasm/wasm-objects.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/wasm/wasm-text.cc View 1 chunk +3 lines, -4 lines 0 comments Download
M test/unittests/wasm/function-body-decoder-unittest.cc View 6 chunks +20 lines, -30 lines 0 comments Download

Messages

Total messages: 21 (17 generated)
Mircea Trofin
3 years, 11 months ago (2017-01-06 19:38:40 UTC) #5
bradnelson
lgtm
3 years, 11 months ago (2017-01-06 22:23:07 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/2610813009/40001
3 years, 11 months ago (2017-01-06 22:23:19 UTC) #18
commit-bot: I haz the power
3 years, 11 months ago (2017-01-06 22:25:05 UTC) #21
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/v8/v8/+/ccfb815c9d234da10e9071e2349c2efab54...

Powered by Google App Engine
This is Rietveld 408576698