From 44e5a5a331b8d1b9e2a0ba81d62f264d34e66d0e Mon Sep 17 00:00:00 2001 From: Andreas Gal Date: Wed, 9 Jul 2014 22:23:17 -0700 Subject: [PATCH] more fixes --- classes.js | 39 +++++++++++++++++++-------------------- frame.js | 42 ++++++++++++++++++++---------------------- index.html | 1 + java/Makefile | 2 +- jvm.js | 3 ++- 5 files changed, 43 insertions(+), 44 deletions(-) diff --git a/classes.js b/classes.js index 4fbd7d59..d0a62f93 100644 --- a/classes.js +++ b/classes.js @@ -68,14 +68,13 @@ Classes.prototype.getEntryPoint = function(className, methodName) { if (ACCESS_FLAGS.isPublic(ca.getAccessFlags())) { var methods = ca.getMethods(); var cp = ca.getConstantPool(); - for(var i=0; i + diff --git a/java/Makefile b/java/Makefile index 9754700c..45b5a900 100644 --- a/java/Makefile +++ b/java/Makefile @@ -4,6 +4,6 @@ CLDC1_1_1_SRC=$(shell find cldc1.1.1 -name *.java) $(shell find vm -name *.java) cldc1_1_1.jar: $(CLDC1_1_1_SRC) rm -rf build mkdir build - javac -d ./build $^ + javac -source 1.3 -d ./build $^ cd build && jar cvf ../cldc1.1.1.jar * rm -rf build diff --git a/jvm.js b/jvm.js index cfbb3e33..9d52f39e 100644 --- a/jvm.js +++ b/jvm.js @@ -3,7 +3,7 @@ 'use strict'; -var LOG, CLASSES, THREADS, SCHEDULER; +var LOG, CLASSES, THREADS, SCHEDULER, NATIVE; var JVM = function() { if (this instanceof JVM) { @@ -11,6 +11,7 @@ var JVM = function() { CLASSES = new Classes(); THREADS = new Threads(); SCHEDULER = new Scheduler(); + NATIVE = new Native(); THREADS.add(new Thread("main"));