| 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 5679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5690 // deoptimize. | 5690 // deoptimize. |
| 5691 __ and_(result_reg, 1); | 5691 __ and_(result_reg, 1); |
| 5692 DeoptimizeIf(not_zero, instr->environment()); | 5692 DeoptimizeIf(not_zero, instr->environment()); |
| 5693 __ bind(&done); | 5693 __ bind(&done); |
| 5694 } | 5694 } |
| 5695 __ SmiTag(result_reg); | 5695 __ SmiTag(result_reg); |
| 5696 DeoptimizeIf(overflow, instr->environment()); | 5696 DeoptimizeIf(overflow, instr->environment()); |
| 5697 } | 5697 } |
| 5698 | 5698 |
| 5699 | 5699 |
| 5700 void LCodeGen::DoCheckSmiAndReturn(LCheckSmiAndReturn* instr) { |
| 5701 LOperand* input = instr->value(); |
| 5702 __ test(ToOperand(input), Immediate(kSmiTagMask)); |
| 5703 DeoptimizeIf(not_zero, instr->environment()); |
| 5704 } |
| 5705 |
| 5706 |
| 5700 void LCodeGen::DoCheckSmi(LCheckSmi* instr) { | 5707 void LCodeGen::DoCheckSmi(LCheckSmi* instr) { |
| 5701 LOperand* input = instr->value(); | 5708 LOperand* input = instr->value(); |
| 5702 __ test(ToOperand(input), Immediate(kSmiTagMask)); | 5709 __ test(ToOperand(input), Immediate(kSmiTagMask)); |
| 5703 DeoptimizeIf(not_zero, instr->environment()); | 5710 DeoptimizeIf(not_zero, instr->environment()); |
| 5704 } | 5711 } |
| 5705 | 5712 |
| 5706 | 5713 |
| 5707 void LCodeGen::DoCheckNonSmi(LCheckNonSmi* instr) { | 5714 void LCodeGen::DoCheckNonSmi(LCheckNonSmi* instr) { |
| 5708 LOperand* input = instr->value(); | 5715 LOperand* input = instr->value(); |
| 5709 __ test(ToOperand(input), Immediate(kSmiTagMask)); | 5716 __ test(ToOperand(input), Immediate(kSmiTagMask)); |
| (...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6586 FixedArray::kHeaderSize - kPointerSize)); | 6593 FixedArray::kHeaderSize - kPointerSize)); |
| 6587 __ bind(&done); | 6594 __ bind(&done); |
| 6588 } | 6595 } |
| 6589 | 6596 |
| 6590 | 6597 |
| 6591 #undef __ | 6598 #undef __ |
| 6592 | 6599 |
| 6593 } } // namespace v8::internal | 6600 } } // namespace v8::internal |
| 6594 | 6601 |
| 6595 #endif // V8_TARGET_ARCH_IA32 | 6602 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |