OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |