Merge branch 'feature/type-refactoring' into develop
This commit is contained in:
commit
679973c6e9
146 files changed
+347
-309
No files matched your search
@@ -7,7 +7,7 @@ uses
|
|||||||
|
|
||||||
types,
|
types,
|
||||||
|
|
||||||
wasm.types,
|
wasm.types.context,
|
||||||
wasm.parser,
|
wasm.parser,
|
||||||
wasm.vm, wasm.test.binary.return42,
|
wasm.vm, wasm.test.binary.return42,
|
||||||
wasm.types.stack
|
wasm.types.stack
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ interface
|
|||||||
|
|
||||||
uses
|
uses
|
||||||
wasm.types.builtin, lmemorymanager, console, leb128,
|
wasm.types.builtin, lmemorymanager, console, leb128,
|
||||||
wasm.types;
|
wasm.types.enums, wasm.types.values, wasm.types.sections, wasm.types.context;
|
||||||
|
|
||||||
procedure handle(buffer: TWASMPUInt8; section_length: TWASMUInt32; ctx: PWASMProcessContext);
|
procedure handle(buffer: TWASMPUInt8; section_length: TWASMUInt32; ctx: PWASMProcessContext);
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ interface
|
|||||||
|
|
||||||
uses
|
uses
|
||||||
wasm.types.builtin, lmemorymanager, console, leb128,
|
wasm.types.builtin, lmemorymanager, console, leb128,
|
||||||
wasm.types;
|
wasm.types.context;
|
||||||
|
|
||||||
procedure handle(buffer: TWASMPUInt8; section_length: TWASMUInt32; ctx: PWASMProcessContext);
|
procedure handle(buffer: TWASMPUInt8; section_length: TWASMUInt32; ctx: PWASMProcessContext);
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ interface
|
|||||||
|
|
||||||
uses
|
uses
|
||||||
wasm.types.builtin, lmemorymanager, console, leb128,
|
wasm.types.builtin, lmemorymanager, console, leb128,
|
||||||
wasm.types, wasm.types.heap;
|
wasm.types.context, wasm.types.heap;
|
||||||
|
|
||||||
procedure handle(buffer: TWASMPUInt8; section_length: TWASMUInt32; ctx: PWASMProcessContext);
|
procedure handle(buffer: TWASMPUInt8; section_length: TWASMUInt32; ctx: PWASMProcessContext);
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ interface
|
|||||||
|
|
||||||
uses
|
uses
|
||||||
wasm.types.builtin, lmemorymanager, console, leb128,
|
wasm.types.builtin, lmemorymanager, console, leb128,
|
||||||
wasm.types;
|
wasm.types.context;
|
||||||
|
|
||||||
procedure handle(buffer: TWASMPUInt8; section_length: TWASMUInt32; ctx: PWASMProcessContext);
|
procedure handle(buffer: TWASMPUInt8; section_length: TWASMUInt32; ctx: PWASMProcessContext);
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ interface
|
|||||||
|
|
||||||
uses
|
uses
|
||||||
wasm.types.builtin, lmemorymanager, console, leb128,
|
wasm.types.builtin, lmemorymanager, console, leb128,
|
||||||
wasm.types;
|
wasm.types.enums, wasm.types.sections, wasm.types.context;
|
||||||
|
|
||||||
procedure handle(buffer: TWASMPUInt8; section_length: TWASMUInt32; ctx: PWASMProcessContext);
|
procedure handle(buffer: TWASMPUInt8; section_length: TWASMUInt32; ctx: PWASMProcessContext);
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ interface
|
|||||||
|
|
||||||
uses
|
uses
|
||||||
wasm.types.builtin, lmemorymanager, console, leb128,
|
wasm.types.builtin, lmemorymanager, console, leb128,
|
||||||
wasm.types;
|
wasm.types.sections, wasm.types.context;
|
||||||
|
|
||||||
procedure handle(buffer: TWASMPUInt8; section_length: TWASMUInt32; ctx: PWASMProcessContext);
|
procedure handle(buffer: TWASMPUInt8; section_length: TWASMUInt32; ctx: PWASMProcessContext);
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ interface
|
|||||||
|
|
||||||
uses
|
uses
|
||||||
wasm.types.builtin, lmemorymanager, console, leb128,
|
wasm.types.builtin, lmemorymanager, console, leb128,
|
||||||
wasm.types;
|
wasm.types.enums, wasm.types.sections, wasm.types.context;
|
||||||
|
|
||||||
procedure handle(buffer: TWASMPUInt8; section_length: TWASMUInt32; ctx: PWASMProcessContext);
|
procedure handle(buffer: TWASMPUInt8; section_length: TWASMUInt32; ctx: PWASMProcessContext);
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ interface
|
|||||||
|
|
||||||
uses
|
uses
|
||||||
wasm.types.builtin, lmemorymanager, console, leb128,
|
wasm.types.builtin, lmemorymanager, console, leb128,
|
||||||
wasm.types;
|
wasm.types.context;
|
||||||
|
|
||||||
procedure handle(buffer: TWASMPUInt8; section_length: TWASMUInt32; ctx: PWASMProcessContext);
|
procedure handle(buffer: TWASMPUInt8; section_length: TWASMUInt32; ctx: PWASMProcessContext);
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ interface
|
|||||||
|
|
||||||
uses
|
uses
|
||||||
wasm.types.builtin, lmemorymanager, console, leb128,
|
wasm.types.builtin, lmemorymanager, console, leb128,
|
||||||
wasm.types, wasm.types.heap;
|
wasm.types.sections, wasm.types.context, wasm.types.heap;
|
||||||
|
|
||||||
procedure handle(buffer: TWASMPUInt8; section_length: TWASMUInt32; ctx: PWASMProcessContext);
|
procedure handle(buffer: TWASMPUInt8; section_length: TWASMUInt32; ctx: PWASMProcessContext);
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ interface
|
|||||||
|
|
||||||
uses
|
uses
|
||||||
wasm.types.builtin, lmemorymanager, console, leb128,
|
wasm.types.builtin, lmemorymanager, console, leb128,
|
||||||
wasm.types;
|
wasm.types.context;
|
||||||
|
|
||||||
procedure handle(buffer: TWASMPUInt8; section_length: TWASMUInt32; ctx: PWASMProcessContext);
|
procedure handle(buffer: TWASMPUInt8; section_length: TWASMUInt32; ctx: PWASMProcessContext);
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ interface
|
|||||||
|
|
||||||
uses
|
uses
|
||||||
wasm.types.builtin, lmemorymanager, console, leb128,
|
wasm.types.builtin, lmemorymanager, console, leb128,
|
||||||
wasm.types;
|
wasm.types.context;
|
||||||
|
|
||||||
procedure handle(buffer: TWASMPUInt8; section_length: TWASMUInt32; ctx: PWASMProcessContext);
|
procedure handle(buffer: TWASMPUInt8; section_length: TWASMUInt32; ctx: PWASMProcessContext);
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ interface
|
|||||||
|
|
||||||
uses
|
uses
|
||||||
wasm.types.builtin, lmemorymanager, console, leb128,
|
wasm.types.builtin, lmemorymanager, console, leb128,
|
||||||
wasm.types;
|
wasm.types.enums, wasm.types.values, wasm.types.sections, wasm.types.context;
|
||||||
|
|
||||||
procedure handle(buffer: TWASMPUInt8; section_length: TWASMUInt32; ctx: PWASMProcessContext);
|
procedure handle(buffer: TWASMPUInt8; section_length: TWASMUInt32; ctx: PWASMProcessContext);
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ interface
|
|||||||
|
|
||||||
uses
|
uses
|
||||||
wasm.types.builtin, lmemorymanager, console, leb128,
|
wasm.types.builtin, lmemorymanager, console, leb128,
|
||||||
wasm.types, wasm.types.heap, wasm.types.stack,
|
wasm.types.enums, wasm.types.sections, wasm.types.context, wasm.types.heap, wasm.types.stack,
|
||||||
wasm.parser.sections;
|
wasm.parser.sections;
|
||||||
|
|
||||||
function parse(buffer: TWASMPUInt8; buffer_end: TWASMPUInt8) : PWASMProcessContext;
|
function parse(buffer: TWASMPUInt8; buffer_end: TWASMPUInt8) : PWASMProcessContext;
|
||||||
@@ -66,7 +66,7 @@ begin
|
|||||||
writestringln('[wasm.parser] Parsing WASM Binary');
|
writestringln('[wasm.parser] Parsing WASM Binary');
|
||||||
|
|
||||||
// Check for the WASM Magic
|
// Check for the WASM Magic
|
||||||
if(TWASMPUInt32(pos)^ = wasm.types.WASM_HDR_MAGIC) then begin
|
if(TWASMPUInt32(pos)^ = WASM_HDR_MAGIC) then begin
|
||||||
writestringln('[wasm.parser] Binary is valid.');
|
writestringln('[wasm.parser] Binary is valid.');
|
||||||
|
|
||||||
// Set binary to valid
|
// Set binary to valid
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ interface
|
|||||||
|
|
||||||
uses
|
uses
|
||||||
wasm.types.builtin,
|
wasm.types.builtin,
|
||||||
wasm.types,
|
wasm.types.enums, wasm.types.context,
|
||||||
wasm.parser.sections.customSection,
|
wasm.parser.sections.customSection,
|
||||||
wasm.parser.sections.typeSection,
|
wasm.parser.sections.typeSection,
|
||||||
wasm.parser.sections.importSection,
|
wasm.parser.sections.importSection,
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ procedure run;
|
|||||||
implementation
|
implementation
|
||||||
|
|
||||||
uses
|
uses
|
||||||
wasm.types.builtin, console, wasm.types, wasm.types.stack,
|
wasm.types.builtin, console, wasm.types.context, wasm.types.stack,
|
||||||
wasm.parser, wasm.vm, wasm.test.framework;
|
wasm.parser, wasm.vm, wasm.test.framework;
|
||||||
|
|
||||||
const
|
const
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ procedure run;
|
|||||||
implementation
|
implementation
|
||||||
|
|
||||||
uses
|
uses
|
||||||
wasm.types.builtin, console, wasm.types, wasm.types.stack,
|
wasm.types.builtin, console, wasm.types.context, wasm.types.stack,
|
||||||
wasm.parser, wasm.vm, wasm.test.framework;
|
wasm.parser, wasm.vm, wasm.test.framework;
|
||||||
|
|
||||||
const
|
const
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ procedure run;
|
|||||||
implementation
|
implementation
|
||||||
|
|
||||||
uses
|
uses
|
||||||
wasm.types.builtin, console, wasm.types, wasm.types.stack,
|
wasm.types.builtin, console, wasm.types.context, wasm.types.stack,
|
||||||
wasm.parser, wasm.vm, wasm.test.framework;
|
wasm.parser, wasm.vm, wasm.test.framework;
|
||||||
|
|
||||||
const
|
const
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ procedure run;
|
|||||||
implementation
|
implementation
|
||||||
|
|
||||||
uses
|
uses
|
||||||
wasm.types.builtin, console, wasm.types, wasm.types.stack,
|
wasm.types.builtin, console, wasm.types.context, wasm.types.stack,
|
||||||
wasm.parser, wasm.vm, wasm.test.framework;
|
wasm.parser, wasm.vm, wasm.test.framework;
|
||||||
|
|
||||||
const
|
const
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ procedure run;
|
|||||||
implementation
|
implementation
|
||||||
|
|
||||||
uses
|
uses
|
||||||
console, wasm.types, wasm.types.stack,
|
console, wasm.types.context, wasm.types.stack,
|
||||||
wasm.parser, wasm.vm, wasm.test.framework;
|
wasm.parser, wasm.vm, wasm.test.framework;
|
||||||
|
|
||||||
procedure run;
|
procedure run;
|
||||||
|
|||||||
Loaded 20 of 146 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user