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 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 __ divsd(xmm1, Operand(ebx, ecx, times_4, 10000)); | 444 __ divsd(xmm1, Operand(ebx, ecx, times_4, 10000)); |
445 __ ucomisd(xmm0, xmm1); | 445 __ ucomisd(xmm0, xmm1); |
446 __ cmpltsd(xmm0, xmm1); | 446 __ cmpltsd(xmm0, xmm1); |
447 | 447 |
448 __ andpd(xmm0, xmm1); | 448 __ andpd(xmm0, xmm1); |
449 __ psllq(xmm0, 17); | 449 __ psllq(xmm0, 17); |
450 __ psllq(xmm0, xmm1); | 450 __ psllq(xmm0, xmm1); |
451 __ psrlq(xmm0, 17); | 451 __ psrlq(xmm0, 17); |
452 __ psrlq(xmm0, xmm1); | 452 __ psrlq(xmm0, xmm1); |
453 __ por(xmm0, xmm1); | 453 __ por(xmm0, xmm1); |
| 454 |
| 455 __ pcmpeqd(xmm1, xmm0); |
| 456 |
| 457 __ punpckldq(xmm1, xmm6); |
| 458 __ punpckhdq(xmm7, xmm5); |
454 } | 459 } |
455 | 460 |
456 // cmov. | 461 // cmov. |
457 { | 462 { |
458 __ cmov(overflow, eax, Operand(eax, 0)); | 463 __ cmov(overflow, eax, Operand(eax, 0)); |
459 __ cmov(no_overflow, eax, Operand(eax, 1)); | 464 __ cmov(no_overflow, eax, Operand(eax, 1)); |
460 __ cmov(below, eax, Operand(eax, 2)); | 465 __ cmov(below, eax, Operand(eax, 2)); |
461 __ cmov(above_equal, eax, Operand(eax, 3)); | 466 __ cmov(above_equal, eax, Operand(eax, 3)); |
462 __ cmov(equal, eax, Operand(ebx, 0)); | 467 __ cmov(equal, eax, Operand(ebx, 0)); |
463 __ cmov(not_equal, eax, Operand(ebx, 1)); | 468 __ cmov(not_equal, eax, Operand(ebx, 1)); |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
582 #ifdef OBJECT_PRINT | 587 #ifdef OBJECT_PRINT |
583 OFStream os(stdout); | 588 OFStream os(stdout); |
584 code->Print(os); | 589 code->Print(os); |
585 byte* begin = code->instruction_start(); | 590 byte* begin = code->instruction_start(); |
586 byte* end = begin + code->instruction_size(); | 591 byte* end = begin + code->instruction_size(); |
587 disasm::Disassembler::Disassemble(stdout, begin, end); | 592 disasm::Disassembler::Disassemble(stdout, begin, end); |
588 #endif | 593 #endif |
589 } | 594 } |
590 | 595 |
591 #undef __ | 596 #undef __ |
OLD | NEW |