v8/test/cctest/wasm
Clemens Hammacher 02b4d0e675 [wasm] [decoder] Merge checked_read_leb and consume_leb
Both methods decoded a LEB128 encoded integer, but only consume_leb
incremented the pc pointer accordingly.
This CL implements consume_leb by using checked_read_leb.

It also refactors a few things:
1) It removes error_pt, which was only avaible in checked_read_leb.
2) It renames the error method to errorf, since it receives a format
   string. This also avoids a name clash.
3) It implements sign extension directly in checked_read_leb instead of
   doing this in the caller.

R=ahaas@chromium.org
BUG=v8:5822

Change-Id: I8058f57418493861e5df26d4949041f6766d5138
Reviewed-on: https://chromium-review.googlesource.com/467150
Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
Reviewed-by: Andreas Haas <ahaas@chromium.org>
Cr-Commit-Position: refs/heads/master@{#44405}
2017-04-05 10:31:38 +00:00
..
OWNERS Make clemensh owner (wasm, asmjs and general) 2017-01-13 10:20:44 +00:00
test-run-wasm-64.cc [wasm] Alignment information of wasm programs cannot be trusted 2017-03-28 08:28:25 +00:00
test-run-wasm-asmjs.cc [iwyu] Pre-work for removing unallowed include macro-assembler.h -> assembler-inl.h 2017-02-23 12:10:21 +00:00
test-run-wasm-interpreter.cc [wasm] [interpreter] Fix integer underflow in mem access 2017-04-03 15:00:00 +00:00
test-run-wasm-js.cc [iwyu] Pre-work for removing unallowed include macro-assembler.h -> assembler-inl.h 2017-02-23 12:10:21 +00:00
test-run-wasm-module.cc [wasm] Module Builder v8 API: bytes passed in are owned by caller. 2017-04-04 16:22:46 +00:00
test-run-wasm-relocation.cc Disentangle assembler from isolate. 2017-03-17 11:18:06 +00:00
test-run-wasm-simd.cc MIPS[64]: Support for some SIMD operations (2) 2017-04-04 07:03:06 +00:00
test-run-wasm.cc [wasm] Alignment information of wasm programs cannot be trusted 2017-03-28 08:28:25 +00:00
test-wasm-breakpoints.cc [debugger,api] deprecate everything in v8-debug.h 2017-03-10 07:06:25 +00:00
test-wasm-interpreter-entry.cc [wasm] For wasm-interpret-all: Iterate code only once for patching 2017-03-20 16:44:02 +00:00
test-wasm-stack.cc [iwyu] Pre-work for removing unallowed include macro-assembler.h -> assembler-inl.h 2017-02-23 12:10:21 +00:00
test-wasm-trap-position.cc [wasm] Enable cctests when out of bounds trap handler is enabled 2017-03-15 01:40:09 +00:00
wasm-run-utils.h [wasm] [decoder] Merge checked_read_leb and consume_leb 2017-04-05 10:31:38 +00:00