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

Side by Side Diff: src/compiler.cc

Issue 342055: Add void 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/fast-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 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 807 matching lines...) Expand 10 before | Expand all | Expand 10 after
818 } 818 }
819 // Check all arguments to the call. (Relies on TEMP meaning STACK.) 819 // Check all arguments to the call. (Relies on TEMP meaning STACK.)
820 for (int i = 0; i < expr->arguments()->length(); i++) { 820 for (int i = 0; i < expr->arguments()->length(); i++) {
821 ProcessExpression(expr->arguments()->at(i), Expression::kValue); 821 ProcessExpression(expr->arguments()->at(i), Expression::kValue);
822 CHECK_BAILOUT; 822 CHECK_BAILOUT;
823 } 823 }
824 } 824 }
825 825
826 826
827 void CodeGenSelector::VisitUnaryOperation(UnaryOperation* expr) { 827 void CodeGenSelector::VisitUnaryOperation(UnaryOperation* expr) {
828 BAILOUT("UnaryOperation"); 828 switch (expr->op()) {
829 case Token::VOID:
830 ProcessExpression(expr->expression(), Expression::kEffect);
831 break;
832 default:
833 BAILOUT("UnaryOperation");
834 }
829 } 835 }
830 836
831 837
832 void CodeGenSelector::VisitCountOperation(CountOperation* expr) { 838 void CodeGenSelector::VisitCountOperation(CountOperation* expr) {
833 BAILOUT("CountOperation"); 839 BAILOUT("CountOperation");
834 } 840 }
835 841
836 842
837 void CodeGenSelector::VisitBinaryOperation(BinaryOperation* expr) { 843 void CodeGenSelector::VisitBinaryOperation(BinaryOperation* expr) {
838 switch (expr->op()) { 844 switch (expr->op()) {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
877 883
878 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) { 884 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) {
879 BAILOUT("ThisFunction"); 885 BAILOUT("ThisFunction");
880 } 886 }
881 887
882 #undef BAILOUT 888 #undef BAILOUT
883 #undef CHECK_BAILOUT 889 #undef CHECK_BAILOUT
884 890
885 891
886 } } // namespace v8::internal 892 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/fast-codegen-arm.cc ('k') | src/fast-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698