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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 __ xor_(edx, 3); | 112 __ xor_(edx, 3); |
113 __ nop(); | 113 __ nop(); |
114 __ cpuid(); | 114 __ cpuid(); |
115 __ movsx_b(edx, ecx); | 115 __ movsx_b(edx, ecx); |
116 __ movsx_w(edx, ecx); | 116 __ movsx_w(edx, ecx); |
117 __ movzx_b(edx, ecx); | 117 __ movzx_b(edx, ecx); |
118 __ movzx_w(edx, ecx); | 118 __ movzx_w(edx, ecx); |
119 | 119 |
120 __ nop(); | 120 __ nop(); |
121 __ imul(edx, ecx); | 121 __ imul(edx, ecx); |
122 __ shld(edx, ecx); | 122 __ shld(edx, ecx, 10); |
| 123 __ shld_cl(edx, ecx); |
123 __ shrd(edx, ecx); | 124 __ shrd(edx, ecx); |
124 __ bts(edx, ecx); | 125 __ bts(edx, ecx); |
125 __ bts(Operand(ebx, ecx, times_4, 0), ecx); | 126 __ bts(Operand(ebx, ecx, times_4, 0), ecx); |
126 __ nop(); | 127 __ nop(); |
127 __ pushad(); | 128 __ pushad(); |
128 __ popad(); | 129 __ popad(); |
129 __ pushfd(); | 130 __ pushfd(); |
130 __ popfd(); | 131 __ popfd(); |
131 __ push(Immediate(12)); | 132 __ push(Immediate(12)); |
132 __ push(Immediate(23456)); | 133 __ push(Immediate(23456)); |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 __ ror(Operand(ebx, ecx, times_4, 10000), 1); | 208 __ ror(Operand(ebx, ecx, times_4, 10000), 1); |
208 __ ror(Operand(ebx, ecx, times_4, 10000), 6); | 209 __ ror(Operand(ebx, ecx, times_4, 10000), 6); |
209 __ ror_cl(Operand(ebx, ecx, times_4, 10000)); | 210 __ ror_cl(Operand(ebx, ecx, times_4, 10000)); |
210 __ sar(edx, 1); | 211 __ sar(edx, 1); |
211 __ sar(edx, 6); | 212 __ sar(edx, 6); |
212 __ sar_cl(edx); | 213 __ sar_cl(edx); |
213 __ sar(Operand(ebx, ecx, times_4, 10000), 1); | 214 __ sar(Operand(ebx, ecx, times_4, 10000), 1); |
214 __ sar(Operand(ebx, ecx, times_4, 10000), 6); | 215 __ sar(Operand(ebx, ecx, times_4, 10000), 6); |
215 __ sar_cl(Operand(ebx, ecx, times_4, 10000)); | 216 __ sar_cl(Operand(ebx, ecx, times_4, 10000)); |
216 __ sbb(edx, Operand(ebx, ecx, times_4, 10000)); | 217 __ sbb(edx, Operand(ebx, ecx, times_4, 10000)); |
217 __ shld(edx, Operand(ebx, ecx, times_4, 10000)); | |
218 __ shl(edx, 1); | 218 __ shl(edx, 1); |
219 __ shl(edx, 6); | 219 __ shl(edx, 6); |
220 __ shl_cl(edx); | 220 __ shl_cl(edx); |
221 __ shl(Operand(ebx, ecx, times_4, 10000), 1); | 221 __ shl(Operand(ebx, ecx, times_4, 10000), 1); |
222 __ shl(Operand(ebx, ecx, times_4, 10000), 6); | 222 __ shl(Operand(ebx, ecx, times_4, 10000), 6); |
223 __ shl_cl(Operand(ebx, ecx, times_4, 10000)); | 223 __ shl_cl(Operand(ebx, ecx, times_4, 10000)); |
224 __ shrd(edx, Operand(ebx, ecx, times_4, 10000)); | 224 __ shrd(edx, Operand(ebx, ecx, times_4, 10000)); |
225 __ shr(edx, 1); | 225 __ shr(edx, 1); |
226 __ shr(edx, 7); | 226 __ shr(edx, 7); |
227 __ shr_cl(edx); | 227 __ shr_cl(edx); |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 #ifdef OBJECT_PRINT | 414 #ifdef OBJECT_PRINT |
415 OFStream os(stdout); | 415 OFStream os(stdout); |
416 code->Print(os); | 416 code->Print(os); |
417 byte* begin = code->instruction_start(); | 417 byte* begin = code->instruction_start(); |
418 byte* end = begin + code->instruction_size(); | 418 byte* end = begin + code->instruction_size(); |
419 disasm::Disassembler::Disassemble(stdout, begin, end); | 419 disasm::Disassembler::Disassemble(stdout, begin, end); |
420 #endif | 420 #endif |
421 } | 421 } |
422 | 422 |
423 #undef __ | 423 #undef __ |
OLD | NEW |