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

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

Issue 2264913002: [wasm] asm.js - Remove Wasm.instantiateModuleFromAsm, use asm.js directly. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix Created 4 years, 4 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 | « test/mjsunit/wasm/asm-wasm.js ('k') | test/mjsunit/wasm/asm-wasm-deopt.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/wasm/asm-wasm-copy.js
diff --git a/test/mjsunit/wasm/asm-wasm-copy.js b/test/mjsunit/wasm/asm-wasm-copy.js
index 35c5f76ef10e6c37cedd9be2f16b8ba70341c1fd..149196e1b9b6afe9fb5b20e4c6bc2841c72e0ea3 100644
--- a/test/mjsunit/wasm/asm-wasm-copy.js
+++ b/test/mjsunit/wasm/asm-wasm-copy.js
@@ -22,6 +22,7 @@
}
return { func: func };
}
- var wasm = Wasm.instantiateModuleFromAsm(asmModule.toString());
- assertEquals(asmModule().func(), wasm.func());
+ var wasm = asmModule();
+ var js = eval('(' + asmModule.toString().replace('use asm', '') + ')')();
+ assertEquals(js.func(), wasm.func());
})();
« no previous file with comments | « test/mjsunit/wasm/asm-wasm.js ('k') | test/mjsunit/wasm/asm-wasm-deopt.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698