Diff
Modified: trunk/JSTests/ChangeLog (209327 => 209328)
--- trunk/JSTests/ChangeLog 2016-12-05 19:02:28 UTC (rev 209327)
+++ trunk/JSTests/ChangeLog 2016-12-05 19:03:25 UTC (rev 209328)
@@ -1,3 +1,14 @@
+2016-12-05 Keith Miller <[email protected]>
+
+ Add Wasm i64 to i32 conversion.
+ https://bugs.webkit.org/show_bug.cgi?id=165378
+
+ Reviewed by Filip Pizlo.
+
+ It turns out the wrap operation is just B3's Trunc.
+
+ * wasm/wasm.json:
+
2016-12-04 Keith Miller <[email protected]>
Add support for Wasm ctz and popcnt
Modified: trunk/JSTests/wasm/wasm.json (209327 => 209328)
--- trunk/JSTests/wasm/wasm.json 2016-12-05 19:02:28 UTC (rev 209327)
+++ trunk/JSTests/wasm/wasm.json 2016-12-05 19:03:25 UTC (rev 209328)
@@ -192,7 +192,7 @@
"i32.trunc_s/f64": { "category": "conversion", "value": 170, "return": ["i32"], "parameter": ["f64"], "immediate": [] },
"i32.trunc_u/f32": { "category": "conversion", "value": 169, "return": ["i32"], "parameter": ["f32"], "immediate": [] },
"i32.trunc_u/f64": { "category": "conversion", "value": 171, "return": ["i32"], "parameter": ["f64"], "immediate": [] },
- "i32.wrap/i64": { "category": "conversion", "value": 167, "return": ["i32"], "parameter": ["i64"], "immediate": [] },
+ "i32.wrap/i64": { "category": "conversion", "value": 167, "return": ["i32"], "parameter": ["i64"], "immediate": [], "b3op": "Trunc" },
"i64.trunc_s/f32": { "category": "conversion", "value": 174, "return": ["i64"], "parameter": ["f32"], "immediate": [] },
"i64.trunc_s/f64": { "category": "conversion", "value": 176, "return": ["i64"], "parameter": ["f64"], "immediate": [] },
"i64.trunc_u/f32": { "category": "conversion", "value": 175, "return": ["i64"], "parameter": ["f32"], "immediate": [] },
Modified: trunk/Source/_javascript_Core/ChangeLog (209327 => 209328)
--- trunk/Source/_javascript_Core/ChangeLog 2016-12-05 19:02:28 UTC (rev 209327)
+++ trunk/Source/_javascript_Core/ChangeLog 2016-12-05 19:03:25 UTC (rev 209328)
@@ -1,3 +1,14 @@
+2016-12-05 Keith Miller <[email protected]>
+
+ Add Wasm i64 to i32 conversion.
+ https://bugs.webkit.org/show_bug.cgi?id=165378
+
+ Reviewed by Filip Pizlo.
+
+ It turns out the wrap operation is just B3's Trunc.
+
+ * wasm/wasm.json:
+
2016-12-05 Joseph Pecoraro <[email protected]>
REGRESSION(r208985): SafariForWebKitDevelopment Symbol Not Found looking for method with WTF::Optional
Modified: trunk/Source/_javascript_Core/wasm/wasm.json (209327 => 209328)
--- trunk/Source/_javascript_Core/wasm/wasm.json 2016-12-05 19:02:28 UTC (rev 209327)
+++ trunk/Source/_javascript_Core/wasm/wasm.json 2016-12-05 19:03:25 UTC (rev 209328)
@@ -192,7 +192,7 @@
"i32.trunc_s/f64": { "category": "conversion", "value": 170, "return": ["i32"], "parameter": ["f64"], "immediate": [] },
"i32.trunc_u/f32": { "category": "conversion", "value": 169, "return": ["i32"], "parameter": ["f32"], "immediate": [] },
"i32.trunc_u/f64": { "category": "conversion", "value": 171, "return": ["i32"], "parameter": ["f64"], "immediate": [] },
- "i32.wrap/i64": { "category": "conversion", "value": 167, "return": ["i32"], "parameter": ["i64"], "immediate": [] },
+ "i32.wrap/i64": { "category": "conversion", "value": 167, "return": ["i32"], "parameter": ["i64"], "immediate": [], "b3op": "Trunc" },
"i64.trunc_s/f32": { "category": "conversion", "value": 174, "return": ["i64"], "parameter": ["f32"], "immediate": [] },
"i64.trunc_s/f64": { "category": "conversion", "value": 176, "return": ["i64"], "parameter": ["f64"], "immediate": [] },
"i64.trunc_u/f32": { "category": "conversion", "value": 175, "return": ["i64"], "parameter": ["f32"], "immediate": [] },