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

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

Issue 661245: Faster filling newly allocated arrays with the holes from the Array construction stub. (Closed)
Patch Set: scons -> stos as spotted by Soren Created 10 years, 9 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/ia32/disasm-ia32.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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 __ sub(Operand(edx, ecx, times_4, 10000), Immediate(12)); 227 __ sub(Operand(edx, ecx, times_4, 10000), Immediate(12));
228 __ subb(Operand(edx, ecx, times_4, 10000), 100); 228 __ subb(Operand(edx, ecx, times_4, 10000), 100);
229 __ subb(Operand(eax), 100); 229 __ subb(Operand(eax), 100);
230 __ subb(eax, Operand(edx, ecx, times_4, 10000)); 230 __ subb(eax, Operand(edx, ecx, times_4, 10000));
231 231
232 __ xor_(ebx, 12345); 232 __ xor_(ebx, 12345);
233 233
234 __ imul(edx, ecx, 12); 234 __ imul(edx, ecx, 12);
235 __ imul(edx, ecx, 1000); 235 __ imul(edx, ecx, 1000);
236 236
237 __ cld();
237 __ rep_movs(); 238 __ rep_movs();
239 __ rep_stos();
238 240
239 __ sub(edx, Operand(ebx, ecx, times_4, 10000)); 241 __ sub(edx, Operand(ebx, ecx, times_4, 10000));
240 __ sub(edx, Operand(ebx)); 242 __ sub(edx, Operand(ebx));
241 243
242 __ test(edx, Immediate(12345)); 244 __ test(edx, Immediate(12345));
243 __ test(edx, Operand(ebx, ecx, times_8, 10000)); 245 __ test(edx, Operand(ebx, ecx, times_8, 10000));
244 __ nop(); 246 __ nop();
245 247
246 __ xor_(edx, 12345); 248 __ xor_(edx, 12345);
247 __ xor_(edx, Operand(ebx, ecx, times_8, 10000)); 249 __ xor_(edx, Operand(ebx, ecx, times_8, 10000));
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 CHECK(code->IsCode()); 413 CHECK(code->IsCode());
412 #ifdef DEBUG 414 #ifdef DEBUG
413 Code::cast(code)->Print(); 415 Code::cast(code)->Print();
414 byte* begin = Code::cast(code)->instruction_start(); 416 byte* begin = Code::cast(code)->instruction_start();
415 byte* end = begin + Code::cast(code)->instruction_size(); 417 byte* end = begin + Code::cast(code)->instruction_size();
416 disasm::Disassembler::Disassemble(stdout, begin, end); 418 disasm::Disassembler::Disassemble(stdout, begin, end);
417 #endif 419 #endif
418 } 420 }
419 421
420 #undef __ 422 #undef __
OLDNEW
« no previous file with comments | « src/ia32/disasm-ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698