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
f1b4d027
Commit
f1b4d027
authored
Aug 31, 2015
by
Laszlo Domoszlai
Browse files
use the thunk in the code area in the case of Litarals (instead of copying it to the heap)
parent
cd113baf
Changes
1
Hide whitespace changes
Inline
Side-by-side
interpreter/code.c
View file @
f1b4d027
...
...
@@ -297,7 +297,7 @@ void exec(Code* expr, int frame_ptr, int root_frame_ptr)
}
}
case
CT_LIT
:
set_return
(
root_frame_ptr
,
updateT
(
get_dst
(
root_frame_ptr
),
&
((
LitEntry
*
)
expr
)
->
thunk
)
)
;
set_return
(
root_frame_ptr
,
&
((
LitEntry
*
)
expr
)
->
thunk
);
destroy_stack_frame
(
root_frame_ptr
);
return
;
case
CT_SELECT
:
...
...
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