-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Improved documentation of some object model classes #5
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
The opertions name looks like a historical artifact. Signed-off-by: Stefan Marr <[email protected]>
Signed-off-by: Stefan Marr <[email protected]>
Signed-off-by: Stefan Marr <[email protected]>
Signed-off-by: Stefan Marr <[email protected]>
Glossed over it. Looks good. |
|
||
public abstract Shape createShape(ObjectType operations, Object sharedData, int id); |
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.
@woess Can you create something else than a root shape manually? Maybe we should name the method also createRootShape.
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.
We currently don't have any explicit concept of a root shape in names. But yes, you can only create root shapes this way. I'll consider renaming it.
Looks good. |
Improved documentation of some object model classes
Why don't we document method return values in Javadoc? My IDE complains about its being non-present... |
It looked redundant to me. Should it be documented? |
Documenting return type of a method is "redundant"? Redundant to what? I am looking for example at createShape method which is missing return tag, and I don't think adding:
would hurt. |
Ok, just for the sake of argument, and since I am not really used to writing JavaDoc, here my reasoning and my questions: When looking at the At no point in the process I had a question about the returned object, because well, So, ok, I thought, I'd add this comment: /**
* Create a root shape.
*
* @param objectType that describes the object instance with this shape.
*/ Eclipse's template also gave me the Thinking about it now, I guess, I did feel it isn't very DRY, and I didn't want to have three lines that say essentially the same. So, now the question for me is whether we want the |
I've seen too many |
In case you want to avoid duplication, I would prefer less verbose prose section and more descriptive @return value - that is the structured information about the method, not the prose section. One property that should be put into @return section is whether it can return null or not. Different projects have different rules for that - I don't know what Truffle policy is - probably there is none yet. |
…ruffle:DirectAccessors to master Simple and direct Accessor nested interfaces * commit 'fe123211a38c3e5be9eba37fbd87e63cdecb08a1': Let each package provide their own Accessor.Interface that other package can lookup (via Accessor) and use.
Introduce the thermometer tool
This patch adds the following match rules to generate bitfield move instruction on AArch64: * (RightShift (LeftShift value a) b) -> SBFX/SBFIZ * (UnsignedRightShift (LeftShift value a) b) -> UBFX/UBFIZ * (LeftShift (SignExtend value) a) -> SBFIZ Eg: lsl w0, w1, oracle#8 asr w0, w0, oracle#15 is optimized to: sbfx w0, w1, oracle#7, oracle#17 It also adds the rules to integrate the ZeroExtend with unsigned bitfield move operation. Eg: ubfiz w0, w1, oracle#5, oracle#12 and x0, x0, #0xffffffff is optimized to: ubfiz x0, x1, oracle#5, oracle#12 Change-Id: I2b635d4895db0d5f4c30630176f336e9a226ccaf
Co-authored-by: jose.pereda <[email protected]>
add MAINTAINING.md
This PR adds some comments to
Layout.createShape(..)
,Location
, andProperty
.Not sure whether the term 'language-specific' is ideal, but I wanted to document which elements are free for implementers to use.
Ping @jtulach and @woess.