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

Side by Side Diff: src/mips/lithium-codegen-mips.cc

Issue 27516004: MIPS: Add support for Token::NE and Token::NE_STRICT to TokenToCondition. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 2160 matching lines...) Expand 10 before | Expand all | Expand 10 after
2171 } 2171 }
2172 2172
2173 2173
2174 Condition LCodeGen::TokenToCondition(Token::Value op, bool is_unsigned) { 2174 Condition LCodeGen::TokenToCondition(Token::Value op, bool is_unsigned) {
2175 Condition cond = kNoCondition; 2175 Condition cond = kNoCondition;
2176 switch (op) { 2176 switch (op) {
2177 case Token::EQ: 2177 case Token::EQ:
2178 case Token::EQ_STRICT: 2178 case Token::EQ_STRICT:
2179 cond = eq; 2179 cond = eq;
2180 break; 2180 break;
2181 case Token::NE:
2182 case Token::NE_STRICT:
2183 cond = ne;
2184 break;
2181 case Token::LT: 2185 case Token::LT:
2182 cond = is_unsigned ? lo : lt; 2186 cond = is_unsigned ? lo : lt;
2183 break; 2187 break;
2184 case Token::GT: 2188 case Token::GT:
2185 cond = is_unsigned ? hi : gt; 2189 cond = is_unsigned ? hi : gt;
2186 break; 2190 break;
2187 case Token::LTE: 2191 case Token::LTE:
2188 cond = is_unsigned ? ls : le; 2192 cond = is_unsigned ? ls : le;
2189 break; 2193 break;
2190 case Token::GTE: 2194 case Token::GTE:
(...skipping 3635 matching lines...) Expand 10 before | Expand all | Expand 10 after
5826 __ Subu(scratch, result, scratch); 5830 __ Subu(scratch, result, scratch);
5827 __ lw(result, FieldMemOperand(scratch, 5831 __ lw(result, FieldMemOperand(scratch,
5828 FixedArray::kHeaderSize - kPointerSize)); 5832 FixedArray::kHeaderSize - kPointerSize));
5829 __ bind(&done); 5833 __ bind(&done);
5830 } 5834 }
5831 5835
5832 5836
5833 #undef __ 5837 #undef __
5834 5838
5835 } } // namespace v8::internal 5839 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698