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 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
461 __ psllq(xmm0, 17); | 461 __ psllq(xmm0, 17); |
462 __ psllq(xmm0, xmm1); | 462 __ psllq(xmm0, xmm1); |
463 __ psrlq(xmm0, 17); | 463 __ psrlq(xmm0, 17); |
464 __ psrlq(xmm0, xmm1); | 464 __ psrlq(xmm0, xmm1); |
465 __ por(xmm0, xmm1); | 465 __ por(xmm0, xmm1); |
466 | 466 |
467 __ pcmpeqd(xmm1, xmm0); | 467 __ pcmpeqd(xmm1, xmm0); |
468 | 468 |
469 __ punpckldq(xmm1, xmm6); | 469 __ punpckldq(xmm1, xmm6); |
470 __ punpckhdq(xmm7, xmm5); | 470 __ punpckhdq(xmm7, xmm5); |
| 471 |
| 472 #define EMIT_SSE2_INSTR(instruction, notUsed1, notUsed2, notUsed3) \ |
| 473 __ instruction(xmm5, xmm1); \ |
| 474 __ instruction(xmm5, Operand(edx, 4)); |
| 475 |
| 476 SSE2_INSTRUCTION_LIST(EMIT_SSE2_INSTR) |
| 477 #undef EMIT_SSE2_INSTR |
471 } | 478 } |
472 | 479 |
473 // cmov. | 480 // cmov. |
474 { | 481 { |
475 __ cmov(overflow, eax, Operand(eax, 0)); | 482 __ cmov(overflow, eax, Operand(eax, 0)); |
476 __ cmov(no_overflow, eax, Operand(eax, 1)); | 483 __ cmov(no_overflow, eax, Operand(eax, 1)); |
477 __ cmov(below, eax, Operand(eax, 2)); | 484 __ cmov(below, eax, Operand(eax, 2)); |
478 __ cmov(above_equal, eax, Operand(eax, 3)); | 485 __ cmov(above_equal, eax, Operand(eax, 3)); |
479 __ cmov(equal, eax, Operand(ebx, 0)); | 486 __ cmov(equal, eax, Operand(ebx, 0)); |
480 __ cmov(not_equal, eax, Operand(ebx, 1)); | 487 __ cmov(not_equal, eax, Operand(ebx, 1)); |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
704 #ifdef OBJECT_PRINT | 711 #ifdef OBJECT_PRINT |
705 OFStream os(stdout); | 712 OFStream os(stdout); |
706 code->Print(os); | 713 code->Print(os); |
707 byte* begin = code->instruction_start(); | 714 byte* begin = code->instruction_start(); |
708 byte* end = begin + code->instruction_size(); | 715 byte* end = begin + code->instruction_size(); |
709 disasm::Disassembler::Disassemble(stdout, begin, end); | 716 disasm::Disassembler::Disassemble(stdout, begin, end); |
710 #endif | 717 #endif |
711 } | 718 } |
712 | 719 |
713 #undef __ | 720 #undef __ |
OLD | NEW |