示例#1
0
 static void addInstructionCount (Context cx, CallFrame frame, int extra)
 {
     cx.instructionCount += frame.pc - frame.pcPrevBranch + extra;
     if (cx.instructionCount > cx.instructionThreshold) {
         cx.ObserveInstructionCount (cx.instructionCount);
         cx.instructionCount = 0;
     }
 }