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

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

Issue 27043010: 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 | src/ia32/lithium-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 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 2318 matching lines...) Expand 10 before | Expand all | Expand 10 after
2329 } 2329 }
2330 2330
2331 2331
2332 Condition LCodeGen::TokenToCondition(Token::Value op, bool is_unsigned) { 2332 Condition LCodeGen::TokenToCondition(Token::Value op, bool is_unsigned) {
2333 Condition cond = kNoCondition; 2333 Condition cond = kNoCondition;
2334 switch (op) { 2334 switch (op) {
2335 case Token::EQ: 2335 case Token::EQ:
2336 case Token::EQ_STRICT: 2336 case Token::EQ_STRICT:
2337 cond = eq; 2337 cond = eq;
2338 break; 2338 break;
2339 case Token::NE:
2340 case Token::NE_STRICT:
2341 cond = ne;
2342 break;
2339 case Token::LT: 2343 case Token::LT:
2340 cond = is_unsigned ? lo : lt; 2344 cond = is_unsigned ? lo : lt;
2341 break; 2345 break;
2342 case Token::GT: 2346 case Token::GT:
2343 cond = is_unsigned ? hi : gt; 2347 cond = is_unsigned ? hi : gt;
2344 break; 2348 break;
2345 case Token::LTE: 2349 case Token::LTE:
2346 cond = is_unsigned ? ls : le; 2350 cond = is_unsigned ? ls : le;
2347 break; 2351 break;
2348 case Token::GTE: 2352 case Token::GTE:
(...skipping 3494 matching lines...) Expand 10 before | Expand all | Expand 10 after
5843 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); 5847 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index));
5844 __ ldr(result, FieldMemOperand(scratch, 5848 __ ldr(result, FieldMemOperand(scratch,
5845 FixedArray::kHeaderSize - kPointerSize)); 5849 FixedArray::kHeaderSize - kPointerSize));
5846 __ bind(&done); 5850 __ bind(&done);
5847 } 5851 }
5848 5852
5849 5853
5850 #undef __ 5854 #undef __
5851 5855
5852 } } // namespace v8::internal 5856 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698