OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 4885 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4896 // deoptimize. | 4896 // deoptimize. |
4897 __ andl(result_reg, Immediate(1)); | 4897 __ andl(result_reg, Immediate(1)); |
4898 DeoptimizeIf(not_zero, instr->environment()); | 4898 DeoptimizeIf(not_zero, instr->environment()); |
4899 __ bind(&done); | 4899 __ bind(&done); |
4900 } | 4900 } |
4901 __ Integer32ToSmi(result_reg, result_reg); | 4901 __ Integer32ToSmi(result_reg, result_reg); |
4902 DeoptimizeIf(overflow, instr->environment()); | 4902 DeoptimizeIf(overflow, instr->environment()); |
4903 } | 4903 } |
4904 | 4904 |
4905 | 4905 |
4906 void LCodeGen::DoCheckSmiAndReturn(LCheckSmiAndReturn* instr) { | |
4907 LOperand* input = instr->value(); | |
4908 Condition cc = masm()->CheckSmi(ToRegister(input)); | |
4909 DeoptimizeIf(NegateCondition(cc), instr->environment()); | |
4910 } | |
4911 | |
4912 | |
4913 void LCodeGen::DoCheckSmi(LCheckSmi* instr) { | 4906 void LCodeGen::DoCheckSmi(LCheckSmi* instr) { |
4914 LOperand* input = instr->value(); | 4907 LOperand* input = instr->value(); |
4915 Condition cc = masm()->CheckSmi(ToRegister(input)); | 4908 Condition cc = masm()->CheckSmi(ToRegister(input)); |
4916 DeoptimizeIf(NegateCondition(cc), instr->environment()); | 4909 DeoptimizeIf(NegateCondition(cc), instr->environment()); |
4917 } | 4910 } |
4918 | 4911 |
4919 | 4912 |
4920 void LCodeGen::DoCheckNonSmi(LCheckNonSmi* instr) { | 4913 void LCodeGen::DoCheckNonSmi(LCheckNonSmi* instr) { |
4921 LOperand* input = instr->value(); | 4914 LOperand* input = instr->value(); |
4922 Condition cc = masm()->CheckSmi(ToRegister(input)); | 4915 Condition cc = masm()->CheckSmi(ToRegister(input)); |
(...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5680 FixedArray::kHeaderSize - kPointerSize)); | 5673 FixedArray::kHeaderSize - kPointerSize)); |
5681 __ bind(&done); | 5674 __ bind(&done); |
5682 } | 5675 } |
5683 | 5676 |
5684 | 5677 |
5685 #undef __ | 5678 #undef __ |
5686 | 5679 |
5687 } } // namespace v8::internal | 5680 } } // namespace v8::internal |
5688 | 5681 |
5689 #endif // V8_TARGET_ARCH_X64 | 5682 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |