Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Side by Side Diff: test/cctest/test-disasm-ia32.cc

Issue 546087: Implement inline string compare on ARM. (Closed)
Patch Set: Further optimization of ARM version Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/x64/macro-assembler-x64.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 __
OLDNEW
« no previous file with comments | « src/x64/macro-assembler-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698