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

Unified Diff: src/asmjs/asm-parser.cc

Issue 2771183002: [wasm][asm.js] Fix and enable several asm.js tests with the new parser. (Closed)
Patch Set: Created 3 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 | « no previous file | src/asmjs/asm-scanner.cc » ('j') | src/wasm/wasm-module-builder.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/asmjs/asm-parser.cc
diff --git a/src/asmjs/asm-parser.cc b/src/asmjs/asm-parser.cc
index 59745c191de58d175f74820421d266403568142e..9134705126bfc4784c54448d8a769af66fe1e566 100644
--- a/src/asmjs/asm-parser.cc
+++ b/src/asmjs/asm-parser.cc
@@ -855,7 +855,7 @@ void AsmJsParser::ValidateFunctionLocals(
info->type = AsmType::Double();
info->index = static_cast<uint32_t>(param_count + locals->size());
locals->push_back(kWasmF64);
- byte code[] = {WASM_F64(dvalue)};
+ byte code[] = {WASM_F64(-dvalue)};
current_function_builder_->EmitCode(code, sizeof(code));
current_function_builder_->EmitSetLocal(info->index);
} else if (CheckForUnsigned(&uvalue)) {
« no previous file with comments | « no previous file | src/asmjs/asm-scanner.cc » ('j') | src/wasm/wasm-module-builder.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698