-
Notifications
You must be signed in to change notification settings - Fork 65
/
CogSSOptStatus.class.st
65 lines (54 loc) · 1.39 KB
/
CogSSOptStatus.class.st
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
Class {
#name : #CogSSOptStatus,
#superclass : #VMStructType,
#instVars : [
'isReceiverResultRegLive',
'ssEntry'
],
#category : #'VMMaker-JIT'
}
{ #category : #translation }
CogSSOptStatus class >> instVarNamesAndTypesForTranslationDo: aBinaryBlock [
"enumerate aBinaryBlock with the names and C type strings for the inst vars to include in a CogSSOptStatus struct."
self instVarNames do:
[:ivn|
aBinaryBlock
value: ivn
value: (ivn = 'ssEntry'
ifTrue: [#'CogSimStackEntry *']
ifFalse: [#sqInt])]
]
{ #category : #accessing }
CogSSOptStatus >> isReceiverResultRegLive [
"Answer the value of isReceiverResultRegLive"
^ isReceiverResultRegLive
]
{ #category : #accessing }
CogSSOptStatus >> isReceiverResultRegLive: anObject [
"Set the value of isReceiverResultRegLive"
^isReceiverResultRegLive := anObject
]
{ #category : #printing }
CogSSOptStatus >> printStateOn: aStream [
<doNotGenerate>
(isReceiverResultRegLive notNil
or: [ssEntry notNil]) ifTrue:
[aStream
nextPut: $(;
print: isReceiverResultRegLive;
space.
ssEntry
ifNil: [aStream nextPutAll: 'ssEntry is nil']
ifNotNil: [ssEntry printStateOn: aStream].
aStream nextPut: $)]
]
{ #category : #accessing }
CogSSOptStatus >> ssEntry [
"Answer the value of ssEntry"
^ ssEntry
]
{ #category : #accessing }
CogSSOptStatus >> ssEntry: anObject [
"Set the value of ssEntry"
^ssEntry := anObject
]