зеркало из https://github.com/mozilla/pluotsorbet.git
Work around issue related to creating strings when no VM exists.
This commit is contained in:
Родитель
d7c4b85118
Коммит
794195741c
|
@ -310,12 +310,6 @@ module J2ME {
|
|||
var method;
|
||||
method = baselineCompileMethod(methodInfo, target);
|
||||
return method;
|
||||
try {
|
||||
method = optimizerCompileMethod(methodInfo, target);
|
||||
} catch (x) {
|
||||
method = baselineCompileMethod(methodInfo, target);
|
||||
}
|
||||
return method;
|
||||
}
|
||||
|
||||
export function compile(jvm: any,
|
||||
|
@ -356,7 +350,7 @@ module J2ME {
|
|||
}
|
||||
classInfoList.push(classInfo);
|
||||
} catch (e) {
|
||||
stderrWriter.writeLn(e);
|
||||
stderrWriter.writeLn(e.stack);
|
||||
}
|
||||
return true;
|
||||
}.bind(this));
|
||||
|
|
|
@ -524,11 +524,13 @@ module J2ME {
|
|||
}
|
||||
s.seek(o + attribute_length);
|
||||
}
|
||||
if (phase !== ExecutionPhase.Compiler) {
|
||||
if (constantvalue_index >= 0) {
|
||||
this.constantValue = this.classInfo.constantPool.resolve(constantvalue_index, TAGS.CONSTANT_Any);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export class SourceLocation {
|
||||
constructor(public className: string,
|
||||
|
|
Загрузка…
Ссылка в новой задаче