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 2671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2682 XMMRegister xmm_scratch = double_scratch0(); | 2682 XMMRegister xmm_scratch = double_scratch0(); |
2683 __ xorps(xmm_scratch, xmm_scratch); | 2683 __ xorps(xmm_scratch, xmm_scratch); |
2684 __ ucomisd(xmm_scratch, value); | 2684 __ ucomisd(xmm_scratch, value); |
2685 __ j(not_equal, &if_false); | 2685 __ j(not_equal, &if_false); |
2686 __ movmskpd(scratch, value); | 2686 __ movmskpd(scratch, value); |
2687 __ test(scratch, Immediate(1)); | 2687 __ test(scratch, Immediate(1)); |
2688 EmitBranch(instr, not_zero); | 2688 EmitBranch(instr, not_zero); |
2689 } else { | 2689 } else { |
2690 Register value = ToRegister(instr->value()); | 2690 Register value = ToRegister(instr->value()); |
2691 Handle<Map> map = masm()->isolate()->factory()->heap_number_map(); | 2691 Handle<Map> map = masm()->isolate()->factory()->heap_number_map(); |
2692 __ CheckMap(eax, map, &if_false, DO_SMI_CHECK); | 2692 __ CheckMap(value, map, &if_false, DO_SMI_CHECK); |
2693 __ cmp(FieldOperand(value, HeapNumber::kExponentOffset), | 2693 __ cmp(FieldOperand(value, HeapNumber::kExponentOffset), |
2694 Immediate(0x80000000)); | 2694 Immediate(0x80000000)); |
2695 __ j(not_equal, &if_false); | 2695 __ j(not_equal, &if_false); |
2696 __ cmp(FieldOperand(value, HeapNumber::kMantissaOffset), | 2696 __ cmp(FieldOperand(value, HeapNumber::kMantissaOffset), |
2697 Immediate(0x00000000)); | 2697 Immediate(0x00000000)); |
2698 EmitBranch(instr, equal); | 2698 EmitBranch(instr, equal); |
2699 } | 2699 } |
2700 | 2700 |
2701 __ bind(&if_false); | 2701 __ bind(&if_false); |
2702 EmitFalseBranch(instr, no_condition); | 2702 EmitFalseBranch(instr, no_condition); |
(...skipping 3778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6481 FixedArray::kHeaderSize - kPointerSize)); | 6481 FixedArray::kHeaderSize - kPointerSize)); |
6482 __ bind(&done); | 6482 __ bind(&done); |
6483 } | 6483 } |
6484 | 6484 |
6485 | 6485 |
6486 #undef __ | 6486 #undef __ |
6487 | 6487 |
6488 } } // namespace v8::internal | 6488 } } // namespace v8::internal |
6489 | 6489 |
6490 #endif // V8_TARGET_ARCH_IA32 | 6490 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |