-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Documentation and minor tweak to allocation size limit
- Loading branch information
1 parent
9dd9718
commit 3f8a47a
Showing
8 changed files
with
40 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Supported Builtins | ||
|
||
### Standard builtin functions and objects | ||
|
||
`Reflect.ownKeys` - returns an array of keys for an object (only supported on non-array, non-function objects) | ||
|
||
## Additional builtin function and objects | ||
|
||
### vmExport(id, func) | ||
|
||
Export a function to be accessible to the host at the given ID. | ||
|
||
The ID can be any integer in the range 0 to 65535. | ||
|
||
(This function is only available at compile-time) | ||
|
||
### vmImport(id) | ||
|
||
Import a host function to be accessed by JS code in the VM. | ||
|
||
The ID can be any integer in the range 0 to 65535. | ||
|
||
(This function is only available at compile-time) | ||
|
||
### Microvium.newUint8Array(size) | ||
|
||
Create a Uint8Array buffer with the given size. Sizes up to 4095 bytes are supported. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
text data bss dec hex filename | ||
9260 0 0 9260 242c output/microvium.o | ||
9256 0 0 9256 2428 output/microvium.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters