Skip to content

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

Merged
merged 2 commits into from
Aug 30, 2018

Conversation

thk123
Copy link
Contributor

@thk123 thk123 commented Aug 21, 2018

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


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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Link to DOC-20?

@@ -37,7 +37,95 @@ To be documented.

\section java-bytecode-remove-java-new Remove java new
Copy link
Member

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

@@ -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:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

\ref codet

@@ -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
Copy link
Member

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.

@thk123
Copy link
Contributor Author

thk123 commented Aug 21, 2018

@peterschrammel comments addressed in a separate commit for easy reviewing - will squash before merging.

@thk123
Copy link
Contributor Author

thk123 commented Aug 21, 2018

Also wrapped text as a separate commit but will squash when done.

@thk123 thk123 assigned LAJW and unassigned thk123 and mgudemann Aug 21, 2018
Copy link
Contributor

@LAJW LAJW left a 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.


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
Copy link
Member

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.

@peterschrammel peterschrammel assigned thk123 and unassigned LAJW Aug 30, 2018
@thk123 thk123 force-pushed the doc/remove-java-new branch from 4428ed4 to d1dc554 Compare August 30, 2018 09:41
@thk123 thk123 force-pushed the doc/remove-java-new branch from d1dc554 to fa6ed33 Compare August 30, 2018 13:08
@thk123 thk123 merged commit 1351169 into diffblue:develop Aug 30, 2018
@thk123 thk123 deleted the doc/remove-java-new branch August 30, 2018 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants