예제 #1
0
 // define the offset of the current stack map frame
 void plantStackOffset(int n) {
   try {
     verifyframe.setOffset(n);
   } catch (jasError e) {
     report_error(e.toString());
   }
 }
예제 #2
0
 void plantStackOffset(String label) throws jasError {
   Label l = getLabel(label);
   try {
     verifyframe.setOffset(l);
   } catch (jasError e) {
     report_error(e.toString());
   }
 }
예제 #3
0
  // add the current stack map frame to the current stack map attribute
  void endStack() {
    if (!verifyframe.haveOffset()) {
      String l = "jasmin_reserved_SM:" + (stack_map_label_count++);
      try {
        plantLabel(l);
        verifyframe.setOffset(getLabel(l));
      } catch (jasError e) {
        report_error(e.toString());
      }
    }
    if (stackmap == null) stackmap = new StackMap(class_env);

    stackmap.addFrame(verifyframe);
    verifyframe = null; // PARANOYA
  }