summaryrefslogtreecommitdiff
path: root/src/wasm-binary-writer.c
diff options
context:
space:
mode:
authorBen Smith <binji@chromium.org>2015-12-04 17:38:05 -0800
committerBen Smith <binji@chromium.org>2015-12-11 12:10:15 -0800
commitf22485474182e734ac963234daf81ed63d5c7891 (patch)
tree24d06fcdfc25c9d0a34bd1f38fd4f2425954df70 /src/wasm-binary-writer.c
parent74767ab12b4908359dcdebe887efadbee1d0f114 (diff)
downloadwabt-f22485474182e734ac963234daf81ed63d5c7891.tar.gz
wabt-f22485474182e734ac963234daf81ed63d5c7891.tar.bz2
wabt-f22485474182e734ac963234daf81ed63d5c7891.zip
update v8-native; fixes unreachable and mem OOB
Diffstat (limited to 'src/wasm-binary-writer.c')
-rw-r--r--src/wasm-binary-writer.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/wasm-binary-writer.c b/src/wasm-binary-writer.c
index 30857e4d..168a1b41 100644
--- a/src/wasm-binary-writer.c
+++ b/src/wasm-binary-writer.c
@@ -370,10 +370,6 @@ static int is_power_of_two(uint32_t x) {
static uint32_t log_two_u32(uint32_t x) {
if (!x)
return 0;
- /* TODO(binji): v8-native is giving "out of bounds" errors when the memory
- size is exactly a power of two. Bump it to the next power of two, for now */
- if (is_power_of_two(x))
- x++;
return sizeof(unsigned int) * 8 - __builtin_clz(x - 1);
}