Program class
A Program is a compiled EVC bytecode program that can be executed using a Runtime.
Constructors
-
Program(Map<
int, Map< topLevelDeclarations, Map<String, int> >int, Map< instanceDeclarations, Map<String, List> >int, Map< typeIds, List<String, int> >Set< typeTypes, List<int> >EvcOp> ops, Map<String, int> bridgeLibraryMappings, Map<int, Map< bridgeFunctionMappings, List<String, int> >Object> constantPool, List<RuntimeTypeSet> runtimeTypes, List<int> globalInitializers, Map<int, Map< enumMappings, Map<String, Map< >String, int> >String, OverrideSpec> overrideMap) - Construct a Program with bytecode and metadata.
Properties
-
bridgeFunctionMappings
↔ Map<
int, Map< String, int> > -
Mappings from bridge function names to internal InvokeExternal IDs.
getter/setter pair
-
bridgeLibraryMappings
↔ Map<
String, int> -
Mappings from library URIs to internal library IDs.
getter/setter pair
-
constantPool
↔ List<
Object> -
The program's constant pool.
getter/setter pair
-
enumMappings
↔ Map<
int, Map< String, Map< >String, int> > -
Mappings from enums to globals.
getter/setter pair
-
globalInitializers
↔ List<
int> -
Bytecode offsets to initializers for global variables.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
instanceDeclarations
↔ Map<
int, Map< String, List> > -
Global bytecode offsets of the program's instance-level declarations.
getter/setter pair
-
ops
↔ List<
EvcOp> -
The program's bytecode.
getter/setter pair
-
overrideMap
↔ Map<
String, OverrideSpec> -
Runtime override map
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
runtimeTypes
↔ List<
RuntimeTypeSet> -
getter/setter pair
-
topLevelDeclarations
↔ Map<
int, Map< String, int> > -
Global bytecode offsets of the program's top-level declarations.
getter/setter pair
-
typeIds
↔ Map<
int, Map< String, int> > -
Mappings from type specs to IDs.
getter/setter pair
-
typeTypes
↔ List<
Set< int> > -
The ordered list of type names used in the program, with the index
corresponding to the type ID.
The ordered list of type supertype sets used in the program, with the index
corresponding to the type ID.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
write(
) → Uint8List - Write the program to a Uint8List, to be loaded by a Runtime.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited