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

Unified Diff: src/wasm/ast-decoder.h

Issue 1781523002: [wasm] All strings are length-prefixed and inline (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix windows 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/compiler/wasm-compiler.cc ('k') | src/wasm/decoder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/wasm/ast-decoder.h
diff --git a/src/wasm/ast-decoder.h b/src/wasm/ast-decoder.h
index 5c0e0f3b83a8d0babe9cf2b356bd387a5e7e625b..c2dd4e2449a734ebc087555adb1be4804674590a 100644
--- a/src/wasm/ast-decoder.h
+++ b/src/wasm/ast-decoder.h
@@ -158,7 +158,7 @@ struct BranchTableOperand {
table = nullptr;
}
}
- inline uint32_t read_entry(Decoder* decoder, int i) {
+ inline uint16_t read_entry(Decoder* decoder, int i) {
titzer 2016/03/09 08:18:17 does this need a rebase?
binji 2016/03/09 18:34:17 Done.
DCHECK(i >= 0 && static_cast<uint32_t>(i) <= table_count);
return table ? decoder->read_u32(table + i * sizeof(uint32_t)) : 0;
}
« no previous file with comments | « src/compiler/wasm-compiler.cc ('k') | src/wasm/decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698