git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit 90c78a592cb45542546f035167e39d219a6eaaf1

remove debugging

wanderer committed on 1/25/2017, 3:31:00 AM
Parent: b3c996702f7fd3a979fd479cf4ba92da8c24fda5

Files changed

index.jschanged
port.jschanged
vm.jschanged
index.jsView
@@ -8,8 +8,9 @@
88 module.exports = class Kernel {
99 constructor (opts = {}) {
1010 const state = this.state = opts.state || new Vertex()
1111 state.value = opts.code || state.value
12+ this.path = state.path
1213 this.imports = opts.imports || [imports]
1314 // RENAME agent
1415 this._vm = (opts.codeHandler || codeHandler).init(state.value)
1516 this._messageQueue = new MessageQueue(this)
@@ -51,9 +52,9 @@
5152 return this.ports.send(port, message)
5253 }
5354
5455 setValue (name, value) {
55- return this.state.set(name, value)
56+ this.state.set(name, value)
5657 }
5758
5859 getValue (name) {
5960 return this.state.get(name)
port.jsView
@@ -19,15 +19,13 @@
1919 return dest.recieve(message)
2020 }
2121
2222 async get (name) {
23- // console.log(name)
2423 const vertex = name === common.PARENT ? this.cache.parent : this.cache.get(name)
2524
2625 if (vertex) {
2726 return vertex.value
2827 } else {
29- // console.log(this.state.path)
3028 const destState = await (
3129 name === common.PARENT
3230 ? this.state.getParent()
3331 : this.state.get([name]))
@@ -36,9 +34,8 @@
3634 state: destState
3735 })
3836
3937 const cache = new Cache(kernel)
40-
4138 kernel.ports.cache = cache
4239 if (name === common.PARENT) {
4340 cache.set(this.state.name, this.cache)
4441 } else {
vm.jsView
@@ -1,5 +1,5 @@
1-module.exports = class VM {
1+module.exports = class Wasm {
22 /**
33 * The interface API is the api the exposed to interfaces. All queries about
44 * the enviroment and call to the kernel go through this API
55 */

Built with git-ssb-web