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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 __ adc(ecx, 12); | 94 __ adc(ecx, 12); |
95 __ adc(ecx, 1000); | 95 __ adc(ecx, 1000); |
96 __ nop(); | 96 __ nop(); |
97 __ and_(edx, 3); | 97 __ and_(edx, 3); |
98 __ and_(edx, Operand(esp, 4)); | 98 __ and_(edx, Operand(esp, 4)); |
99 __ cmp(edx, 3); | 99 __ cmp(edx, 3); |
100 __ cmp(edx, Operand(esp, 4)); | 100 __ cmp(edx, Operand(esp, 4)); |
101 __ cmp(Operand(ebp, ecx, times_4, 0), Immediate(1000)); | 101 __ cmp(Operand(ebp, ecx, times_4, 0), Immediate(1000)); |
102 Handle<FixedArray> foo2 = Factory::NewFixedArray(10, TENURED); | 102 Handle<FixedArray> foo2 = Factory::NewFixedArray(10, TENURED); |
103 __ cmp(ebx, foo2); | 103 __ cmp(ebx, foo2); |
| 104 __ cmpb(ebx, Operand(ebp, ecx, times_2, 0)); |
| 105 __ cmpb(Operand(ebp, ecx, times_2, 0), ebx); |
104 __ or_(edx, 3); | 106 __ or_(edx, 3); |
105 __ xor_(edx, 3); | 107 __ xor_(edx, 3); |
106 __ nop(); | 108 __ nop(); |
107 { | 109 { |
108 CHECK(CpuFeatures::IsSupported(CPUID)); | 110 CHECK(CpuFeatures::IsSupported(CPUID)); |
109 CpuFeatures::Scope fscope(CPUID); | 111 CpuFeatures::Scope fscope(CPUID); |
110 __ cpuid(); | 112 __ cpuid(); |
111 } | 113 } |
112 { | 114 { |
113 CHECK(CpuFeatures::IsSupported(RDTSC)); | 115 CHECK(CpuFeatures::IsSupported(RDTSC)); |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 CHECK(code->IsCode()); | 411 CHECK(code->IsCode()); |
410 #ifdef DEBUG | 412 #ifdef DEBUG |
411 Code::cast(code)->Print(); | 413 Code::cast(code)->Print(); |
412 byte* begin = Code::cast(code)->instruction_start(); | 414 byte* begin = Code::cast(code)->instruction_start(); |
413 byte* end = begin + Code::cast(code)->instruction_size(); | 415 byte* end = begin + Code::cast(code)->instruction_size(); |
414 disasm::Disassembler::Disassemble(stdout, begin, end); | 416 disasm::Disassembler::Disassemble(stdout, begin, end); |
415 #endif | 417 #endif |
416 } | 418 } |
417 | 419 |
418 #undef __ | 420 #undef __ |
OLD | NEW |