зеркало из https://github.com/mozilla/pluotsorbet.git
No need to recalc methodInfo key in VM.compile after #414
This commit is contained in:
Родитель
ecd5b1d9a9
Коммит
f45301aa85
|
@ -55,10 +55,6 @@ function MethodInfo(m, classInfo, constantPool) {
|
|||
this.isStatic = ACCESS_FLAGS.isStatic(m.access_flags);
|
||||
this.isSynchronized = ACCESS_FLAGS.isSynchronized(m.access_flags);
|
||||
|
||||
this.alternateImpl = (this.isNative ? Native :
|
||||
Override.hasMethod(this) ? Override :
|
||||
null);
|
||||
|
||||
this.key = (this.isStatic ? "S." : "I.") + this.name + "." + this.signature;
|
||||
this.implKey = this.classInfo.className + "." + this.name + "." + this.signature;
|
||||
|
||||
|
|
2
vm.js
2
vm.js
|
@ -2410,8 +2410,6 @@ VM.compile = function(methodInfo, ctx) {
|
|||
}\n";
|
||||
|
||||
if (op === 0xb6 || op === 0xb9) {
|
||||
toCallMethodInfo.key = "I." + toCallMethodInfo.name + "." + toCallMethodInfo.signature;
|
||||
|
||||
code += "\
|
||||
if (toCallMethodInfo.classInfo != " + obj + ".class) {\n\
|
||||
if (" + obj + ".class.vmc['" + toCallMethodInfo.key + "']) {\n\
|
||||
|
|
Загрузка…
Ссылка в новой задаче