Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
28cb70ee
Commit
28cb70ee
authored
May 19, 2016
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename function
parent
c00a995d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
traceManager.js
src/traceManager.js
+8
-8
No files found.
src/traceManager.js
View file @
28cb70ee
...
...
@@ -58,10 +58,10 @@ module.exports = {
for
(
var
k
in
this
.
trace
)
{
var
step
=
this
.
trace
[
k
]
this
.
c
alldata
(
k
,
step
)
this
.
m
emory
(
k
,
step
)
currentStorageAddress
=
this
.
s
torage
(
k
,
step
,
currentStorageAddress
)
var
depth
=
this
.
d
epth
(
k
,
step
,
currentDepth
,
callStack
)
this
.
buildC
alldata
(
k
,
step
)
this
.
buildM
emory
(
k
,
step
)
currentStorageAddress
=
this
.
buildS
torage
(
k
,
step
,
currentStorageAddress
)
var
depth
=
this
.
buildD
epth
(
k
,
step
,
currentDepth
,
callStack
)
if
(
depth
)
{
currentDepth
=
depth
}
...
...
@@ -69,19 +69,19 @@ module.exports = {
},
// compute trace section
c
alldata
:
function
(
index
,
step
)
{
buildC
alldata
:
function
(
index
,
step
)
{
if
(
step
.
calldata
)
{
this
.
callDataChanges
.
push
(
index
)
}
},
m
emory
:
function
(
index
,
step
)
{
buildM
emory
:
function
(
index
,
step
)
{
if
(
step
.
memory
)
{
this
.
memoryChanges
.
push
(
index
)
}
},
s
torage
:
function
(
index
,
step
,
currentAddress
)
{
buildS
torage
:
function
(
index
,
step
,
currentAddress
)
{
var
change
=
false
if
(
step
.
address
)
{
// new context
...
...
@@ -111,7 +111,7 @@ module.exports = {
return
currentAddress
},
d
epth
:
function
(
index
,
step
,
currentDepth
,
callStack
)
{
buildD
epth
:
function
(
index
,
step
,
currentDepth
,
callStack
)
{
if
(
step
.
depth
===
undefined
)
return
if
(
step
.
depth
>
currentDepth
)
{
if
(
index
===
0
)
{
...
...
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