aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm/vm_jit.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-03-16 02:39:36 +0800
committerFelix Lange <fjl@twurst.com>2016-03-16 02:39:36 +0800
commit06fe6310a3ecf0be324b082ca83c015abe47fa8f (patch)
treea78847bed59a5fa7f75ff9a1705b0a6bb20d13d7 /core/vm/vm_jit.go
parent066d30152088188cec782bb62844550332d6b142 (diff)
parentb7bb2d8589ddfb4f893c881edb6422bacdb6e53b (diff)
downloaddexon-06fe6310a3ecf0be324b082ca83c015abe47fa8f.tar
dexon-06fe6310a3ecf0be324b082ca83c015abe47fa8f.tar.gz
dexon-06fe6310a3ecf0be324b082ca83c015abe47fa8f.tar.bz2
dexon-06fe6310a3ecf0be324b082ca83c015abe47fa8f.tar.lz
dexon-06fe6310a3ecf0be324b082ca83c015abe47fa8f.tar.xz
dexon-06fe6310a3ecf0be324b082ca83c015abe47fa8f.tar.zst
dexon-06fe6310a3ecf0be324b082ca83c015abe47fa8f.zip
Merge pull request #2351 from leijurv/patch-4
core: various typos
Diffstat (limited to 'core/vm/vm_jit.go')
-rw-r--r--core/vm/vm_jit.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/vm/vm_jit.go b/core/vm/vm_jit.go
index 589c30fa8..f6e4a515b 100644
--- a/core/vm/vm_jit.go
+++ b/core/vm/vm_jit.go
@@ -138,7 +138,7 @@ func llvm2big(m *i256) *big.Int {
}
// llvm2bytesRef creates a []byte slice that references byte buffer on LLVM side (as of that not controller by GC)
-// User must asure that referenced memory is available to Go until the data is copied or not needed any more
+// User must ensure that referenced memory is available to Go until the data is copied or not needed any more
func llvm2bytesRef(data *byte, length uint64) []byte {
if length == 0 {
return nil
@@ -171,7 +171,7 @@ func (self *JitVm) Run(me, caller ContextRef, code []byte, value, gas, price *bi
// TODO: Move it to Env.Call() or sth
if Precompiled[string(me.Address())] != nil {
- // if it's address of precopiled contract
+ // if it's address of precompiled contract
// fallback to standard VM
stdVm := New(self.env)
return stdVm.Run(me, caller, code, value, gas, price, callData)
@@ -348,7 +348,7 @@ func env_create(_vm unsafe.Pointer, _gas *int64, _value unsafe.Pointer, initData
gas := big.NewInt(*_gas)
ret, suberr, ref := vm.env.Create(vm.me, nil, initData, gas, vm.price, value)
if suberr == nil {
- dataGas := big.NewInt(int64(len(ret))) // TODO: Nto the best design. env.Create can do it, it has the reference to gas counter
+ dataGas := big.NewInt(int64(len(ret))) // TODO: Not the best design. env.Create can do it, it has the reference to gas counter
dataGas.Mul(dataGas, params.CreateDataGas)
gas.Sub(gas, dataGas)
*result = hash2llvm(ref.Address())