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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 __ adc(edx, 12345); | 237 __ adc(edx, 12345); |
238 | 238 |
239 __ add(ebx, Immediate(12)); | 239 __ add(ebx, Immediate(12)); |
240 __ add(Operand(edx, ecx, times_4, 10000), Immediate(12)); | 240 __ add(Operand(edx, ecx, times_4, 10000), Immediate(12)); |
241 | 241 |
242 __ and_(ebx, 12345); | 242 __ and_(ebx, 12345); |
243 | 243 |
244 __ cmp(ebx, 12345); | 244 __ cmp(ebx, 12345); |
245 __ cmp(ebx, Immediate(12)); | 245 __ cmp(ebx, Immediate(12)); |
246 __ cmp(Operand(edx, ecx, times_4, 10000), Immediate(12)); | 246 __ cmp(Operand(edx, ecx, times_4, 10000), Immediate(12)); |
247 __ cmpb(eax, 100); | 247 __ cmpb(eax, Immediate(100)); |
248 | 248 |
249 __ or_(ebx, 12345); | 249 __ or_(ebx, 12345); |
250 | 250 |
251 __ sub(ebx, Immediate(12)); | 251 __ sub(ebx, Immediate(12)); |
252 __ sub(Operand(edx, ecx, times_4, 10000), Immediate(12)); | 252 __ sub(Operand(edx, ecx, times_4, 10000), Immediate(12)); |
253 | 253 |
254 __ xor_(ebx, 12345); | 254 __ xor_(ebx, 12345); |
255 | 255 |
256 __ imul(edx, ecx, 12); | 256 __ imul(edx, ecx, 12); |
257 __ imul(edx, ecx, 1000); | 257 __ imul(edx, ecx, 1000); |
258 | 258 |
259 __ cld(); | 259 __ cld(); |
260 __ rep_movs(); | 260 __ rep_movs(); |
261 __ rep_stos(); | 261 __ rep_stos(); |
262 __ stos(); | 262 __ stos(); |
263 | 263 |
264 __ sub(edx, Operand(ebx, ecx, times_4, 10000)); | 264 __ sub(edx, Operand(ebx, ecx, times_4, 10000)); |
265 __ sub(edx, ebx); | 265 __ sub(edx, ebx); |
266 | 266 |
267 __ test(edx, Immediate(12345)); | 267 __ test(edx, Immediate(12345)); |
268 __ test(edx, Operand(ebx, ecx, times_8, 10000)); | 268 __ test(edx, Operand(ebx, ecx, times_8, 10000)); |
269 __ test(Operand(esi, edi, times_1, -20000000), Immediate(300000000)); | 269 __ test(Operand(esi, edi, times_1, -20000000), Immediate(300000000)); |
270 __ test_b(edx, Operand(ecx, ebx, times_2, 1000)); | 270 __ test_b(edx, Operand(ecx, ebx, times_2, 1000)); |
271 __ test_b(Operand(eax, -20), 0x9A); | 271 __ test_b(Operand(eax, -20), Immediate(0x9A)); |
272 __ nop(); | 272 __ nop(); |
273 | 273 |
274 __ xor_(edx, 12345); | 274 __ xor_(edx, 12345); |
275 __ xor_(edx, Operand(ebx, ecx, times_8, 10000)); | 275 __ xor_(edx, Operand(ebx, ecx, times_8, 10000)); |
276 __ bts(Operand(ebx, ecx, times_8, 10000), edx); | 276 __ bts(Operand(ebx, ecx, times_8, 10000), edx); |
277 __ hlt(); | 277 __ hlt(); |
278 __ int3(); | 278 __ int3(); |
279 __ ret(0); | 279 __ ret(0); |
280 __ ret(8); | 280 __ ret(8); |
281 | 281 |
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
686 #ifdef OBJECT_PRINT | 686 #ifdef OBJECT_PRINT |
687 OFStream os(stdout); | 687 OFStream os(stdout); |
688 code->Print(os); | 688 code->Print(os); |
689 byte* begin = code->instruction_start(); | 689 byte* begin = code->instruction_start(); |
690 byte* end = begin + code->instruction_size(); | 690 byte* end = begin + code->instruction_size(); |
691 disasm::Disassembler::Disassemble(stdout, begin, end); | 691 disasm::Disassembler::Disassemble(stdout, begin, end); |
692 #endif | 692 #endif |
693 } | 693 } |
694 | 694 |
695 #undef __ | 695 #undef __ |
OLD | NEW |