Ejemplo n.º 1
0
	/***
	 * @param index - Index from the starting number of locals
	 * @param reference - The new reference
	 * @param startingNumberOfLocals - the number of variables the state vector is currently tracking. We need this because the
				the total number of references will change if you are adding multiple number of variables.
	*/
	void TessaCreationApi::trackExtraVariableInEndState(int index, TessaInstruction* reference, int startingNumberOfLocals) {
		BasicBlock* currentBlock = currentFunction->getCurrentBasicBlock();
		StateVector* endState = currentBlock->getEndState();
		//AvmAssert(index + startingNumberOfLocals <= endState->getNumberOfLocals());
		endState->setLocal(index + startingNumberOfLocals, reference);
	}