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

Side by Side Diff: src/compiler.cc

Issue 343057: Add unary not operator to fast compiler. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 1 month 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/arm/fast-codegen-arm.cc ('k') | src/ia32/fast-codegen-ia32.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 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 819 matching lines...) Expand 10 before | Expand all | Expand 10 after
830 CHECK_BAILOUT; 830 CHECK_BAILOUT;
831 } 831 }
832 } 832 }
833 833
834 834
835 void CodeGenSelector::VisitUnaryOperation(UnaryOperation* expr) { 835 void CodeGenSelector::VisitUnaryOperation(UnaryOperation* expr) {
836 switch (expr->op()) { 836 switch (expr->op()) {
837 case Token::VOID: 837 case Token::VOID:
838 ProcessExpression(expr->expression(), Expression::kEffect); 838 ProcessExpression(expr->expression(), Expression::kEffect);
839 break; 839 break;
840 case Token::NOT:
841 ProcessExpression(expr->expression(), Expression::kTest);
842 break;
840 default: 843 default:
841 BAILOUT("UnaryOperation"); 844 BAILOUT("UnaryOperation");
842 } 845 }
843 } 846 }
844 847
845 848
846 void CodeGenSelector::VisitCountOperation(CountOperation* expr) { 849 void CodeGenSelector::VisitCountOperation(CountOperation* expr) {
847 BAILOUT("CountOperation"); 850 BAILOUT("CountOperation");
848 } 851 }
849 852
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
929 932
930 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) { 933 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) {
931 BAILOUT("ThisFunction"); 934 BAILOUT("ThisFunction");
932 } 935 }
933 936
934 #undef BAILOUT 937 #undef BAILOUT
935 #undef CHECK_BAILOUT 938 #undef CHECK_BAILOUT
936 939
937 940
938 } } // namespace v8::internal 941 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/fast-codegen-arm.cc ('k') | src/ia32/fast-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698