@@ -15,11 +15,13 @@ typedef struct Module Module;
15
15
typedef struct FunctionTemplate FunctionTemplate ;
16
16
typedef struct Message Message ;
17
17
typedef struct Context Context ;
18
+ typedef struct UnboundScript UnboundScript ;
19
+ typedef struct Script Script ;
18
20
// Internally, all Value types have a base InternalAddress struct.
19
21
typedef uintptr_t InternalAddress ;
20
22
// Super type.
21
23
typedef Data Value ;
22
- typedef Value Object ;
24
+ typedef Value Object ;a
23
25
typedef Value String ;
24
26
typedef Value Function ;
25
27
typedef Value Number ;
@@ -978,6 +980,13 @@ typedef struct CompilationDetails {
978
980
979
981
typedef bool (* CompileHintCallback )(int , void * );
980
982
983
+ // Script
984
+ Script * v8__Script__Compile (const Context * context , const String * src , const ScriptOrigin * origin );
985
+ Value * v8__Script__Run (const Script * script , const Context * context );
986
+
987
+ // UnboundScript
988
+ Script * v8__UnboundScript__BindToCurrentContext (const UnboundScript * unboundedScript );
989
+
981
990
// ScriptCompiler
982
991
typedef struct ScriptCompilerSource {
983
992
String * source_string ;
@@ -1032,11 +1041,16 @@ const Module* v8__ScriptCompiler__CompileModule(
1032
1041
ScriptCompilerSource * source ,
1033
1042
CompileOptions options ,
1034
1043
NoCacheReason reason );
1035
-
1036
- // Script
1037
- typedef struct Script Script ;
1038
- Script * v8__Script__Compile (const Context * context , const String * src , const ScriptOrigin * origin );
1039
- Value * v8__Script__Run (const Script * script , const Context * context );
1044
+ const Script * v8__ScriptCompiler__Compile (
1045
+ const Context * context ,
1046
+ ScriptCompilerSource * source ,
1047
+ CompileOptions options ,
1048
+ NoCacheReason reason );
1049
+ const UnboundScript * v8__ScriptCompiler__CompileUnboundScript (
1050
+ Isolate * isolate ,
1051
+ ScriptCompilerSource * source ,
1052
+ CompileOptions options ,
1053
+ NoCacheReason reason );
1040
1054
1041
1055
// Module
1042
1056
typedef enum ModuleStatus {
0 commit comments