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

Side by Side Diff: src/compiler/x64/code-generator-x64.cc

Issue 1021183002: [turbofan] Turn Math.clz32 into an inlinable builtin. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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/compiler/verifier.cc ('k') | src/compiler/x64/instruction-codes-x64.h » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/compiler/code-generator-impl.h" 7 #include "src/compiler/code-generator-impl.h"
8 #include "src/compiler/gap-resolver.h" 8 #include "src/compiler/gap-resolver.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/scopes.h" 10 #include "src/scopes.h"
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after
687 break; 687 break;
688 case kX64Sar: 688 case kX64Sar:
689 ASSEMBLE_SHIFT(sarq, 6); 689 ASSEMBLE_SHIFT(sarq, 6);
690 break; 690 break;
691 case kX64Ror32: 691 case kX64Ror32:
692 ASSEMBLE_SHIFT(rorl, 5); 692 ASSEMBLE_SHIFT(rorl, 5);
693 break; 693 break;
694 case kX64Ror: 694 case kX64Ror:
695 ASSEMBLE_SHIFT(rorq, 6); 695 ASSEMBLE_SHIFT(rorq, 6);
696 break; 696 break;
697 case kX64Lzcnt32:
698 if (instr->InputAt(0)->IsRegister()) {
699 __ Lzcntl(i.OutputRegister(), i.InputRegister(0));
700 } else {
701 __ Lzcntl(i.OutputRegister(), i.InputOperand(0));
702 }
703 break;
697 case kSSEFloat64Cmp: 704 case kSSEFloat64Cmp:
698 ASSEMBLE_DOUBLE_BINOP(ucomisd); 705 ASSEMBLE_DOUBLE_BINOP(ucomisd);
699 break; 706 break;
700 case kSSEFloat64Add: 707 case kSSEFloat64Add:
701 ASSEMBLE_DOUBLE_BINOP(addsd); 708 ASSEMBLE_DOUBLE_BINOP(addsd);
702 break; 709 break;
703 case kSSEFloat64Sub: 710 case kSSEFloat64Sub:
704 ASSEMBLE_DOUBLE_BINOP(subsd); 711 ASSEMBLE_DOUBLE_BINOP(subsd);
705 break; 712 break;
706 case kSSEFloat64Mul: 713 case kSSEFloat64Mul:
(...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after
1493 } 1500 }
1494 } 1501 }
1495 MarkLazyDeoptSite(); 1502 MarkLazyDeoptSite();
1496 } 1503 }
1497 1504
1498 #undef __ 1505 #undef __
1499 1506
1500 } // namespace internal 1507 } // namespace internal
1501 } // namespace compiler 1508 } // namespace compiler
1502 } // namespace v8 1509 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/verifier.cc ('k') | src/compiler/x64/instruction-codes-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698