-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move interop implementation into the image
This makes it possible to properly support higher-level data structures, such as OrderedCollections, DateAndTime, and Exceptions.
- Loading branch information
Showing
190 changed files
with
871 additions
and
4 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
src/TruffleSqueak-Core.package/BlockClosure.extension/instance/interopExecute..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
*TruffleSqueak-Core-executable | ||
interopExecute: arguments | ||
^ (self numArgs == arguments size) | ||
ifTrue: [ self valueWithArguments: arguments ] | ||
ifFalse: [ "TODO: throw ArityException" nil ] |
3 changes: 3 additions & 0 deletions
3
src/TruffleSqueak-Core.package/BlockClosure.extension/instance/interopGetExecutableName.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*TruffleSqueak-Core-executable | ||
interopGetExecutableName | ||
^ self asString |
3 changes: 3 additions & 0 deletions
3
src/TruffleSqueak-Core.package/BlockClosure.extension/instance/interopHasExecutableName.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*TruffleSqueak-Core-executable | ||
interopHasExecutableName | ||
^ true |
3 changes: 3 additions & 0 deletions
3
src/TruffleSqueak-Core.package/BlockClosure.extension/instance/interopIsExecutable.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*TruffleSqueak-Core-executable | ||
interopIsExecutable | ||
^ true |
8 changes: 8 additions & 0 deletions
8
src/TruffleSqueak-Core.package/BlockClosure.extension/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"interopExecute:" : "fn 3/4/2021 11:52", | ||
"interopGetExecutableName" : "fn 11/24/2020 14:01", | ||
"interopHasExecutableName" : "fn 11/24/2020 14:01", | ||
"interopIsExecutable" : "fn 11/24/2020 13:50" } } |
2 changes: 2 additions & 0 deletions
2
src/TruffleSqueak-Core.package/BlockClosure.extension/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{ | ||
"name" : "BlockClosure" } |
3 changes: 3 additions & 0 deletions
3
src/TruffleSqueak-Core.package/Boolean.extension/instance/interopIsBoolean.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*TruffleSqueak-Core-boolean | ||
interopIsBoolean | ||
^ true |
5 changes: 5 additions & 0 deletions
5
src/TruffleSqueak-Core.package/Boolean.extension/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"interopIsBoolean" : "fn 3/4/2021 11:12" } } |
2 changes: 2 additions & 0 deletions
2
src/TruffleSqueak-Core.package/Boolean.extension/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{ | ||
"name" : "Boolean" } |
7 changes: 7 additions & 0 deletions
7
src/TruffleSqueak-Core.package/ByteArray.extension/instance/interopReadArrayElement..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
*TruffleSqueak-Core-arrays | ||
interopReadArrayElement: index | ||
| value | | ||
value := self byteAt: index + 1. | ||
^ value <= 128 | ||
ifTrue: [ value ] | ||
ifFalse: [ value - 256 ] |
5 changes: 5 additions & 0 deletions
5
src/TruffleSqueak-Core.package/ByteArray.extension/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"interopReadArrayElement:" : "fn 3/5/2021 12:48" } } |
2 changes: 2 additions & 0 deletions
2
src/TruffleSqueak-Core.package/ByteArray.extension/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{ | ||
"name" : "ByteArray" } |
3 changes: 3 additions & 0 deletions
3
src/TruffleSqueak-Core.package/Class.extension/instance/interopGetMetaQualifiedName.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*TruffleSqueak-Core-meta-object | ||
interopGetMetaQualifiedName | ||
^ self asString |
3 changes: 3 additions & 0 deletions
3
src/TruffleSqueak-Core.package/Class.extension/instance/interopGetMetaSimpleName.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*TruffleSqueak-Core-meta-object | ||
interopGetMetaSimpleName | ||
^ self asString |
9 changes: 9 additions & 0 deletions
9
src/TruffleSqueak-Core.package/Class.extension/instance/interopInstantiate..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
*TruffleSqueak-Core-instantiable | ||
interopInstantiate: arguments | ||
^ arguments isEmpty | ||
ifTrue: [ self new ] | ||
ifFalse: [ | arg | | ||
arg := arguments first. | ||
(arg isInteger and: [ arg isLarge not ]) | ||
ifTrue: [ self new: arg ] | ||
ifFalse: [ self new ]] |
3 changes: 3 additions & 0 deletions
3
src/TruffleSqueak-Core.package/Class.extension/instance/interopIsInstantiable.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*TruffleSqueak-Core-instantiable | ||
interopIsInstantiable | ||
^ self isImmediateClass not |
3 changes: 3 additions & 0 deletions
3
src/TruffleSqueak-Core.package/Class.extension/instance/interopIsMetaInstance..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*TruffleSqueak-Core-meta-object | ||
interopIsMetaInstance: instance | ||
^ instance isKindOf: self |
3 changes: 3 additions & 0 deletions
3
src/TruffleSqueak-Core.package/Class.extension/instance/interopIsMetaObject.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*TruffleSqueak-Core-meta-object | ||
interopIsMetaObject | ||
^ true |
10 changes: 10 additions & 0 deletions
10
src/TruffleSqueak-Core.package/Class.extension/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"interopGetMetaQualifiedName" : "fn 11/24/2020 12:54", | ||
"interopGetMetaSimpleName" : "fn 11/24/2020 12:54", | ||
"interopInstantiate:" : "fn 11/24/2020 13:36", | ||
"interopIsInstantiable" : "fn 11/24/2020 13:36", | ||
"interopIsMetaInstance:" : "fn 11/24/2020 12:55", | ||
"interopIsMetaObject" : "fn 11/24/2020 16:01" } } |
2 changes: 2 additions & 0 deletions
2
src/TruffleSqueak-Core.package/Class.extension/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{ | ||
"name" : "Class" } |
4 changes: 4 additions & 0 deletions
4
src/TruffleSqueak-Core.package/Date.extension/instance/interopAsDate.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
*TruffleSqueak-Core | ||
interopAsDate | ||
^ Interop asHostObject: ((Java type: 'java.time.LocalDate') | ||
ofEpochDay: start julianDayNumber - start posixEpochJulianDays) |
3 changes: 3 additions & 0 deletions
3
src/TruffleSqueak-Core.package/Date.extension/instance/interopIsDate.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*TruffleSqueak-Core | ||
interopIsDate | ||
^ true |
6 changes: 6 additions & 0 deletions
6
src/TruffleSqueak-Core.package/Date.extension/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"interopAsDate" : "fn 3/4/2021 16:53", | ||
"interopIsDate" : "fn 11/20/2020 16:45" } } |
2 changes: 2 additions & 0 deletions
2
src/TruffleSqueak-Core.package/Date.extension/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{ | ||
"name" : "Date" } |
3 changes: 3 additions & 0 deletions
3
src/TruffleSqueak-Core.package/DateAndTime.extension/instance/interopAsDate.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*TruffleSqueak-Core-date and time | ||
interopAsDate | ||
^ self asDate interopAsDate |
3 changes: 3 additions & 0 deletions
3
src/TruffleSqueak-Core.package/DateAndTime.extension/instance/interopAsInstant.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*TruffleSqueak-Core-date and time | ||
interopAsInstant | ||
^ Interop asHostObject: ((Java type: 'java.time.Instant') ofEpochSecond: self asUnixTime) |
4 changes: 4 additions & 0 deletions
4
src/TruffleSqueak-Core.package/DateAndTime.extension/instance/interopAsTime.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
*TruffleSqueak-Core-date and time | ||
interopAsTime | ||
^ Interop asHostObject: ((Java type: 'java.time.LocalTime') | ||
ofNanoOfDay: self asNanoSeconds) |
3 changes: 3 additions & 0 deletions
3
src/TruffleSqueak-Core.package/DateAndTime.extension/instance/interopAsTimeZone.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*TruffleSqueak-Core-date and time | ||
interopAsTimeZone | ||
^ self class localTimeZone interopAsTimeZone |
3 changes: 3 additions & 0 deletions
3
src/TruffleSqueak-Core.package/DateAndTime.extension/instance/interopIsDate.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*TruffleSqueak-Core-date and time | ||
interopIsDate | ||
^ true |
3 changes: 3 additions & 0 deletions
3
src/TruffleSqueak-Core.package/DateAndTime.extension/instance/interopIsTime.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*TruffleSqueak-Core-date and time | ||
interopIsTime | ||
^ true |
3 changes: 3 additions & 0 deletions
3
src/TruffleSqueak-Core.package/DateAndTime.extension/instance/interopIsTimeZone.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*TruffleSqueak-Core-date and time | ||
interopIsTimeZone | ||
^ true |
11 changes: 11 additions & 0 deletions
11
src/TruffleSqueak-Core.package/DateAndTime.extension/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"interopAsDate" : "fn 3/4/2021 16:28", | ||
"interopAsInstant" : "fn 3/4/2021 16:19", | ||
"interopAsTime" : "fn 3/4/2021 17:16", | ||
"interopAsTimeZone" : "fn 3/4/2021 16:17", | ||
"interopIsDate" : "fn 11/20/2020 17:16", | ||
"interopIsTime" : "fn 11/20/2020 17:16", | ||
"interopIsTimeZone" : "fn 11/20/2020 17:16" } } |
2 changes: 2 additions & 0 deletions
2
src/TruffleSqueak-Core.package/DateAndTime.extension/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{ | ||
"name" : "DateAndTime" } |
4 changes: 4 additions & 0 deletions
4
src/TruffleSqueak-Core.package/Duration.extension/instance/interopAsDuration.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
*TruffleSqueak-Core-duration | ||
interopAsDuration | ||
^ Interop asHostObject: ((Java type: 'java.time.Duration') | ||
ofSeconds: seconds nanoAdjustment: nanos) |
3 changes: 3 additions & 0 deletions
3
src/TruffleSqueak-Core.package/Duration.extension/instance/interopIsDuration.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*TruffleSqueak-Core-duration | ||
interopIsDuration | ||
^ true |
6 changes: 6 additions & 0 deletions
6
src/TruffleSqueak-Core.package/Duration.extension/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"interopAsDuration" : "fn 3/4/2021 13:08", | ||
"interopIsDuration" : "fn 11/24/2020 12:39" } } |
2 changes: 2 additions & 0 deletions
2
src/TruffleSqueak-Core.package/Duration.extension/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{ | ||
"name" : "Duration" } |
3 changes: 3 additions & 0 deletions
3
src/TruffleSqueak-Core.package/Exception.extension/instance/interopGetExceptionMessage.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*TruffleSqueak-Core-exception | ||
interopGetExceptionMessage | ||
^ messageText |
3 changes: 3 additions & 0 deletions
3
src/TruffleSqueak-Core.package/Exception.extension/instance/interopGetExceptionType.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*TruffleSqueak-Core-exception | ||
interopGetExceptionType | ||
^ Interop runtimeExceptionType |
3 changes: 3 additions & 0 deletions
3
src/TruffleSqueak-Core.package/Exception.extension/instance/interopHasExceptionMessage.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*TruffleSqueak-Core-exception | ||
interopHasExceptionMessage | ||
^ messageText ~~ nil |
3 changes: 3 additions & 0 deletions
3
src/TruffleSqueak-Core.package/Exception.extension/instance/interopIsException.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*TruffleSqueak-Core-exception | ||
interopIsException | ||
^ true |
3 changes: 3 additions & 0 deletions
3
src/TruffleSqueak-Core.package/Exception.extension/instance/interopThrowException.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*TruffleSqueak-Core-exception | ||
interopThrowException | ||
^ self signal |
9 changes: 9 additions & 0 deletions
9
src/TruffleSqueak-Core.package/Exception.extension/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"interopGetExceptionMessage" : "fn 11/24/2020 12:45", | ||
"interopGetExceptionType" : "fn 3/4/2021 12:03", | ||
"interopHasExceptionMessage" : "fn 11/24/2020 12:45", | ||
"interopIsException" : "fn 11/24/2020 12:42", | ||
"interopThrowException" : "fn 11/24/2020 12:43" } } |
2 changes: 2 additions & 0 deletions
2
src/TruffleSqueak-Core.package/Exception.extension/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{ | ||
"name" : "Exception" } |
3 changes: 3 additions & 0 deletions
3
src/TruffleSqueak-Core.package/False.extension/instance/interopAsBoolean.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*TruffleSqueak-Core-boolean | ||
interopAsBoolean | ||
^ (Java type: 'java.lang.Boolean') FALSE |
5 changes: 5 additions & 0 deletions
5
src/TruffleSqueak-Core.package/False.extension/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"interopAsBoolean" : "fn 3/4/2021 11:12" } } |
2 changes: 2 additions & 0 deletions
2
src/TruffleSqueak-Core.package/False.extension/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{ | ||
"name" : "False" } |
4 changes: 4 additions & 0 deletions
4
src/TruffleSqueak-Core.package/Interop.class/class/asHostObject..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
primitives internal | ||
asHostObject: aGuestObject | ||
<primitive: 'primitiveToHostObject' module: 'PolyglotPlugin'> | ||
self primitiveFailed |
4 changes: 4 additions & 0 deletions
4
src/TruffleSqueak-Core.package/Interop.class/class/asJavaInteger..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
primitives internal | ||
asJavaInteger: aString | ||
<primitive: 'primitiveToJavaInteger' module: 'PolyglotPlugin'> | ||
self primitiveFailed |
4 changes: 4 additions & 0 deletions
4
src/TruffleSqueak-Core.package/Interop.class/class/asJavaString..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
primitives internal | ||
asJavaString: aString | ||
<primitive: 'primitiveToJavaString' module: 'PolyglotPlugin'> | ||
self primitiveFailed |
4 changes: 4 additions & 0 deletions
4
src/TruffleSqueak-Core.package/Interop.class/class/asTriState..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
primitives internal | ||
asTriState: aBoolean | ||
<primitive: 'primitiveToTriState' module: 'PolyglotPlugin'> | ||
self primitiveFailed |
4 changes: 4 additions & 0 deletions
4
src/TruffleSqueak-Core.package/Interop.class/class/parseExceptionType.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
primitives internal | ||
parseExceptionType | ||
<primitive: 'primitiveGetParseExceptionType' module: 'PolyglotPlugin'> | ||
self primitiveFailed |
4 changes: 4 additions & 0 deletions
4
src/TruffleSqueak-Core.package/Interop.class/class/runtimeExceptionType.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
primitives internal | ||
runtimeExceptionType | ||
<primitive: 'primitiveGetRuntimeExceptionType' module: 'PolyglotPlugin'> | ||
self primitiveFailed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
src/TruffleSqueak-Core.package/Number.extension/instance/interopIsNumber.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*TruffleSqueak-Core-number | ||
interopIsNumber | ||
^ true |
5 changes: 5 additions & 0 deletions
5
src/TruffleSqueak-Core.package/Number.extension/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"interopIsNumber" : "fn 11/24/2020 12:35" } } |
2 changes: 2 additions & 0 deletions
2
src/TruffleSqueak-Core.package/Number.extension/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{ | ||
"name" : "Number" } |
3 changes: 3 additions & 0 deletions
3
...ruffleSqueak-Core.package/NumberParserError.extension/instance/interopGetExceptionType.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*TruffleSqueak-Core-exception | ||
interopGetExceptionType | ||
^ Interop parseExceptionType |
5 changes: 5 additions & 0 deletions
5
src/TruffleSqueak-Core.package/NumberParserError.extension/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"interopGetExceptionType" : "fn 3/4/2021 12:04" } } |
2 changes: 2 additions & 0 deletions
2
src/TruffleSqueak-Core.package/NumberParserError.extension/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{ | ||
"name" : "NumberParserError" } |
12 changes: 12 additions & 0 deletions
12
src/TruffleSqueak-Core.package/Object.extension/class/interopMemberToSelector..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
*TruffleSqueak-Core | ||
interopMemberToSelector: aMember | ||
| selectorName selectorNameVariant currentClass | | ||
selectorName := aMember asString copyReplaceAll: '_' with: ':'. | ||
selectorNameVariant := (selectorName, ':'). | ||
currentClass := self. | ||
[ currentClass isNil ] whileFalse: [ | ||
currentClass selectors | ||
detect: [ :ea | ea = selectorName or: [ ea = selectorNameVariant ] ] | ||
ifFound: [ :s | ^ s ]. | ||
currentClass := currentClass superclass ]. | ||
^(NotFound object: aMember) signal |
6 changes: 6 additions & 0 deletions
6
src/TruffleSqueak-Core.package/Object.extension/class/interopSelectorToMember..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
*TruffleSqueak-Core | ||
interopSelectorToMember: aSelector | ||
| member | | ||
member := aSelector asString. | ||
member last = $: ifTrue: [ member := member allButLast copyReplaceAll: ':' with: '_' ]. | ||
^ member |
3 changes: 3 additions & 0 deletions
3
src/TruffleSqueak-Core.package/Object.extension/instance/interopAsBoolean.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*TruffleSqueak-Core-boolean | ||
interopAsBoolean | ||
self subclassResponsibility |
3 changes: 3 additions & 0 deletions
3
src/TruffleSqueak-Core.package/Object.extension/instance/interopAsByte.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*TruffleSqueak-Core-number | ||
interopAsByte | ||
self subclassResponsibility |
3 changes: 3 additions & 0 deletions
3
src/TruffleSqueak-Core.package/Object.extension/instance/interopAsDate.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*TruffleSqueak-Core-date and time | ||
interopAsDate | ||
self subclassResponsibility |
3 changes: 3 additions & 0 deletions
3
src/TruffleSqueak-Core.package/Object.extension/instance/interopAsDouble.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*TruffleSqueak-Core-number | ||
interopAsDouble | ||
self subclassResponsibility |
Oops, something went wrong.