Refactor TLSF to a more TS-friendly structure

This commit is contained in:
dcodeIO
2018-01-17 02:08:14 +01:00
parent 7d5e56cef5
commit 1662950f3c
8 changed files with 543 additions and 386 deletions

View File

@ -2693,6 +2693,7 @@ export class Compiler extends DiagnosticEmitter {
this.currentType = getterInstance.returnType;
if (getterInstance.isInstance) {
var targetExpr = this.compileExpression(<Expression>resolved.targetExpression, this.options.target == Target.WASM64 ? Type.usize64 : Type.usize32)
this.currentType = getterInstance.returnType;
return this.makeCall(getterInstance, [ targetExpr ]);
} else
return this.makeCall(getterInstance);