OLD | NEW |
1 // Copyright 2007-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2007-2008 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 __ jmp(Operand(ebx, ecx, times_4, 10000)); | 187 __ jmp(Operand(ebx, ecx, times_4, 10000)); |
188 | 188 |
189 __ lea(edx, Operand(ebx, ecx, times_4, 10000)); | 189 __ lea(edx, Operand(ebx, ecx, times_4, 10000)); |
190 __ or_(edx, 12345); | 190 __ or_(edx, 12345); |
191 __ or_(edx, Operand(ebx, ecx, times_4, 10000)); | 191 __ or_(edx, Operand(ebx, ecx, times_4, 10000)); |
192 | 192 |
193 __ nop(); | 193 __ nop(); |
194 | 194 |
195 __ rcl(edx, 1); | 195 __ rcl(edx, 1); |
196 __ rcl(edx, 7); | 196 __ rcl(edx, 7); |
| 197 __ rcr(edx, 1); |
| 198 __ rcr(edx, 7); |
197 __ sar(edx, 1); | 199 __ sar(edx, 1); |
198 __ sar(edx, 6); | 200 __ sar(edx, 6); |
199 __ sar_cl(edx); | 201 __ sar_cl(edx); |
200 __ sbb(edx, Operand(ebx, ecx, times_4, 10000)); | 202 __ sbb(edx, Operand(ebx, ecx, times_4, 10000)); |
201 __ shld(edx, Operand(ebx, ecx, times_4, 10000)); | 203 __ shld(edx, Operand(ebx, ecx, times_4, 10000)); |
202 __ shl(edx, 1); | 204 __ shl(edx, 1); |
203 __ shl(edx, 6); | 205 __ shl(edx, 6); |
204 __ shl_cl(edx); | 206 __ shl_cl(edx); |
205 __ shrd(edx, Operand(ebx, ecx, times_4, 10000)); | 207 __ shrd(edx, Operand(ebx, ecx, times_4, 10000)); |
206 __ shr(edx, 1); | 208 __ shr(edx, 1); |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 CHECK(code->IsCode()); | 422 CHECK(code->IsCode()); |
421 #ifdef DEBUG | 423 #ifdef DEBUG |
422 Code::cast(code)->Print(); | 424 Code::cast(code)->Print(); |
423 byte* begin = Code::cast(code)->instruction_start(); | 425 byte* begin = Code::cast(code)->instruction_start(); |
424 byte* end = begin + Code::cast(code)->instruction_size(); | 426 byte* end = begin + Code::cast(code)->instruction_size(); |
425 disasm::Disassembler::Disassemble(stdout, begin, end); | 427 disasm::Disassembler::Disassemble(stdout, begin, end); |
426 #endif | 428 #endif |
427 } | 429 } |
428 | 430 |
429 #undef __ | 431 #undef __ |
OLD | NEW |