1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package Processors;
- import API.CodeProcessorInterface;
- import common.Code;
- import java.util.LinkedHashMap;
- /**
- *
- * @author EUGENIO CARVALHO
- */
- public class LoadStoreProcessor implements CodeProcessorInterface {
- protected BaseBlockProcessor basicBlocks;
- private BlockBaseGroup group;
- public LoadStoreProcessor() {
- }
- public LoadStoreProcessor(BaseBlockProcessor bb) {
- this.basicBlocks = bb;
- }
- @Override
- public void Exec(Code c, LinkedHashMap<String, CodeProcessorInterface> cp) throws Exception {
- // BlockBaseOcorrences g;
- // Integer leader, limit, lposition;
- // group = basicBlocks.getGroups().get(c.Block().getName());
- // group.Init();
- //
- // while (true) {
- // g = group.getCurrent();
- // if (g == null) {
- // break;
- // }
- // leader = g.getLeader();
- // limit = leader + g.Position;
- //
- // System.out.println("LoadStoreProcessor:[" + leader + "][" + limit + "]");
- //
- // for (int i = leader; i < limit; i++) {
- //
- // }
- //
- // if (group.getBasicBlocks(1) == null) {
- // break;
- // }
- // group.NextBlock();
- // }
- //
- // System.out.println("groupgroupgroupgroupgroup:" + group);
- }
- }
|