Commit Graph

54 Commits

Author SHA1 Message Date
Damian Tarnawski
49da19e013 Replace Math.random with crypto.getRandomValues for _system_number 2023-10-27 12:06:35 +02:00
Damian Tarnawski
8b2f62000a Use wasmMemoryInterface for rand_bytes 2023-10-27 00:50:29 +02:00
Damian Tarnawski
11a2b2a942 Add system_random and random_bytes for js target 2023-10-27 00:05:38 +02:00
Damian Tarnawski
058065ce75 Correct loadI64 and storeI64 methods in runtime.js 2023-10-22 18:54:52 +02:00
Damian Tarnawski
c19af95db0 Fix calling time.now() in wasm js runtime 2023-10-19 18:45:04 +02:00
gingerBill
2783461e69 Merge pull request #2847 from thetarnav/js-runtime-patch
Update wasm `runtime.js`
2023-10-14 19:58:28 +01:00
Rehkitzdev
1097192554 added webgl GetParameter 2023-10-08 04:02:55 +02:00
Damian Tarnawski
ab2907cd51 Correct stripNewline function 2023-10-06 20:11:25 +02:00
Damian Tarnawski
ea8d3d4531 Define stripNewline function 2023-10-06 20:06:43 +02:00
Damian Tarnawski
256e4a0081 Don't pass true for littleEndian where it's not needed. 2023-10-06 20:03:26 +02:00
Damian Tarnawski
721c9e2c97 Fix typo 2023-10-06 17:26:39 +02:00
Damian Tarnawski
42c7e39c99 Update wasm runtime.js
- polyfill `Math.ldexp` method
- pass Math mathods streight through to exports object
  (they don't use `this`)
- Don't pass `"utf-8"` encodings to `TextEncoder` and `TextDecoder`
  (encoder doesn't take params and decoder has utf-8 as default)
2023-10-06 17:18:31 +02:00
gingerBill
b873651da7 Merge pull request #2748 from Caedo/js-events-fix
Fix issues with js events not being initialized properly
2023-08-17 16:40:54 +01:00
Caedo
b185d9e701 Remove pointer magic when creating strings 2023-08-16 20:33:17 +02:00
gingerBill
2cc22d118d Require parentheses for #align(N) 2023-08-15 14:55:02 +01:00
Caedo
1182f41f99 Fix issues with js events not being initialized properly 2023-08-15 14:56:04 +02:00
gingerBill
5a6d5374d7 Update WebGL procedures to contextless calling convention 2023-06-22 14:30:02 +01:00
gingerBill
4a75a1e839 Merge branch 'master' into separate-int-word-sizes 2023-06-06 22:42:04 +01:00
Rehkitzdev
d8752da7d5 added webgl bindFramebuffer 2023-06-02 22:19:32 +02:00
Rehkitzdev
b52bf11ea5 fixed webgl BindFramebuffer parameter 2023-05-31 21:44:30 +02:00
gingerBill
f5d9ca64f9 Begin work on new pseudo-architecture: wasm64p32 2023-04-20 12:02:32 +01:00
Dragos Popescu
adac039a2b Made most libraries panic on js targets instead of not compiling 2023-03-20 04:08:48 +01:00
Colin Davidson
7076cf69e4 fix missing wasm memory case 2022-11-18 23:41:47 -08:00
gingerBill
3b5998af12 Fix typo for pow in runtime.js 2022-09-08 14:48:37 +01:00
gingerBill
7420fbd95b Add custom event handling to wasm 2022-07-19 16:16:51 +01:00
gingerBill
9e376fbda7 Update README.md 2022-07-10 00:52:59 +01:00
gingerBill
4fac7a8f27 Update wasm/README.md 2022-06-01 10:40:59 +01:00
gingerBill
25dae06b6a Remove loader.mjs 2022-06-01 10:32:24 +01:00
gingerBill
f3432e6bb5 Rename to CreateProgramFromStrings 2022-05-21 21:31:24 +01:00
gingerBill
43b350c590 Add more procedures for window related positions 2022-05-21 21:31:05 +01:00
gingerBill
c2c66aad60 Add Context_Menu event kind; Fix event_prevent_default() 2022-05-21 17:29:19 +01:00
gingerBill
d7681d5b06 Add utilities for Rects 2022-05-21 17:24:03 +01:00
gingerBill
c902615192 Improve writeToConole logic for the console.log difference between stdout and stderr 2022-05-21 17:03:44 +01:00
gingerBill
2895830ce6 Add wasm/js/general.odin 2022-05-21 16:37:12 +01:00
gingerBill
1eef9552b4 Fix typo 2022-05-21 16:35:27 +01:00
gingerBill
577fa2d29b Update time procedures for js targets 2022-05-21 16:35:06 +01:00
gingerBill
72fcf16a39 Rename to writeToConsole 2022-05-21 16:15:20 +01:00
gingerBill
b9d523e0b2 Add color when writing to stderr 2022-05-21 16:11:10 +01:00
gingerBill
f3d225ca4f Improve addConsoleLine 2022-05-21 16:00:36 +01:00
gingerBill
d84d2f85e8 Add WebGL helper (CreateProgramHelper) 2022-05-21 15:34:12 +01:00
gingerBill
dfbe68bcfe Begin to add support for experimental wasm64 2022-05-21 13:30:43 +01:00
gingerBill
e48f41165c Begin work on Atomics for wasm32 (wait and notify intrinsics) 2022-05-21 12:58:48 +01:00
gingerBill
2612f241c9 Minor clean up 2022-05-21 12:14:12 +01:00
gingerBill
0f1153fae2 Add page_alloc and page_allocator 2022-05-21 12:11:22 +01:00
gingerBill
94fda3d48d Rename to runWasm 2022-05-21 11:41:50 +01:00
gingerBill
c20b5cbd10 Change wasm/js/runtime.mjs to a normal .js file; Add interfaces and functions to a global odin variable 2022-05-21 11:39:35 +01:00
gingerBill
3bb31093fa Add documentation for CreateCurrentContextById and SetCurrentContextById 2022-05-18 13:08:31 +01:00
gingerBill
214b43974d Add WebGL ContextAttributes 2022-05-18 13:06:29 +01:00
gingerBill
55556aea77 Add WebGL runtime into the js/runtime.mjs; Allow for multiple WebGL contexts 2022-05-18 12:31:25 +01:00
gingerBill
205aa10b88 Improve events handling 2022-05-09 22:08:14 +01:00