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

Unified Diff: test/mjsunit/wasm/asm-wasm.js

Issue 1574263002: [wasm] Fix empty asm.js function in ASM->WASM. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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/encoder.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/wasm/asm-wasm.js
diff --git a/test/mjsunit/wasm/asm-wasm.js b/test/mjsunit/wasm/asm-wasm.js
index 7f187ada27d0e2f1f4eb2e64830c218fc5ddbb46..7c1da6ef03008b6f8b913af9162028e1f9ee450e 100644
--- a/test/mjsunit/wasm/asm-wasm.js
+++ b/test/mjsunit/wasm/asm-wasm.js
@@ -4,6 +4,19 @@
// Flags: --expose-wasm
+function EmptyTest() {
+ "use asm";
+ function caller() {
+ empty();
+ return 11;
+ }
+ function empty() {
+ }
+ return {caller: caller};
+}
+
+assertEquals(11, WASM.asmCompileRun(EmptyTest.toString()));
+
function IntTest() {
"use asm";
function sum(a, b) {
« no previous file with comments | « src/wasm/encoder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698