| 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 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 483 } | 483 } |
| 484 | 484 |
| 485 | 485 |
| 486 void AssignedVariablesAnalyzer::VisitUnaryOperation(UnaryOperation* expr) { | 486 void AssignedVariablesAnalyzer::VisitUnaryOperation(UnaryOperation* expr) { |
| 487 ASSERT(av_.IsEmpty()); | 487 ASSERT(av_.IsEmpty()); |
| 488 MarkIfTrivial(expr->expression()); | 488 MarkIfTrivial(expr->expression()); |
| 489 Visit(expr->expression()); | 489 Visit(expr->expression()); |
| 490 } | 490 } |
| 491 | 491 |
| 492 | 492 |
| 493 void AssignedVariablesAnalyzer::VisitIncrementOperation( | |
| 494 IncrementOperation* expr) { | |
| 495 UNREACHABLE(); | |
| 496 } | |
| 497 | |
| 498 | |
| 499 void AssignedVariablesAnalyzer::VisitCountOperation(CountOperation* expr) { | 493 void AssignedVariablesAnalyzer::VisitCountOperation(CountOperation* expr) { |
| 500 ASSERT(av_.IsEmpty()); | 494 ASSERT(av_.IsEmpty()); |
| 501 if (expr->is_prefix()) MarkIfTrivial(expr->expression()); | 495 if (expr->is_prefix()) MarkIfTrivial(expr->expression()); |
| 502 Visit(expr->expression()); | 496 Visit(expr->expression()); |
| 503 | 497 |
| 504 Variable* var = expr->expression()->AsVariableProxy()->AsVariable(); | 498 Variable* var = expr->expression()->AsVariableProxy()->AsVariable(); |
| 505 if (var != NULL) RecordAssignedVar(var); | 499 if (var != NULL) RecordAssignedVar(var); |
| 506 } | 500 } |
| 507 | 501 |
| 508 | 502 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 536 ASSERT(av_.IsEmpty()); | 530 ASSERT(av_.IsEmpty()); |
| 537 } | 531 } |
| 538 | 532 |
| 539 | 533 |
| 540 void AssignedVariablesAnalyzer::VisitDeclaration(Declaration* decl) { | 534 void AssignedVariablesAnalyzer::VisitDeclaration(Declaration* decl) { |
| 541 UNREACHABLE(); | 535 UNREACHABLE(); |
| 542 } | 536 } |
| 543 | 537 |
| 544 | 538 |
| 545 } } // namespace v8::internal | 539 } } // namespace v8::internal |
| OLD | NEW |