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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 __ movsx_b(edx, Operand(esp, 12)); | 158 __ movsx_b(edx, Operand(esp, 12)); |
159 __ movzx_w(edx, Operand(esp, 12)); | 159 __ movzx_w(edx, Operand(esp, 12)); |
160 __ movzx_b(edx, Operand(esp, 12)); | 160 __ movzx_b(edx, Operand(esp, 12)); |
161 __ nop(); | 161 __ nop(); |
162 __ mov(edx, 1234567); | 162 __ mov(edx, 1234567); |
163 __ mov(edx, Operand(esp, 12)); | 163 __ mov(edx, Operand(esp, 12)); |
164 __ mov(Operand(ebx, ecx, times_4, 10000), Immediate(12345)); | 164 __ mov(Operand(ebx, ecx, times_4, 10000), Immediate(12345)); |
165 __ mov(Operand(ebx, ecx, times_4, 10000), edx); | 165 __ mov(Operand(ebx, ecx, times_4, 10000), edx); |
166 __ nop(); | 166 __ nop(); |
167 __ dec_b(edx); | 167 __ dec_b(edx); |
| 168 __ dec_b(Operand(eax, 10)); |
| 169 __ dec_b(Operand(ebx, ecx, times_4, 10000)); |
168 __ dec(edx); | 170 __ dec(edx); |
169 __ cdq(); | 171 __ cdq(); |
170 | 172 |
171 __ nop(); | 173 __ nop(); |
172 __ idiv(edx); | 174 __ idiv(edx); |
173 __ mul(edx); | 175 __ mul(edx); |
174 __ neg(edx); | 176 __ neg(edx); |
175 __ not_(edx); | 177 __ not_(edx); |
176 __ test(Operand(ebx, ecx, times_4, 10000), Immediate(123456)); | 178 __ test(Operand(ebx, ecx, times_4, 10000), Immediate(123456)); |
177 | 179 |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 CHECK(code->IsCode()); | 442 CHECK(code->IsCode()); |
441 #ifdef DEBUG | 443 #ifdef DEBUG |
442 Code::cast(code)->Print(); | 444 Code::cast(code)->Print(); |
443 byte* begin = Code::cast(code)->instruction_start(); | 445 byte* begin = Code::cast(code)->instruction_start(); |
444 byte* end = begin + Code::cast(code)->instruction_size(); | 446 byte* end = begin + Code::cast(code)->instruction_size(); |
445 disasm::Disassembler::Disassemble(stdout, begin, end); | 447 disasm::Disassembler::Disassemble(stdout, begin, end); |
446 #endif | 448 #endif |
447 } | 449 } |
448 | 450 |
449 #undef __ | 451 #undef __ |
OLD | NEW |