diff options
author | Felix Lange <fjl@twurst.com> | 2016-03-16 02:39:36 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2016-03-16 02:39:36 +0800 |
commit | 06fe6310a3ecf0be324b082ca83c015abe47fa8f (patch) | |
tree | a78847bed59a5fa7f75ff9a1705b0a6bb20d13d7 /core/vm/jit.go | |
parent | 066d30152088188cec782bb62844550332d6b142 (diff) | |
parent | b7bb2d8589ddfb4f893c881edb6422bacdb6e53b (diff) | |
download | dexon-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/jit.go')
-rw-r--r-- | core/vm/jit.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/vm/jit.go b/core/vm/jit.go index 5404730c1..71ffcf0f6 100644 --- a/core/vm/jit.go +++ b/core/vm/jit.go @@ -300,7 +300,7 @@ func CompileProgram(program *Program) (err error) { return nil } -// RunProgram runs the program given the enviroment and contract and returns an +// RunProgram runs the program given the environment and contract and returns an // error if the execution failed (non-consensus) func RunProgram(program *Program, env Environment, contract *Contract, input []byte) ([]byte, error) { return runProgram(program, 0, NewMemory(), newstack(), env, contract, input) @@ -346,7 +346,7 @@ func runProgram(program *Program, pcstart uint64, mem *Memory, stack *stack, env return nil, nil } -// validDest checks if the given distination is a valid one given the +// validDest checks if the given destination is a valid one given the // destination table of the program func validDest(dests map[uint64]struct{}, dest *big.Int) bool { // PC cannot go beyond len(code) and certainly can't be bigger than 64bits. @@ -416,7 +416,7 @@ func jitCalculateGasAndSize(env Environment, contract *Contract, instr instructi // This checks for 3 scenario's and calculates gas accordingly // 1. From a zero-value address to a non-zero value (NEW VALUE) // 2. From a non-zero value address to a zero-value address (DELETE) - // 3. From a nen-zero to a non-zero (CHANGE) + // 3. From a non-zero to a non-zero (CHANGE) if common.EmptyHash(val) && !common.EmptyHash(common.BigToHash(y)) { g = params.SstoreSetGas } else if !common.EmptyHash(val) && common.EmptyHash(common.BigToHash(y)) { |