/[jscoverage]/trunk/instrument-js.cpp
ViewVC logotype

Diff of /trunk/instrument-js.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 284 by siliconforks, Sat Oct 11 22:40:31 2008 UTC revision 317 by siliconforks, Tue Oct 14 01:28:46 2008 UTC
# Line 147  Line 147 
147        case 0xa:        case 0xa:
148          Stream_write_string(f, "\\n");          Stream_write_string(f, "\\n");
149          break;          break;
150          /* IE doesn't support this */
151          /*
152        case 0xb:        case 0xb:
153          Stream_write_string(f, "\\v");          Stream_write_string(f, "\\v");
154          break;          break;
155          */
156        case 0xc:        case 0xc:
157          Stream_write_string(f, "\\f");          Stream_write_string(f, "\\f");
158          break;          break;
# Line 540  Line 543 
543        /* check whether this is a getter or setter */        /* check whether this is a getter or setter */
544        switch (p->pn_op) {        switch (p->pn_op) {
545        case JSOP_GETTER:        case JSOP_GETTER:
         Stream_write_string(f, "get ");  
         instrument_expression(p->pn_left, f);  
         instrument_function(p->pn_right, f, 0, FUNCTION_GETTER_OR_SETTER);  
         break;  
546        case JSOP_SETTER:        case JSOP_SETTER:
547          Stream_write_string(f, "set ");          if (p->pn_op == JSOP_GETTER) {
548              Stream_write_string(f, "get ");
549            }
550            else {
551              Stream_write_string(f, "set ");
552            }
553          instrument_expression(p->pn_left, f);          instrument_expression(p->pn_left, f);
554            if (p->pn_right->pn_type != TOK_FUNCTION) {
555              fatal("parse error: expected function");
556            }
557          instrument_function(p->pn_right, f, 0, FUNCTION_GETTER_OR_SETTER);          instrument_function(p->pn_right, f, 0, FUNCTION_GETTER_OR_SETTER);
558          break;          break;
559        default:        default:
# Line 1173  Line 1180 
1180            /* line feed (new line) */            /* line feed (new line) */
1181            done = true;            done = true;
1182            break;            break;
1183            /* IE doesn't support this */
1184            /*
1185          case 0xb:          case 0xb:
           /* vertical tab */  
1186            Stream_write_string(output, "\\v");            Stream_write_string(output, "\\v");
1187            break;            break;
1188            */
1189          case 0xc:          case 0xc:
1190            /* form feed */            /* form feed */
1191            Stream_write_string(output, "\\f");            Stream_write_string(output, "\\f");
# Line 1231  Line 1240 
1240            /* line feed (new line) */            /* line feed (new line) */
1241            done = true;            done = true;
1242            break;            break;
1243            /* IE doesn't support this */
1244            /*
1245          case 0xb:          case 0xb:
           /* vertical tab */  
1246            Stream_write_string(output, "\\v");            Stream_write_string(output, "\\v");
1247            break;            break;
1248            */
1249          case 0xc:          case 0xc:
1250            /* form feed */            /* form feed */
1251            Stream_write_string(output, "\\f");            Stream_write_string(output, "\\f");

Legend:
Removed from v.284  
changed lines
  Added in v.317

  ViewVC Help
Powered by ViewVC 1.1.24