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

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

Issue 3150032: Introduce a new intermediate AST node for encapsulating the... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 4 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 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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