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

Unified Diff: src/wasm/module-decoder.cc

Issue 1776813003: adjust for wasm-demo Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/wasm/decoder.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/wasm/module-decoder.cc
diff --git a/src/wasm/module-decoder.cc b/src/wasm/module-decoder.cc
index 1236fd6982b92492722c4c7483c72797c54c0fcc..b902e56c59ab9d7b475581fa4b18b6115c7dd905 100644
--- a/src/wasm/module-decoder.cc
+++ b/src/wasm/module-decoder.cc
@@ -13,14 +13,10 @@ namespace v8 {
namespace internal {
namespace wasm {
-#if DEBUG
#define TRACE(...) \
do { \
if (FLAG_trace_wasm_decoder) PrintF(__VA_ARGS__); \
} while (false)
-#else
-#define TRACE(...)
-#endif
// The main logic for decoding the bytes of a module.
@@ -330,7 +326,7 @@ class ModuleDecoder : public Decoder {
function->local_f64_count = consume_u16("f64 count");
}
- uint16_t size = consume_u16("body size");
+ uint32_t size = consume_u32("body size");
if (ok()) {
if ((pc_ + size) > limit_) {
return error(pc_, limit_,
« no previous file with comments | « src/wasm/decoder.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698