зеркало из https://github.com/mozilla/pluotsorbet.git
Clean up and reorder some fields.
This commit is contained in:
Родитель
12e400b501
Коммит
587021e152
22
vm/parser.ts
22
vm/parser.ts
|
@ -591,38 +591,29 @@ module J2ME {
|
||||||
public classInfo: ClassInfo;
|
public classInfo: ClassInfo;
|
||||||
public accessFlags: ACCESS_FLAGS;
|
public accessFlags: ACCESS_FLAGS;
|
||||||
|
|
||||||
|
public fn: any;
|
||||||
public index: number;
|
public index: number;
|
||||||
public state: MethodState;
|
public state: MethodState;
|
||||||
public stats: MethodInfoStats;
|
public stats: MethodInfoStats;
|
||||||
|
|
||||||
public codeAttribute: CodeAttribute;
|
public codeAttribute: CodeAttribute;
|
||||||
|
|
||||||
public utf8Name: Uint8Array;
|
public utf8Name: Uint8Array;
|
||||||
public utf8Signature: Uint8Array;
|
public utf8Signature: Uint8Array;
|
||||||
public returnKind: Kind;
|
public returnKind: Kind;
|
||||||
|
|
||||||
|
public argumentSlots: number;
|
||||||
|
public consumeArgumentSlots: number;
|
||||||
|
public hasTwoSlotArguments: boolean;
|
||||||
|
|
||||||
vTableIndex: number;
|
vTableIndex: number;
|
||||||
|
|
||||||
private _virtualName: string;
|
private _virtualName: string;
|
||||||
private _mangledName: string;
|
private _mangledName: string;
|
||||||
private _mangledClassAndMethodName: string;
|
private _mangledClassAndMethodName: string;
|
||||||
|
|
||||||
private _signatureDescriptor: SignatureDescriptor;
|
private _signatureDescriptor: SignatureDescriptor;
|
||||||
|
|
||||||
///// FIX THESE LATER ////
|
///// FIX THESE LATER ////
|
||||||
fn: any;
|
|
||||||
|
|
||||||
onStackReplacementEntryPoints: number [];
|
onStackReplacementEntryPoints: number [];
|
||||||
|
|
||||||
argumentSlots: number;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The number of arguments to pop of the stack when calling this function.
|
|
||||||
*/
|
|
||||||
consumeArgumentSlots: number;
|
|
||||||
|
|
||||||
hasTwoSlotArguments: boolean;
|
|
||||||
|
|
||||||
exception_table_length: number;
|
exception_table_length: number;
|
||||||
exception_table_offset: number;
|
exception_table_offset: number;
|
||||||
implKey: string;
|
implKey: string;
|
||||||
|
@ -648,11 +639,12 @@ module J2ME {
|
||||||
this.codeAttribute = null;
|
this.codeAttribute = null;
|
||||||
this.scanMethodInfoAttributes();
|
this.scanMethodInfoAttributes();
|
||||||
|
|
||||||
|
|
||||||
|
// Parse signature and cache some useful information.
|
||||||
var signatureKinds = parseMethodDescriptorKinds(this.utf8Signature, 0);
|
var signatureKinds = parseMethodDescriptorKinds(this.utf8Signature, 0);
|
||||||
this.returnKind = signatureKinds[0];
|
this.returnKind = signatureKinds[0];
|
||||||
this.hasTwoSlotArguments = signatureHasTwoSlotArguments(signatureKinds);
|
this.hasTwoSlotArguments = signatureHasTwoSlotArguments(signatureKinds);
|
||||||
this.argumentSlots = signatureArgumentSlotCount(signatureKinds);
|
this.argumentSlots = signatureArgumentSlotCount(signatureKinds);
|
||||||
|
|
||||||
this.consumeArgumentSlots = this.argumentSlots;
|
this.consumeArgumentSlots = this.argumentSlots;
|
||||||
if (!this.isStatic) {
|
if (!this.isStatic) {
|
||||||
this.consumeArgumentSlots ++;
|
this.consumeArgumentSlots ++;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче