RAPL

Diff
Login

Diff

Differences From Artifact [70b8d000f6]:

To Artifact [2d540bfc6f]:


372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
//print("A0!"+argv[0]+"!");
        cmd = stmt.interp.getCommand(argv[0], stmt.VAR_LOOKUP_LEAVE_ERR_MSG);
        if (cmd != null) {
          /* Call it -- Make sure result is an empty object. */
          cmd.incrCmdRefCount(cmd);
          stmt.interp.empty_obj.setEmptyResult();
//print("CMDT!"+cmd.getCommandTypeString(cmd.command_type)+"!");
//        sargv = new Array();
//	  for (var idx = 0; idx < argv.length; idx++) {
//	    sargv.push(argv[idx]);
//	  }
          ret_code = cmd.call(stmt.interp, argv);
//          if (cmd.isproc) {
//            retcode = stmt.callProcedure(cmd, script.script_object.file_name_obj, line_no, argc, argv);
//          } else {
//            stmt.interp.cmdPrivData = cmd.u.native.privData;
//            retcode = cmd.u.native.cmdProc(argc, argv);
//          }
          cmd.decrCmdRefCount(cmd);
        } else {
          /* Call [unknown] */
          retcode = stmt.unknown(argc, argv, script.script_object.file_name_obj, line_no);
        }
      }

      /* Finished with the command, so decrement ref counts of each argument */
      j--;
//      while (j-- > 0) {
//        stmt.interp.default_obj.decrRefCount(sargv[j]);
//      }
    }

    /* Possibly add to the error stack trace */
    stmt.addErrorToStack(retcode, script.script_object.file_name_obj, line_no);

    /* Note that we don't have to decrement in_use, because the
     * following code transfers our use of the reference again to







<
<
<
<
















<
<
<







372
373
374
375
376
377
378




379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394



395
396
397
398
399
400
401
//print("A0!"+argv[0]+"!");
        cmd = stmt.interp.getCommand(argv[0], stmt.VAR_LOOKUP_LEAVE_ERR_MSG);
        if (cmd != null) {
          /* Call it -- Make sure result is an empty object. */
          cmd.incrCmdRefCount(cmd);
          stmt.interp.empty_obj.setEmptyResult();
//print("CMDT!"+cmd.getCommandTypeString(cmd.command_type)+"!");




          ret_code = cmd.call(stmt.interp, argv);
//          if (cmd.isproc) {
//            retcode = stmt.callProcedure(cmd, script.script_object.file_name_obj, line_no, argc, argv);
//          } else {
//            stmt.interp.cmdPrivData = cmd.u.native.privData;
//            retcode = cmd.u.native.cmdProc(argc, argv);
//          }
          cmd.decrCmdRefCount(cmd);
        } else {
          /* Call [unknown] */
          retcode = stmt.unknown(argc, argv, script.script_object.file_name_obj, line_no);
        }
      }

      /* Finished with the command, so decrement ref counts of each argument */
      j--;



    }

    /* Possibly add to the error stack trace */
    stmt.addErrorToStack(retcode, script.script_object.file_name_obj, line_no);

    /* Note that we don't have to decrement in_use, because the
     * following code transfers our use of the reference again to