Diff for /parser3/src/main/execute.C between versions 1.64 and 1.65

version 1.64, 2001/03/08 09:13:33 version 1.65, 2001/03/08 09:31:48
Line 23 Line 23
   
 char *opcode_name[]={  char *opcode_name[]={
         // literals          // literals
         "VALUE",  "CODE",  "CLASS",          "VALUE",  "CODE__STORE_PARAM",  "CLASS",
   
         // actions          // actions
         "WITH_SELF",    "WITH_ROOT",    "WITH_READ",    "WITH_WRITE",          "WITH_SELF",    "WITH_ROOT",    "WITH_READ",    "WITH_WRITE",
Line 75  void dump(int level, const Array& ops) { Line 75  void dump(int level, const Array& ops) {
                 }                  }
                 fprintf(stderr, "\n");                  fprintf(stderr, "\n");
   
                 if(op.code==OP_CODE) {                  if(op.code==OP_CODE__STORE_PARAM) {
                         const Array *local_ops=reinterpret_cast<const Array *>(ops.quick_get(++i));                          const Array *local_ops=reinterpret_cast<const Array *>(ops.quick_get(++i));
                         dump(level+1, *local_ops);                          dump(level+1, *local_ops);
                 }                  }
Line 106  void Request::execute(const Array& ops) Line 106  void Request::execute(const Array& ops)
                                 PUSH(value);                                  PUSH(value);
                                 break;                                  break;
                         }                          }
                 case OP_CODE:                  case OP_CODE__STORE_PARAM:
                         {                          {
                                 VMethodFrame *frame=static_cast<VMethodFrame *>(stack[stack.top()]);                                  VMethodFrame *frame=static_cast<VMethodFrame *>(stack[stack.top()]);
                                   // code
                                 const Array *local_ops=reinterpret_cast<const Array *>(ops.quick_get(++i));                                  const Array *local_ops=reinterpret_cast<const Array *>(ops.quick_get(++i));
                                 fprintf(stderr, " (%d)\n", local_ops->size());                                  fprintf(stderr, " (%d)\n", local_ops->size());
                                 dump(1, *local_ops);                                  dump(1, *local_ops);
Line 119  void Request::execute(const Array& ops) Line 120  void Request::execute(const Array& ops)
                                                                   
                                 Value *value=NEW VJunction(j);                                  Value *value=NEW VJunction(j);
                                 value->set_name(frame->name());                                  value->set_name(frame->name());
                                 PUSH(value);  
                                   // store param
                                   frame->store_param(value);
                                 break;                                  break;
                         }                          }
                 case OP_CLASS:                  case OP_CLASS:

Removed from v.1.64  
changed lines
  Added in v.1.65


E-mail: