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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 __ fwait(); | 382 __ fwait(); |
383 __ frndint(); | 383 __ frndint(); |
384 __ fninit(); | 384 __ fninit(); |
385 __ nop(); | 385 __ nop(); |
386 | 386 |
387 // SSE instruction | 387 // SSE instruction |
388 { | 388 { |
389 // Move operation | 389 // Move operation |
390 __ movaps(xmm0, xmm1); | 390 __ movaps(xmm0, xmm1); |
391 __ shufps(xmm0, xmm0, 0x0); | 391 __ shufps(xmm0, xmm0, 0x0); |
| 392 __ cvtsd2ss(xmm0, xmm1); |
| 393 __ cvtsd2ss(xmm0, Operand(ebx, ecx, times_4, 10000)); |
392 | 394 |
393 // logic operation | 395 // logic operation |
394 __ andps(xmm0, xmm1); | 396 __ andps(xmm0, xmm1); |
395 __ andps(xmm0, Operand(ebx, ecx, times_4, 10000)); | 397 __ andps(xmm0, Operand(ebx, ecx, times_4, 10000)); |
396 __ orps(xmm0, xmm1); | 398 __ orps(xmm0, xmm1); |
397 __ orps(xmm0, Operand(ebx, ecx, times_4, 10000)); | 399 __ orps(xmm0, Operand(ebx, ecx, times_4, 10000)); |
398 __ xorps(xmm0, xmm1); | 400 __ xorps(xmm0, xmm1); |
399 __ xorps(xmm0, Operand(ebx, ecx, times_4, 10000)); | 401 __ xorps(xmm0, Operand(ebx, ecx, times_4, 10000)); |
400 | 402 |
401 // Arithmetic operation | 403 // Arithmetic operation |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 #ifdef OBJECT_PRINT | 489 #ifdef OBJECT_PRINT |
488 OFStream os(stdout); | 490 OFStream os(stdout); |
489 code->Print(os); | 491 code->Print(os); |
490 byte* begin = code->instruction_start(); | 492 byte* begin = code->instruction_start(); |
491 byte* end = begin + code->instruction_size(); | 493 byte* end = begin + code->instruction_size(); |
492 disasm::Disassembler::Disassemble(stdout, begin, end); | 494 disasm::Disassembler::Disassemble(stdout, begin, end); |
493 #endif | 495 #endif |
494 } | 496 } |
495 | 497 |
496 #undef __ | 498 #undef __ |
OLD | NEW |