OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
533 sub(scratch, Immediate(FIRST_NONCALLABLE_SPEC_OBJECT_TYPE)); | 533 sub(scratch, Immediate(FIRST_NONCALLABLE_SPEC_OBJECT_TYPE)); |
534 cmp(scratch, | 534 cmp(scratch, |
535 LAST_NONCALLABLE_SPEC_OBJECT_TYPE - FIRST_NONCALLABLE_SPEC_OBJECT_TYPE); | 535 LAST_NONCALLABLE_SPEC_OBJECT_TYPE - FIRST_NONCALLABLE_SPEC_OBJECT_TYPE); |
536 j(above, fail); | 536 j(above, fail); |
537 } | 537 } |
538 | 538 |
539 | 539 |
540 void MacroAssembler::FCmp() { | 540 void MacroAssembler::FCmp() { |
541 if (CpuFeatures::IsSupported(CMOV)) { | 541 if (CpuFeatures::IsSupported(CMOV)) { |
542 fucomip(); | 542 fucomip(); |
543 ffree(0); | 543 fstp(0); |
544 fincstp(); | |
545 } else { | 544 } else { |
546 fucompp(); | 545 fucompp(); |
547 push(eax); | 546 push(eax); |
548 fnstsw_ax(); | 547 fnstsw_ax(); |
549 sahf(); | 548 sahf(); |
550 pop(eax); | 549 pop(eax); |
551 } | 550 } |
552 } | 551 } |
553 | 552 |
554 | 553 |
(...skipping 2105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2660 cmp(length, Operand(bitmap_scratch, MemoryChunk::kSizeOffset)); | 2659 cmp(length, Operand(bitmap_scratch, MemoryChunk::kSizeOffset)); |
2661 Check(less_equal, "Live Bytes Count overflow chunk size"); | 2660 Check(less_equal, "Live Bytes Count overflow chunk size"); |
2662 } | 2661 } |
2663 | 2662 |
2664 bind(&done); | 2663 bind(&done); |
2665 } | 2664 } |
2666 | 2665 |
2667 } } // namespace v8::internal | 2666 } } // namespace v8::internal |
2668 | 2667 |
2669 #endif // V8_TARGET_ARCH_IA32 | 2668 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |