| Index: src/asmjs/asm-wasm-builder.cc
|
| diff --git a/src/asmjs/asm-wasm-builder.cc b/src/asmjs/asm-wasm-builder.cc
|
| index 4996203ce2bba91cb888cb44c2a59f14b38e9b59..91d4a7023bb09d40483fa1ccdefddd5b92d36fac 100644
|
| --- a/src/asmjs/asm-wasm-builder.cc
|
| +++ b/src/asmjs/asm-wasm-builder.cc
|
| @@ -1092,7 +1092,7 @@ class AsmWasmBuilderImpl final : public AstVisitor<AsmWasmBuilderImpl> {
|
| // Mask bottom bits to match asm.js behavior.
|
| byte mask = static_cast<byte>(~(size - 1));
|
| RECURSE(Visit(binop->left()));
|
| - current_function_builder_->EmitWithU8(kExprI8Const, mask);
|
| + current_function_builder_->EmitI32Const(mask);
|
| current_function_builder_->Emit(kExprI32And);
|
| return;
|
| }
|
| @@ -1231,7 +1231,7 @@ class AsmWasmBuilderImpl final : public AstVisitor<AsmWasmBuilderImpl> {
|
| // if set_local(tmp, x) < 0
|
| Visit(call->arguments()->at(0));
|
| current_function_builder_->EmitTeeLocal(tmp.index());
|
| - byte code[] = {WASM_I8(0)};
|
| + byte code[] = {WASM_ZERO};
|
| current_function_builder_->EmitCode(code, sizeof(code));
|
| current_function_builder_->Emit(kExprI32LtS);
|
| current_function_builder_->EmitWithU8(kExprIf, kLocalI32);
|
|
|