| 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 __ popq(Operand(rbx, rcx, times_4, 10000)); | 172 __ popq(Operand(rbx, rcx, times_4, 10000)); |
| 173 // TODO(mstarzinger): The following is protected. | 173 // TODO(mstarzinger): The following is protected. |
| 174 // __ jmp(Operand(rbx, rcx, times_4, 10000)); | 174 // __ jmp(Operand(rbx, rcx, times_4, 10000)); |
| 175 | 175 |
| 176 __ leaq(rdx, Operand(rbx, rcx, times_4, 10000)); | 176 __ leaq(rdx, Operand(rbx, rcx, times_4, 10000)); |
| 177 __ orq(rdx, Immediate(12345)); | 177 __ orq(rdx, Immediate(12345)); |
| 178 __ orq(rdx, Operand(rbx, rcx, times_4, 10000)); | 178 __ orq(rdx, Operand(rbx, rcx, times_4, 10000)); |
| 179 | 179 |
| 180 __ nop(); | 180 __ nop(); |
| 181 | 181 |
| 182 __ rcl(rdx, Immediate(1)); | 182 __ rclq(rdx, Immediate(1)); |
| 183 __ rcl(rdx, Immediate(7)); | 183 __ rclq(rdx, Immediate(7)); |
| 184 __ rcr(rdx, Immediate(1)); | 184 __ rcrq(rdx, Immediate(1)); |
| 185 __ rcr(rdx, Immediate(7)); | 185 __ rcrq(rdx, Immediate(7)); |
| 186 __ sar(rdx, Immediate(1)); | 186 __ sarq(rdx, Immediate(1)); |
| 187 __ sar(rdx, Immediate(6)); | 187 __ sarq(rdx, Immediate(6)); |
| 188 __ sar_cl(rdx); | 188 __ sarq_cl(rdx); |
| 189 __ sbbq(rdx, rbx); | 189 __ sbbq(rdx, rbx); |
| 190 __ shld(rdx, rbx); | 190 __ shld(rdx, rbx); |
| 191 __ shl(rdx, Immediate(1)); | 191 __ shlq(rdx, Immediate(1)); |
| 192 __ shl(rdx, Immediate(6)); | 192 __ shlq(rdx, Immediate(6)); |
| 193 __ shl_cl(rdx); | 193 __ shlq_cl(rdx); |
| 194 __ shrd(rdx, rbx); | 194 __ shrd(rdx, rbx); |
| 195 __ shr(rdx, Immediate(1)); | 195 __ shrq(rdx, Immediate(1)); |
| 196 __ shr(rdx, Immediate(7)); | 196 __ shrq(rdx, Immediate(7)); |
| 197 __ shr_cl(rdx); | 197 __ shrq_cl(rdx); |
| 198 | 198 |
| 199 | 199 |
| 200 // Immediates | 200 // Immediates |
| 201 | 201 |
| 202 __ addq(rbx, Immediate(12)); | 202 __ addq(rbx, Immediate(12)); |
| 203 __ addq(Operand(rdx, rcx, times_4, 10000), Immediate(12)); | 203 __ addq(Operand(rdx, rcx, times_4, 10000), Immediate(12)); |
| 204 | 204 |
| 205 __ andq(rbx, Immediate(12345)); | 205 __ andq(rbx, Immediate(12345)); |
| 206 | 206 |
| 207 __ cmpq(rbx, Immediate(12345)); | 207 __ cmpq(rbx, Immediate(12345)); |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 CHECK(code->IsCode()); | 436 CHECK(code->IsCode()); |
| 437 #ifdef OBJECT_PRINT | 437 #ifdef OBJECT_PRINT |
| 438 Code::cast(code)->Print(); | 438 Code::cast(code)->Print(); |
| 439 byte* begin = Code::cast(code)->instruction_start(); | 439 byte* begin = Code::cast(code)->instruction_start(); |
| 440 byte* end = begin + Code::cast(code)->instruction_size(); | 440 byte* end = begin + Code::cast(code)->instruction_size(); |
| 441 disasm::Disassembler::Disassemble(stdout, begin, end); | 441 disasm::Disassembler::Disassemble(stdout, begin, end); |
| 442 #endif | 442 #endif |
| 443 } | 443 } |
| 444 | 444 |
| 445 #undef __ | 445 #undef __ |
| OLD | NEW |