Class SVM_SAVE
java.lang.Object
svm.instruction.SVM_Instruction
svm.instruction.SVM_SAVE
SVM-INSTRUCTION: SAVE
Runtime Stack
value1, value2, ... , value'size, oaddr →
- empty
The oaddr of a save-object is popped off the Runtime stack. Then the complete Runtime stack is saved within the save-object.
See: SVM_PUSHLEN and SVM_RERSTORE 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 TypeFieldDescriptionstatic final intThe head size of the SAVENT instancestatic final intThe offset of the 'lng' attribute in the SAVENT instanceFields 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 instructionstatic SVM_Instructionread(AttributeInputStream inpt) Reads an SVM_SAVE instruction from the given input.private static voidSave the Runtime stack in the SAVENT instancetoString()voidwrite(AttributeOutputStream oupt) Write this SVM instruction to the given output.Methods inherited from class SVM_Instruction
edOpcode, readObject
-
Field Details
-
saveEntityHead
public static final int saveEntityHeadThe head size of the SAVENT instance- See Also:
-
sizeOffset
public static final int sizeOffsetThe offset of the 'lng' attribute in the SAVENT instance- See Also:
-
-
Constructor Details
-
SVM_SAVE
public SVM_SAVE()Construct a new SVM_RETURN instruction
-
-
Method Details
-
execute
public void execute()Description copied from class:SVM_InstructionExecute this SVM instruction- Overrides:
executein classSVM_Instruction
-
saveStack
private static void saveStack()Save the Runtime stack in the SAVENT instance -
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_SAVE instruction from the given input.- Parameters:
inpt- the input stream- Returns:
- the SVM_SAVE instruction read
- Throws:
IOException- if IOException occur
-