Skip to content

Commit

Permalink
Ensure compiledcode is published before the vm boots up.
Browse files Browse the repository at this point in the history
  • Loading branch information
madnificent committed Mar 20, 2011
1 parent 04ec75a commit 03f42c2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
6 changes: 5 additions & 1 deletion app/bytecode.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions app/vm.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Mojo.Log.info("Loading virtual machine");

/// credits

// The virtual machine was originally based on ideas and code from the
Expand Down Expand Up @@ -1690,6 +1691,8 @@ var load = function() {
loadfprims();
Mojo.Log.info("loading mprims");
loadmprims();
Mojo.Log.info("executing bytecode");
execute(compiledcode);
Mojo.Log.info("executing bytecode: " + compiledcode != null );
execute(compiledcode);
};

Mojo.Log.info("Loaded virtual machine");
2 changes: 1 addition & 1 deletion sources.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
{"source": "app/bytecode.js"}, // bytecode as soon before the vm as possible
{"source": "app/assistants/stage-assistant.js"},
{"source": "app/vm.js"},
{"source": "app/bytecode.js"},
{"source": "app/assistants/main-assistant.js",
"scenes": "main"}
]

0 comments on commit 03f42c2

Please sign in to comment.