Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Side by Side Diff: src/data-flow.cc

Issue 6810015: Remove unnecessary AST node for ++ and -- operations. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/codegen.cc ('k') | src/full-codegen.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/codegen.cc ('k') | src/full-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698