lichenscript
Advanced tools
Sorry, the diff of this file is not supported yet
+4
-4
| { | ||
| "name": "lichenscript", | ||
| "description": "The compiler of LichenScript", | ||
| "version": "0.6.0", | ||
| "version": "0.6.3", | ||
| "homepage": "https://lichenscript.com/", | ||
@@ -19,6 +19,6 @@ "license": "Apache-2.0", | ||
| "optionalDependencies": { | ||
| "lichenscript-darwin-x64": "0.6.0", | ||
| "lichenscript-linux-x64": "0.6.0", | ||
| "lichenscript-darwin-arm64": "0.6.0" | ||
| "lichenscript-darwin-x64": "0.6.3", | ||
| "lichenscript-linux-x64": "0.6.3", | ||
| "lichenscript-darwin-arm64": "0.6.3" | ||
| } | ||
| } |
+1
-1
|  | ||
|  | ||
| [](https://www.npmjs.com/package/lichenscript) | ||
@@ -4,0 +4,0 @@  |
@@ -11,14 +11,2 @@ | ||
| function i32_add(a, b) { | ||
| a = a|0; // give hinting to v8 | ||
| b = b|0; | ||
| a += b; | ||
| if (a > i32_max) { | ||
| return (a - i32_max) + i32_min - 1; | ||
| } | ||
| return a|0; | ||
| } | ||
| function i64_add(a, b) { | ||
@@ -32,12 +20,2 @@ a += b; | ||
| function i32_sub(a, b) { | ||
| a = a|0; // give hinting to v8 | ||
| b = b|0; | ||
| a -= b; | ||
| if (a < i32_min) { | ||
| return (a - i32_min) + i32_max + 1; | ||
| } | ||
| return a|0; | ||
| } | ||
| function i64_sub(a, b) { | ||
@@ -51,7 +29,3 @@ a -= b; | ||
| function i32_mult(a, b) { | ||
| a = a|0; // give hinting to v8 | ||
| b = b|0; | ||
| return (a * b)|0; | ||
| } | ||
| var i32_mult = Math.imul; | ||
@@ -66,32 +40,2 @@ function i64_mult(a, b) { | ||
| function i32_div(a, b) { | ||
| a = a|0; // give hinting to v8 | ||
| b = b|0; | ||
| return (a / b)|0; | ||
| } | ||
| function i32_lshift(a, b) { | ||
| a = a|0; // give hinting to v8 | ||
| b = b|0; | ||
| return (a << b)|0; | ||
| } | ||
| function i32_rshift(a, b) { | ||
| a = a|0; // give hinting to v8 | ||
| b = b|0; | ||
| return (a >> b)|0; | ||
| } | ||
| function i32_mod(a, b) { | ||
| a = a|0; // give hinting to v8 | ||
| b = b|0; | ||
| return (a % b)|0; | ||
| } | ||
| function i32_mod(a, b) { | ||
| a = a|0; // give hinting to v8 | ||
| b = b|0; | ||
| return (a % b)|0; | ||
| } | ||
| function i32_bit_not(e) { | ||
@@ -98,0 +42,0 @@ e = ~e; |
Sorry, the diff of this file is too big to display
8
14.29%121383
-0.35%312
-13.09%