Skip to content
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

Tag some ExternalAddress method as to ignore by testNoEquivalentSuperclassMethods #17416

Merged
merged 2 commits into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/ReleaseTests/ReleaseTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ ReleaseTest >> testNoEquivalentSuperclassMethods [
ifNotNil: [ :overridenMethod | method equivalentTo: overridenMethod ]
ifNil: [ false ] ].

self assert: methods size <= 326
self assert: methods size <= 305
]

{ #category : 'tests - variables' }
Expand Down
60 changes: 60 additions & 0 deletions src/UnifiedFFI/ExternalAddress.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,16 @@ ExternalAddress >> boolean8AtOffset: zeroBasedOffset put: value [
{ #category : '*UnifiedFFI' }
ExternalAddress >> booleanAt: byteIndex [
"This method is duplicated in this subclass with the purpose of ensuring a monomorphic inline cache in the following message send."

<ignoreMethodWithEquivalentInSuperclass>
^ self boolean8AtOffset: byteIndex - 1
]

{ #category : '*UnifiedFFI' }
ExternalAddress >> booleanAt: byteIndex put: value [
"This method is duplicated in this subclass with the purpose of ensuring a monomorphic inline cache in the following message send."

<ignoreMethodWithEquivalentInSuperclass>
^ self boolean8AtOffset: byteIndex - 1 put: value
]

Expand Down Expand Up @@ -109,12 +113,16 @@ ExternalAddress >> copyFromOffset: startZeroBasedOffset to: endZeroBasedOffset [
{ #category : '*UnifiedFFI' }
ExternalAddress >> doubleAt: byteIndex [
"This method is duplicated in this subclass with the purpose of ensuring a monomorphic inline cache in the following message send."

<ignoreMethodWithEquivalentInSuperclass>
^ self float64AtOffset: byteIndex - 1
]

{ #category : '*UnifiedFFI' }
ExternalAddress >> doubleAt: byteIndex put: value [
"This method is duplicated in this subclass with the purpose of ensuring a monomorphic inline cache in the following message send."

<ignoreMethodWithEquivalentInSuperclass>
^ self float64AtOffset: byteIndex - 1 put: value
]

Expand Down Expand Up @@ -152,12 +160,16 @@ ExternalAddress >> float64AtOffset: zeroBasedOffset put: value [
{ #category : '*UnifiedFFI' }
ExternalAddress >> floatAt: byteIndex [
"This method is duplicated in this subclass with the purpose of ensuring a monomorphic inline cache in the following message send."

<ignoreMethodWithEquivalentInSuperclass>
^ self float32AtOffset: byteIndex - 1
]

{ #category : '*UnifiedFFI' }
ExternalAddress >> floatAt: byteIndex put: value [
"This method is duplicated in this subclass with the purpose of ensuring a monomorphic inline cache in the following message send."

<ignoreMethodWithEquivalentInSuperclass>
^ self float32AtOffset: byteIndex - 1 put: value
]

Expand Down Expand Up @@ -333,12 +345,16 @@ ExternalAddress >> pointer [
{ #category : '*UnifiedFFI' }
ExternalAddress >> pointerAt: byteIndex [
"This method is duplicated in this subclass with the purpose of ensuring a monomorphic inline cache in the following message send."

<ignoreMethodWithEquivalentInSuperclass>
^ self pointerAtOffset: byteIndex - 1
]

{ #category : '*UnifiedFFI' }
ExternalAddress >> pointerAt: byteIndex put: value [
"This method is duplicated in this subclass with the purpose of ensuring a monomorphic inline cache in the following message send."

<ignoreMethodWithEquivalentInSuperclass>
^ self pointerAtOffset: byteIndex - 1 put: value
]

Expand Down Expand Up @@ -419,41 +435,65 @@ ExternalAddress >> replaceFrom: start to: stop with: replacement startingAt: rep

{ #category : '*UnifiedFFI' }
ExternalAddress >> signedCharAt: byteOffset [
"This method is duplicated in this subclass with the purpose of ensuring a monomorphic inline cache in the following message send."

<ignoreMethodWithEquivalentInSuperclass>
^ self char8AtOffset: byteOffset - 1
]

{ #category : '*UnifiedFFI' }
ExternalAddress >> signedCharAt: byteIndex put: aCharacter [
"This method is duplicated in this subclass with the purpose of ensuring a monomorphic inline cache in the following message send."

<ignoreMethodWithEquivalentInSuperclass>
^ self char8AtOffset: byteIndex - 1 put: aCharacter
]

{ #category : '*UnifiedFFI' }
ExternalAddress >> signedLongAt: byteIndex [
"This method is duplicated in this subclass with the purpose of ensuring a monomorphic inline cache in the following message send."

<ignoreMethodWithEquivalentInSuperclass>
^ self int32AtOffset: byteIndex - 1
]

{ #category : '*UnifiedFFI' }
ExternalAddress >> signedLongAt: byteIndex put: value [
"This method is duplicated in this subclass with the purpose of ensuring a monomorphic inline cache in the following message send."

<ignoreMethodWithEquivalentInSuperclass>
^ self int32AtOffset: byteIndex - 1 put: value
]

{ #category : '*UnifiedFFI' }
ExternalAddress >> signedLongLongAt: byteIndex [
"This method is duplicated in this subclass with the purpose of ensuring a monomorphic inline cache in the following message send."

<ignoreMethodWithEquivalentInSuperclass>
^ self int64AtOffset: byteIndex - 1
]

{ #category : '*UnifiedFFI' }
ExternalAddress >> signedLongLongAt: byteIndex put: value [
"This method is duplicated in this subclass with the purpose of ensuring a monomorphic inline cache in the following message send."

<ignoreMethodWithEquivalentInSuperclass>
^ self int64AtOffset: byteIndex - 1 put: value
]

{ #category : '*UnifiedFFI' }
ExternalAddress >> signedShortAt: byteIndex [
"This method is duplicated in this subclass with the purpose of ensuring a monomorphic inline cache in the following message send."

<ignoreMethodWithEquivalentInSuperclass>
^ self int16AtOffset: byteIndex - 1
]

{ #category : '*UnifiedFFI' }
ExternalAddress >> signedShortAt: byteIndex put: value [
"This method is duplicated in this subclass with the purpose of ensuring a monomorphic inline cache in the following message send."

<ignoreMethodWithEquivalentInSuperclass>
^ self int16AtOffset: byteIndex - 1 put: value
]

Expand Down Expand Up @@ -527,60 +567,80 @@ ExternalAddress >> unpackHandleFromArity: arity [
{ #category : '*UnifiedFFI' }
ExternalAddress >> unsignedByteAt: byteIndex [
"This method is duplicated in this subclass with the purpose of ensuring a monomorphic inline cache in the following message send."

<ignoreMethodWithEquivalentInSuperclass>
^ self uint8AtOffset: byteIndex - 1
]

{ #category : '*UnifiedFFI' }
ExternalAddress >> unsignedByteAt: byteIndex put: value [
"This method is duplicated in this subclass with the purpose of ensuring a monomorphic inline cache in the following message send."

<ignoreMethodWithEquivalentInSuperclass>
^ self uint8AtOffset: byteIndex - 1 put: value
]

{ #category : '*UnifiedFFI' }
ExternalAddress >> unsignedCharAt: byteIndex [
"This method is duplicated in this subclass with the purpose of ensuring a monomorphic inline cache in the following message send."

<ignoreMethodWithEquivalentInSuperclass>
^ self char8AtOffset: byteIndex - 1
]

{ #category : '*UnifiedFFI' }
ExternalAddress >> unsignedCharAt: byteIndex put: aCharacter [
"This method is duplicated in this subclass with the purpose of ensuring a monomorphic inline cache in the following message send."

<ignoreMethodWithEquivalentInSuperclass>
^ self char8AtOffset: byteIndex - 1 put: aCharacter
]

{ #category : '*UnifiedFFI' }
ExternalAddress >> unsignedLongAt: byteIndex [
"This method is duplicated in this subclass with the purpose of ensuring a monomorphic inline cache in the following message send."

<ignoreMethodWithEquivalentInSuperclass>
^ self uint32AtOffset: byteIndex - 1
]

{ #category : '*UnifiedFFI' }
ExternalAddress >> unsignedLongAt: byteIndex put: value [
"This method is duplicated in this subclass with the purpose of ensuring a monomorphic inline cache in the following message send."

<ignoreMethodWithEquivalentInSuperclass>
^ self uint32AtOffset: byteIndex - 1 put: value
]

{ #category : '*UnifiedFFI' }
ExternalAddress >> unsignedLongLongAt: byteIndex [
"This method is duplicated in this subclass with the purpose of ensuring a monomorphic inline cache in the following message send."

<ignoreMethodWithEquivalentInSuperclass>
^ self uint64AtOffset: byteIndex - 1
]

{ #category : '*UnifiedFFI' }
ExternalAddress >> unsignedLongLongAt: byteIndex put: value [
"This method is duplicated in this subclass with the purpose of ensuring a monomorphic inline cache in the following message send."

<ignoreMethodWithEquivalentInSuperclass>
^ self uint64AtOffset: byteIndex - 1 put: value
]

{ #category : '*UnifiedFFI' }
ExternalAddress >> unsignedShortAt: byteIndex [
"This method is duplicated in this subclass with the purpose of ensuring a monomorphic inline cache in the following message send."

<ignoreMethodWithEquivalentInSuperclass>
^ self uint16AtOffset: byteIndex - 1
]

{ #category : '*UnifiedFFI' }
ExternalAddress >> unsignedShortAt: byteIndex put: value [
"This method is duplicated in this subclass with the purpose of ensuring a monomorphic inline cache in the following message send."

<ignoreMethodWithEquivalentInSuperclass>
^ self uint16AtOffset: byteIndex - 1 put: value
]

Expand Down