git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit aa7f348ee71a97e479efcc2d058b302bcf683a0d

Precompile: add comments about implementation

Alex Beregszaszi committed on 8/24/2016, 1:58:53 AM
Parent: eaedfe161bce8061931a7893d8f339ac2b36f711

Files changed

precompile.jschanged
precompile.jsView
@@ -1,13 +1,18 @@
1+// const evm2wasm = require('evm2wasm')
2+// const metering = require('wasm-metering')
3+
14 module.exports.meteringInjector = function (call) {
25 console.log('Executing metering injector')
36 return {
7+ // returnValue: metering.injectWAST(call.data, 2).slice(0)
48 returnValue: call.data.slice(0)
59 }
610 }
711
812 module.exports.transcompiler = function (call) {
913 console.log('Executing transcompiler')
1014 return {
15+ // returnValue: evm2wasm.compileEVM(call.data).slice(0)
1116 returnValue: call.data.slice(0)
1217 }
1318 }

Built with git-ssb-web