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

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

Issue 697663003: [turbofan] Also optimize unsigned division by constant. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Slight improvement Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « test/cctest/compiler/test-run-machops.cc ('k') | test/mjsunit/asm/uint32div.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
172 __ movq(Operand(rbx, rcx, times_4, 10000), rdx); 172 __ movq(Operand(rbx, rcx, times_4, 10000), rdx);
173 __ nop(); 173 __ nop();
174 __ decb(rdx); 174 __ decb(rdx);
175 __ decb(Operand(rax, 10)); 175 __ decb(Operand(rax, 10));
176 __ decb(Operand(rbx, rcx, times_4, 10000)); 176 __ decb(Operand(rbx, rcx, times_4, 10000));
177 __ decq(rdx); 177 __ decq(rdx);
178 __ cdq(); 178 __ cdq();
179 179
180 __ nop(); 180 __ nop();
181 __ idivq(rdx); 181 __ idivq(rdx);
182 __ mul(rdx); 182 __ mull(rdx);
183 __ mulq(rdx);
183 __ negq(rdx); 184 __ negq(rdx);
184 __ notq(rdx); 185 __ notq(rdx);
185 __ testq(Operand(rbx, rcx, times_4, 10000), rdx); 186 __ testq(Operand(rbx, rcx, times_4, 10000), rdx);
186 187
187 __ imulq(rdx, rcx, Immediate(12)); 188 __ imulq(rdx, rcx, Immediate(12));
188 __ imulq(rdx, rcx, Immediate(1000)); 189 __ imulq(rdx, rcx, Immediate(1000));
189 __ imulq(rdx, Operand(rbx, rcx, times_4, 10000)); 190 __ imulq(rdx, Operand(rbx, rcx, times_4, 10000));
190 __ imulq(rdx, Operand(rbx, rcx, times_4, 10000), Immediate(12)); 191 __ imulq(rdx, Operand(rbx, rcx, times_4, 10000), Immediate(12));
191 __ imulq(rdx, Operand(rbx, rcx, times_4, 10000), Immediate(1000)); 192 __ imulq(rdx, Operand(rbx, rcx, times_4, 10000), Immediate(1000));
192 __ imull(r15, rcx, Immediate(12)); 193 __ imull(r15, rcx, Immediate(12));
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 #ifdef OBJECT_PRINT 487 #ifdef OBJECT_PRINT
487 OFStream os(stdout); 488 OFStream os(stdout);
488 code->Print(os); 489 code->Print(os);
489 byte* begin = code->instruction_start(); 490 byte* begin = code->instruction_start();
490 byte* end = begin + code->instruction_size(); 491 byte* end = begin + code->instruction_size();
491 disasm::Disassembler::Disassemble(stdout, begin, end); 492 disasm::Disassembler::Disassemble(stdout, begin, end);
492 #endif 493 #endif
493 } 494 }
494 495
495 #undef __ 496 #undef __
OLDNEW
« no previous file with comments | « test/cctest/compiler/test-run-machops.cc ('k') | test/mjsunit/asm/uint32div.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698