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
89c69a1d
Commit
89c69a1d
authored
Jan 19, 2015
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VmDebug => StdVm
parent
06bfe19f
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
951 additions
and
990 deletions
+951
-990
common.go
vm/common.go
+2
-3
vm.go
vm/vm.go
+945
-22
vm_debug.go
vm/vm_debug.go
+0
-961
vm_jit.go
vm/vm_jit.go
+4
-4
No files found.
vm/common.go
View file @
89c69a1d
...
...
@@ -9,11 +9,10 @@ import (
var
vmlogger
=
logger
.
NewLogger
(
"VM"
)
type
Type
int
type
Type
byte
const
(
StandardVmTy
Type
=
iota
DebugVmTy
StdVmTy
Type
=
iota
JitVmTy
MaxVmTy
...
...
vm/vm.go
View file @
89c69a1d
This diff is collapsed.
Click to expand it.
vm/vm_debug.go
deleted
100644 → 0
View file @
06bfe19f
This diff is collapsed.
Click to expand it.
vm/vm_jit.go
View file @
89c69a1d
...
...
@@ -3,12 +3,12 @@ package vm
import
"math/big"
type
JitVm
struct
{
env
Environment
backup
*
Debug
Vm
env
Environment
backup
*
Vm
}
func
NewJitVm
(
env
Environment
)
*
JitVm
{
backupVm
:=
New
Debug
Vm
(
env
)
backupVm
:=
NewVm
(
env
)
return
&
JitVm
{
env
:
env
,
backup
:
backupVm
}
}
...
...
@@ -28,4 +28,4 @@ func (self *JitVm) Env() Environment {
return
self
.
env
}
//go is nice
\ No newline at end of file
//go is nice
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