Class SVM_INITO
java.lang.Object
svm.instruction.SVM_Instruction
svm.instruction.SVM_INITO
SVM-INSTRUCTION: INITO
Runtime Stack
..., oaddr →
...
The oaddr of a save-object is popped off the Runtime stack. It points to the first value after the Object head, and is reduced and saved in the SAVE-OBJECT pointer.
SAVE-OBJECT ---------->.=====================.
| |
| Object head |
| |
TOS oaddr ------------>|=====================|
| |
NEXT-------------|->.================. |
| | oaddr | |
| '================' |
| |
'====================='
See: SVM_GETO and SVM_SETO. See also S-Port - Definition of S-code - sect. 7. INTERMEDIATE RESULTS.
Link to GitHub: Source File.
- Author:
- S-Port: Definition of S-code, Øystein Myhre Andersen
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static intThe SAVE_INDEX so farprivate static intThe SAVE_LENGTHprivate static ObjectAddressThe object address to the SAVE_OBJECTFields inherited from class SVM_Instruction
iADD, iADDREG, iAND, iASSIGN, iCALL, iCALLSYS, iCOMPARE, iCONVERT, iDECO, iDIST, iDIV, iDUP, iENTER, iEQV, iGETO, iGOTO, iIMP, iINCO, iINITO, iJUMP, iJUMPIF, iLINE, iLOAD, iLOADA, iMax, iMULT, iNEG, iNOOP, iNOT, iOR, iPOPK, iPRECALL, iPUSHC, iPUSHLEN, iPUSHR, iREM, iRESTORE, iRETURN, iSAVE, iSETO, iSHIFT, iSTORE, iSUB, iSWITCH, iXOR, opcode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Execute this SVM instruction(package private) static ObjectAddressget()Used by SVM_GETOstatic SVM_Instructionread(AttributeInputStream inpt) Reads an SVM_INITO instruction from the given input.(package private) static voidset(ObjectAddress oaddr) Used by SVM_SETOtoString()voidwrite(AttributeOutputStream oupt) Write this SVM instruction to the given output.Methods inherited from class SVM_Instruction
edOpcode, readObject
-
Field Details
-
SAVE_OBJECT
The object address to the SAVE_OBJECT -
SAVE_INDEX
private static int SAVE_INDEXThe SAVE_INDEX so far -
SAVE_LENGTH
private static int SAVE_LENGTHThe SAVE_LENGTH
-
-
Constructor Details
-
SVM_INITO
public SVM_INITO()Construct a new SVM_INITO instruction
-
-
Method Details
-
get
Used by SVM_GETO- Returns:
- the object address saved according to SAVE_INDEX
-
set
Used by SVM_SETO- Parameters:
oaddr- the object address to save according to SAVE_INDEX
-
execute
public void execute()Description copied from class:SVM_InstructionExecute this SVM instruction- Overrides:
executein classSVM_Instruction
-
toString
-
write
Description copied from class:SVM_InstructionWrite this SVM instruction to the given output.- Overrides:
writein classSVM_Instruction- Parameters:
oupt- the output stream- Throws:
IOException- if IOException occur
-
read
Reads an SVM_INITO instruction from the given input.- Parameters:
inpt- the input stream- Returns:
- the SVM_INITO instruction read
- Throws:
IOException- if IOException occur
-