OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
462 } | 462 } |
463 | 463 |
464 | 464 |
465 void AssignedVariablesAnalyzer::VisitUnaryOperation(UnaryOperation* expr) { | 465 void AssignedVariablesAnalyzer::VisitUnaryOperation(UnaryOperation* expr) { |
466 ASSERT(av_.IsEmpty()); | 466 ASSERT(av_.IsEmpty()); |
467 MarkIfTrivial(expr->expression()); | 467 MarkIfTrivial(expr->expression()); |
468 Visit(expr->expression()); | 468 Visit(expr->expression()); |
469 } | 469 } |
470 | 470 |
471 | 471 |
| 472 void AssignedVariablesAnalyzer::VisitIncrementOperation( |
| 473 IncrementOperation* expr) { |
| 474 UNREACHABLE(); |
| 475 } |
| 476 |
| 477 |
472 void AssignedVariablesAnalyzer::VisitCountOperation(CountOperation* expr) { | 478 void AssignedVariablesAnalyzer::VisitCountOperation(CountOperation* expr) { |
473 ASSERT(av_.IsEmpty()); | 479 ASSERT(av_.IsEmpty()); |
474 if (expr->is_prefix()) MarkIfTrivial(expr->expression()); | 480 if (expr->is_prefix()) MarkIfTrivial(expr->expression()); |
475 Visit(expr->expression()); | 481 Visit(expr->expression()); |
476 | 482 |
477 Variable* var = expr->expression()->AsVariableProxy()->AsVariable(); | 483 Variable* var = expr->expression()->AsVariableProxy()->AsVariable(); |
478 if (var != NULL) RecordAssignedVar(var); | 484 if (var != NULL) RecordAssignedVar(var); |
479 } | 485 } |
480 | 486 |
481 | 487 |
(...skipping 27 matching lines...) Expand all Loading... |
509 ASSERT(av_.IsEmpty()); | 515 ASSERT(av_.IsEmpty()); |
510 } | 516 } |
511 | 517 |
512 | 518 |
513 void AssignedVariablesAnalyzer::VisitDeclaration(Declaration* decl) { | 519 void AssignedVariablesAnalyzer::VisitDeclaration(Declaration* decl) { |
514 UNREACHABLE(); | 520 UNREACHABLE(); |
515 } | 521 } |
516 | 522 |
517 | 523 |
518 } } // namespace v8::internal | 524 } } // namespace v8::internal |
OLD | NEW |