Implement v128 instructions (#508)

This commit is contained in:
Daniel Wirtz
2019-02-28 17:36:22 +01:00
committed by GitHub
parent cdf40578b6
commit e1f1a3b49c
25 changed files with 6647 additions and 286 deletions

View File

@ -523,6 +523,8 @@ export class Program extends DiagnosticEmitter {
i64_new(options.hasFeature(Feature.BULK_MEMORY) ? 1 : 0, 0));
this.registerConstantInteger(LibrarySymbols.ASC_FEATURE_SIMD, Type.bool,
i64_new(options.hasFeature(Feature.SIMD) ? 1 : 0, 0));
this.registerConstantInteger(LibrarySymbols.ASC_FEATURE_THREADS, Type.bool,
i64_new(options.hasFeature(Feature.THREADS) ? 1 : 0, 0));
// remember deferred elements
var queuedImports = new Array<QueuedImport>();
@ -2564,6 +2566,7 @@ export class Function extends TypedElement {
tempI64s: Local[] | null = null;
tempF32s: Local[] | null = null;
tempF64s: Local[] | null = null;
tempV128s: Local[] | null = null;
// used by flows to keep track of break labels
nextBreakId: i32 = 0;