-
Notifications
You must be signed in to change notification settings - Fork 274
Add overview documentation for the remove_java_new [DOC-25] #2773
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
e60e82a
to
177d72a
Compare
jbmc/src/java_bytecode/README.md
Outdated
|
||
These are converted by \ref remove_java_newt::lower_java_new_array | ||
|
||
See TODO:details about java arrays for details on how arrays are represented in codet. It first allocates the array object as with a regular Java object. Then the size component is set to be the size of the array and the data component is also initialized. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Link to DOC-20?
jbmc/src/java_bytecode/README.md
Outdated
@@ -37,7 +37,95 @@ To be documented. | |||
|
|||
\section java-bytecode-remove-java-new Remove java new |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Improve heading, maybe: Remove new
, newarray
and multinewarray
Operators
jbmc/src/java_bytecode/README.md
Outdated
@@ -37,7 +37,95 @@ To be documented. | |||
|
|||
\section java-bytecode-remove-java-new Remove java new | |||
|
|||
To be documented. | |||
\ref remove_java_new.h is responsible for converting the `new`, `newarray` and `multianewarray` Java bytecode operation into codet. Specifically it converts the bytecode instruction into: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
\ref codet
jbmc/src/java_bytecode/README.md
Outdated
@@ -37,7 +37,95 @@ To be documented. | |||
|
|||
\section java-bytecode-remove-java-new Remove java new | |||
|
|||
To be documented. | |||
\ref remove_java_new.h is responsible for converting the `new`, `newarray` and `multianewarray` Java bytecode operation into codet. Specifically it converts the bytecode instruction into: | |||
- An ALLOC with the size of the object being created |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Be more precise what ALLOC is.
@peterschrammel comments addressed in a separate commit for easy reviewing - will squash before merging. |
Also wrapped text as a separate commit but will squash when done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see nothing wrong here.
jbmc/src/java_bytecode/README.md
Outdated
|
||
These are converted by \ref remove_java_newt::lower_java_new_array | ||
|
||
See TODO: DOC-20: for details on how arrays are represented in codet. It first |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This reference is not useful because DOC-20 is nothing public. Refer to some entity within this document or create a new ticket that covers this TODO.
4428ed4
to
d1dc554
Compare
d1dc554
to
fa6ed33
Compare
Added overview of the
remove_java_new
phase.Reviewers - do you think this is too much detail for an overview? I'm thinking perhaps killing all the subsections and moving them into the methods they talk about or perhaps into the documentation for the header file.
Zip containing the updated header file to aid reviewing: group__java__bytecode.html.zip