LoadStoreProcessor.java 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. package Processors;
  7. import API.CodeProcessorInterface;
  8. import common.Code;
  9. import java.util.LinkedHashMap;
  10. /**
  11. *
  12. * @author EUGENIO CARVALHO
  13. */
  14. public class LoadStoreProcessor implements CodeProcessorInterface {
  15. protected BaseBlockProcessor basicBlocks;
  16. private BlockBaseGroup group;
  17. public LoadStoreProcessor() {
  18. }
  19. public LoadStoreProcessor(BaseBlockProcessor bb) {
  20. this.basicBlocks = bb;
  21. }
  22. @Override
  23. public void Exec(Code c, LinkedHashMap<String, CodeProcessorInterface> cp) throws Exception {
  24. // BlockBaseOcorrences g;
  25. // Integer leader, limit, lposition;
  26. // group = basicBlocks.getGroups().get(c.Block().getName());
  27. // group.Init();
  28. //
  29. // while (true) {
  30. // g = group.getCurrent();
  31. // if (g == null) {
  32. // break;
  33. // }
  34. // leader = g.getLeader();
  35. // limit = leader + g.Position;
  36. //
  37. // System.out.println("LoadStoreProcessor:[" + leader + "][" + limit + "]");
  38. //
  39. // for (int i = leader; i < limit; i++) {
  40. //
  41. // }
  42. //
  43. // if (group.getBasicBlocks(1) == null) {
  44. // break;
  45. // }
  46. // group.NextBlock();
  47. // }
  48. //
  49. // System.out.println("groupgroupgroupgroupgroup:" + group);
  50. }
  51. }