diff options
Diffstat (limited to 'deps/v8/src/wasm/decoder.h')
-rw-r--r-- | deps/v8/src/wasm/decoder.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/deps/v8/src/wasm/decoder.h b/deps/v8/src/wasm/decoder.h index a6ede54bec..d5c9f43c57 100644 --- a/deps/v8/src/wasm/decoder.h +++ b/deps/v8/src/wasm/decoder.h @@ -12,7 +12,7 @@ #include "src/signature.h" #include "src/utils.h" #include "src/wasm/wasm-result.h" -#include "src/zone-containers.h" +#include "src/zone/zone-containers.h" namespace v8 { namespace internal { @@ -208,6 +208,19 @@ class Decoder { // Consume {size} bytes and send them to the bit bucket, advancing {pc_}. void consume_bytes(int size) { + TRACE(" +%d %-20s: %d bytes\n", static_cast<int>(pc_ - start_), "skip", + size); + if (checkAvailable(size)) { + pc_ += size; + } else { + pc_ = limit_; + } + } + + // Consume {size} bytes and send them to the bit bucket, advancing {pc_}. + void consume_bytes(uint32_t size, const char* name = "skip") { + TRACE(" +%d %-20s: %d bytes\n", static_cast<int>(pc_ - start_), name, + size); if (checkAvailable(size)) { pc_ += size; } else { |