Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tiger
nolimips
Commits
7e88b679
Commit
7e88b679
authored
Jul 18, 2003
by
Benoit Perrot
Browse files
Add unlimited register existence checker
parent
b5747e87
Changes
3
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
7e88b679
2003-07-18 Benot Perrot <benoit@lrde.epita.fr>
* src/vm/cpu.hh: Add a checker for unlimited register existence.
2003-07-17 Benot Perrot <benoit@lrde.epita.fr>
* src/vm/memory.hh: stack_size is an argument of Memory constructor.
...
...
src/vm/cpu.hh
View file @
7e88b679
...
...
@@ -84,9 +84,14 @@ namespace vm
GPR
[
k
]
=
r
;
}
bool
has_unlimited
(
int
i
)
const
{
return
unlimited
.
has
(
i
);
}
register_t
get_unlimited
(
int
i
)
const
{
// FIXME: precondition: check existence!
precondition
(
has_unlimited
(
i
));
return
unlimited
.
get
(
i
);
}
void
set_unlimited
(
int
i
,
register_t
r
)
...
...
src/vm/memory.hh
View file @
7e88b679
...
...
@@ -29,7 +29,6 @@
# ifndef INT32_MAX
# define INT32_MAX 2147483647
# endif
//# include <string.h>
namespace
vm
{
...
...
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