Commit aa7f348ee71a97e479efcc2d058b302bcf683a0d
Precompile: add comments about implementation
Alex Beregszaszi committed on 8/24/2016, 1:58:53 AMParent: eaedfe161bce8061931a7893d8f339ac2b36f711
Files changed
precompile.js | changed |
precompile.js | ||
---|---|---|
@@ -1,13 +1,18 @@ | ||
1 | +// const evm2wasm = require('evm2wasm') | |
2 | +// const metering = require('wasm-metering') | |
3 | + | |
1 | 4 | module.exports.meteringInjector = function (call) { |
2 | 5 | console.log('Executing metering injector') |
3 | 6 | return { |
7 | + // returnValue: metering.injectWAST(call.data, 2).slice(0) | |
4 | 8 | returnValue: call.data.slice(0) |
5 | 9 | } |
6 | 10 | } |
7 | 11 | |
8 | 12 | module.exports.transcompiler = function (call) { |
9 | 13 | console.log('Executing transcompiler') |
10 | 14 | return { |
15 | + // returnValue: evm2wasm.compileEVM(call.data).slice(0) | |
11 | 16 | returnValue: call.data.slice(0) |
12 | 17 | } |
13 | 18 | } |
Built with git-ssb-web