Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F4418305
vm.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
989 B
Referenced Files
None
Subscribers
None
vm.h
View Options
#ifndef SILVER_VM_H
#define SILVER_VM_H
#include
"types.h"
typedef
struct
sv_vm
sv_vm_t
;
typedef
struct
sv_func
sv_func_t
;
size_t
os_thread_stack_size
(
void
);
typedef
enum
{
SV_VM_MAIN
,
SV_VM_ASYNC
,
}
sv_vm_kind_t
;
extern
int
sv_user_stack_size_kb
;
sv_vm_t
*
sv_vm_create
(
ant_t
*
js
,
sv_vm_kind_t
kind
);
void
sv_vm_destroy
(
sv_vm_t
*
vm
);
void
sv_vm_limits
(
sv_vm_kind_t
kind
,
int
*
out_stack_size
,
int
*
out_max_frames
);
void
sv_vm_visit_frame_funcs
(
sv_vm_t
*
vm
,
void
(
*
visitor
)(
void
*
,
sv_func_t
*
),
void
*
ctx
);
void
sv_disasm
(
ant_t
*
js
,
sv_func_t
*
func
,
const
char
*
label
);
ant_value_t
sv_execute_frame
(
sv_vm_t
*
vm
,
sv_func_t
*
func
,
ant_value_t
this_val
,
ant_value_t
super_val
,
ant_value_t
*
args
,
int
argc
);
ant_value_t
sv_execute_entry
(
sv_vm_t
*
vm
,
sv_func_t
*
func
,
ant_value_t
this_val
,
ant_value_t
*
args
,
int
argc
);
ant_value_t
sv_execute_entry_tla
(
ant_t
*
js
,
sv_func_t
*
func
,
ant_value_t
this_val
);
ant_value_t
sv_resume_suspended
(
sv_vm_t
*
vm
);
#endif
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Fri, May 1, 11:02 PM (1 d, 15 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
540444
Default Alt Text
vm.h (989 B)
Attached To
Mode
rANT Ant
Attached
Detach File
Event Timeline
Log In to Comment