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

Side by Side Diff: src/compiler.cc

Issue 300003: Recognize in the fast-mode code generator when a subexpression is a... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 2 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
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 607
608 void CodeGenSelector::VisitVariableProxy(VariableProxy* expr) { 608 void CodeGenSelector::VisitVariableProxy(VariableProxy* expr) {
609 Expression* rewrite = expr->var()->rewrite(); 609 Expression* rewrite = expr->var()->rewrite();
610 if (rewrite == NULL) BAILOUT("global variable reference"); 610 if (rewrite == NULL) BAILOUT("global variable reference");
611 Visit(rewrite); 611 Visit(rewrite);
612 } 612 }
613 613
614 614
615 void CodeGenSelector::VisitLiteral(Literal* expr) { 615 void CodeGenSelector::VisitLiteral(Literal* expr) {
616 // All literals are supported. 616 // All literals are supported.
617 expr->set_location(Location::Constant());
617 } 618 }
618 619
619 620
620 void CodeGenSelector::VisitRegExpLiteral(RegExpLiteral* expr) { 621 void CodeGenSelector::VisitRegExpLiteral(RegExpLiteral* expr) {
621 BAILOUT("RegExpLiteral"); 622 BAILOUT("RegExpLiteral");
622 } 623 }
623 624
624 625
625 void CodeGenSelector::VisitObjectLiteral(ObjectLiteral* expr) { 626 void CodeGenSelector::VisitObjectLiteral(ObjectLiteral* expr) {
626 BAILOUT("ObjectLiteral"); 627 BAILOUT("ObjectLiteral");
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 709
709 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) { 710 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) {
710 BAILOUT("ThisFunction"); 711 BAILOUT("ThisFunction");
711 } 712 }
712 713
713 #undef BAILOUT 714 #undef BAILOUT
714 #undef CHECK_BAILOUT 715 #undef CHECK_BAILOUT
715 716
716 717
717 } } // namespace v8::internal 718 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/fast-codegen-arm.cc ('k') | src/fast-codegen.cc » ('j') | src/ia32/fast-codegen-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698