Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
clean-and-itasks
sapl-interpreter
Commits
f6634ed9
Commit
f6634ed9
authored
Oct 12, 2015
by
Laszlo Domoszlai
Browse files
some unnecessary set_return
parent
c0acab9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
interpreter/code.c
View file @
f6634ed9
...
...
@@ -290,7 +290,8 @@ void exec(Code* expr, int frame_ptr, int root_frame_ptr)
Thunk
*
target
=
thunk
;
thunk
=
(
Thunk
*
)
alloc_heap
(
newsize
);
target
->
desc
=
(
Desc
*
)
__FORWARD_PTR__
;
target
->
_forward_ptr
=
thunk
;
target
->
_forward_ptr
=
thunk
;
set_return
(
root_frame_ptr
,
thunk
);
}
thunk
->
desc
=
slice
;
...
...
@@ -302,7 +303,6 @@ void exec(Code* expr, int frame_ptr, int root_frame_ptr)
=
((
AppEntry
*
)
expr
)
->
args
[
i
]
->
create_thunk
(((
AppEntry
*
)
expr
)
->
args
[
i
],
frame_ptr
);
}
set_return
(
root_frame_ptr
,
thunk
);
destroy_stack_frame
(
root_frame_ptr
);
destroy_stack_frame_b
(
root_frame_ptr_b
);
return
;
...
...
@@ -369,7 +369,8 @@ void exec(Code* expr, int frame_ptr, int root_frame_ptr)
Thunk
*
target
=
thunk
;
thunk
=
(
Thunk
*
)
alloc_heap
(
newsize
);
target
->
desc
=
(
Desc
*
)
__FORWARD_PTR__
;
target
->
_forward_ptr
=
thunk
;
target
->
_forward_ptr
=
thunk
;
set_return
(
root_frame_ptr
,
thunk
);
}
thunk
->
desc
=
slice
;
...
...
@@ -383,7 +384,6 @@ void exec(Code* expr, int frame_ptr, int root_frame_ptr)
=
((
AppEntry
*
)
expr
)
->
args
[
i
]
->
create_thunk
(((
AppEntry
*
)
expr
)
->
args
[
i
],
frame_ptr
);
}
set_return
(
root_frame_ptr
,
thunk
);
destroy_stack_frame
(
root_frame_ptr
);
destroy_stack_frame_b
(
root_frame_ptr_b
);
return
;
...
...
@@ -409,9 +409,9 @@ void exec(Code* expr, int frame_ptr, int root_frame_ptr)
else
{
forward_thunk
(
arg
,
root_frame_ptr
);
set_return
(
root_frame_ptr
,
arg
);
}
set_return
(
root_frame_ptr
,
arg
);
destroy_stack_frame
(
root_frame_ptr
);
destroy_stack_frame_b
(
root_frame_ptr_b
);
return
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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