зеркало из https://github.com/mozilla/pluotsorbet.git
more midp native code
This commit is contained in:
Родитель
20529980c6
Коммит
f10491aa71
|
@ -56,7 +56,8 @@ var ClassInfo = function(classBytes) {
|
|||
if (a.info.type === ATTRIBUTE_TYPES.InnerClasses) {
|
||||
a.info.classes.forEach(function(c) {
|
||||
classes.push(cp[cp[c.inner_class_info_index].name_index].bytes);
|
||||
classes.push(cp[cp[c.outer_class_info_index].name_index].bytes);
|
||||
if (c.outer_class_info_index)
|
||||
classes.push(cp[cp[c.outer_class_info_index].name_index].bytes);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
13
midp.js
13
midp.js
|
@ -325,6 +325,10 @@ Native["com/sun/midp/main/MIDletSuiteUtils.getAmsIsolateId.()I"] = function(ctx,
|
|||
stack.push(0);
|
||||
}
|
||||
|
||||
Native["com/sun/midp/main/MIDletSuiteUtils.isAmsIsolate.()Z"] = function(ctx, stack) {
|
||||
stack.push(1);
|
||||
}
|
||||
|
||||
Native["com/sun/midp/main/MIDletSuiteUtils.vmBeginStartUp.(I)V"] = function(ctx, stack) {
|
||||
var midletIsolateId = stack.pop();
|
||||
}
|
||||
|
@ -337,9 +341,16 @@ Native["com/sun/midp/main/Configuration.getProperty0.(Ljava/lang/String;)Ljava/l
|
|||
value = CLASSES.newString("web.pks");
|
||||
break;
|
||||
default:
|
||||
console.log("UNKNOWN PROPERTY: " + util.fromJavaString(key));
|
||||
console.log("UNKNOWN PROPERTY (com/sun/midp/main/Configuration): " + util.fromJavaString(key));
|
||||
value = null;
|
||||
break;
|
||||
}
|
||||
stack.push(value);
|
||||
}
|
||||
|
||||
Native["com/sun/midp/events/EventQueue.getNativeEventQueueHandle.()I"] = function(ctx, stack) {
|
||||
stack.push(0);
|
||||
}
|
||||
|
||||
Native["com/sun/midp/events/EventQueue.resetNativeEventQueue.()V"] = function(ctx, stack) {
|
||||
}
|
||||
|
|
|
@ -68,7 +68,7 @@ Native["java/lang/System.getProperty0.(Ljava/lang/String;)Ljava/lang/String;"] =
|
|||
value = CLASSES.newString("UTF-8");
|
||||
break;
|
||||
default:
|
||||
console.log("UNKNOWN PROPERTY: " + util.fromJavaString(key));
|
||||
console.log("UNKNOWN PROPERTY (java/lang/System): " + util.fromJavaString(key));
|
||||
value = null;
|
||||
break;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче