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

Side by Side Diff: src/compiler.cc

Issue 507040: -Inlined double variant of compare iff one of the sides is a constant smi and... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years 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 1083 matching lines...) Expand 10 before | Expand all | Expand 10 after
1094 ProcessExpression(expr->right(), Expression::kValue); 1094 ProcessExpression(expr->right(), Expression::kValue);
1095 break; 1095 break;
1096 1096
1097 default: 1097 default:
1098 BAILOUT("Unsupported binary operation"); 1098 BAILOUT("Unsupported binary operation");
1099 } 1099 }
1100 } 1100 }
1101 1101
1102 1102
1103 void CodeGenSelector::VisitCompareOperation(CompareOperation* expr) { 1103 void CodeGenSelector::VisitCompareOperation(CompareOperation* expr) {
1104 ProcessExpression(expr->left(), Expression::kValue); 1104 ProcessExpression(expr->left(), Expression::kValue);
1105 CHECK_BAILOUT; 1105 CHECK_BAILOUT;
1106 ProcessExpression(expr->right(), Expression::kValue); 1106 ProcessExpression(expr->right(), Expression::kValue);
1107 } 1107 }
1108 1108
1109 1109
1110 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) { 1110 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) {
1111 // ThisFunction is supported. 1111 // ThisFunction is supported.
1112 } 1112 }
1113 1113
1114 #undef BAILOUT 1114 #undef BAILOUT
1115 #undef CHECK_BAILOUT 1115 #undef CHECK_BAILOUT
1116 1116
1117 1117
1118 } } // namespace v8::internal 1118 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ast.h ('k') | src/ia32/assembler-ia32.h » ('j') | src/ia32/codegen-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698