| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 __ cmpb(rbx, Operand(rbp, rcx, times_2, 0)); | 88 __ cmpb(rbx, Operand(rbp, rcx, times_2, 0)); |
| 89 __ cmpb(Operand(rbp, rcx, times_2, 0), rbx); | 89 __ cmpb(Operand(rbp, rcx, times_2, 0), rbx); |
| 90 __ or_(rdx, Immediate(3)); | 90 __ or_(rdx, Immediate(3)); |
| 91 __ xor_(rdx, Immediate(3)); | 91 __ xor_(rdx, Immediate(3)); |
| 92 __ nop(); | 92 __ nop(); |
| 93 { | 93 { |
| 94 CHECK(CpuFeatures::IsSupported(CPUID)); | 94 CHECK(CpuFeatures::IsSupported(CPUID)); |
| 95 CpuFeatures::Scope fscope(CPUID); | 95 CpuFeatures::Scope fscope(CPUID); |
| 96 __ cpuid(); | 96 __ cpuid(); |
| 97 } | 97 } |
| 98 { | |
| 99 CHECK(CpuFeatures::IsSupported(RDTSC)); | |
| 100 CpuFeatures::Scope fscope(RDTSC); | |
| 101 __ rdtsc(); | |
| 102 } | |
| 103 __ movsxbq(rdx, Operand(rcx, 0)); | 98 __ movsxbq(rdx, Operand(rcx, 0)); |
| 104 __ movsxwq(rdx, Operand(rcx, 0)); | 99 __ movsxwq(rdx, Operand(rcx, 0)); |
| 105 __ movzxbl(rdx, Operand(rcx, 0)); | 100 __ movzxbl(rdx, Operand(rcx, 0)); |
| 106 __ movzxwl(rdx, Operand(rcx, 0)); | 101 __ movzxwl(rdx, Operand(rcx, 0)); |
| 107 __ movzxbq(rdx, Operand(rcx, 0)); | 102 __ movzxbq(rdx, Operand(rcx, 0)); |
| 108 __ movzxwq(rdx, Operand(rcx, 0)); | 103 __ movzxwq(rdx, Operand(rcx, 0)); |
| 109 | 104 |
| 110 __ nop(); | 105 __ nop(); |
| 111 __ imul(rdx, rcx); | 106 __ imul(rdx, rcx); |
| 112 __ shld(rdx, rcx); | 107 __ shld(rdx, rcx); |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 CHECK(code->IsCode()); | 408 CHECK(code->IsCode()); |
| 414 #ifdef OBJECT_PRINT | 409 #ifdef OBJECT_PRINT |
| 415 Code::cast(code)->Print(); | 410 Code::cast(code)->Print(); |
| 416 byte* begin = Code::cast(code)->instruction_start(); | 411 byte* begin = Code::cast(code)->instruction_start(); |
| 417 byte* end = begin + Code::cast(code)->instruction_size(); | 412 byte* end = begin + Code::cast(code)->instruction_size(); |
| 418 disasm::Disassembler::Disassemble(stdout, begin, end); | 413 disasm::Disassembler::Disassemble(stdout, begin, end); |
| 419 #endif | 414 #endif |
| 420 } | 415 } |
| 421 | 416 |
| 422 #undef __ | 417 #undef __ |
| OLD | NEW |