Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
2d00027f
Commit
2d00027f
authored
Aug 21, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'release/0.6.4'
parents
fb90ecc8
d03ab3c9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
10 deletions
+6
-10
types.go
ethvm/types.go
+6
-6
vm.go
ethvm/vm.go
+0
-4
No files found.
ethvm/types.go
View file @
2d00027f
...
...
@@ -59,9 +59,9 @@ const (
GASLIMIT
=
0x45
// 0x50 range - 'storage' and execution
POP
=
0x50
DUP
=
0x51
SWAP
=
0x52
POP
=
0x50
//
DUP = 0x51
//
SWAP = 0x52
MLOAD
=
0x53
MSTORE
=
0x54
MSTORE8
=
0x55
...
...
@@ -204,9 +204,9 @@ var opCodeToString = map[OpCode]string{
GASLIMIT
:
"GASLIMIT"
,
// 0x50 range - 'storage' and execution
POP
:
"POP"
,
DUP
:
"DUP"
,
SWAP
:
"SWAP"
,
POP
:
"POP"
,
//
DUP: "DUP",
//
SWAP: "SWAP",
MLOAD
:
"MLOAD"
,
MSTORE
:
"MSTORE"
,
MSTORE8
:
"MSTORE8"
,
...
...
ethvm/vm.go
View file @
2d00027f
...
...
@@ -640,10 +640,6 @@ func (self *Vm) RunClosure(closure *Closure) (ret []byte, err error) {
x
,
y
:=
stack
.
Swapn
(
n
)
self
.
Printf
(
" => [%d] %x [0] %x"
,
n
,
x
.
Bytes
(),
y
.
Bytes
())
case
DUP
:
// NOP
case
SWAP
:
// NOP
case
MLOAD
:
require
(
1
)
offset
:=
stack
.
Pop
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment