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

Side by Side Diff: src/compiler/instruction-selector.cc

Issue 654833002: [turbofan] Optimize division/modulus by constant. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « src/compiler/ia32/instruction-selector-ia32.cc ('k') | src/compiler/machine-operator.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/instruction-selector.h" 5 #include "src/compiler/instruction-selector.h"
6 6
7 #include "src/compiler/instruction-selector-impl.h" 7 #include "src/compiler/instruction-selector-impl.h"
8 #include "src/compiler/node-matchers.h" 8 #include "src/compiler/node-matchers.h"
9 #include "src/compiler/node-properties-inl.h" 9 #include "src/compiler/node-properties-inl.h"
10 #include "src/compiler/pipeline.h" 10 #include "src/compiler/pipeline.h"
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 case IrOpcode::kInt32Add: 651 case IrOpcode::kInt32Add:
652 return VisitInt32Add(node); 652 return VisitInt32Add(node);
653 case IrOpcode::kInt32AddWithOverflow: 653 case IrOpcode::kInt32AddWithOverflow:
654 return VisitInt32AddWithOverflow(node); 654 return VisitInt32AddWithOverflow(node);
655 case IrOpcode::kInt32Sub: 655 case IrOpcode::kInt32Sub:
656 return VisitInt32Sub(node); 656 return VisitInt32Sub(node);
657 case IrOpcode::kInt32SubWithOverflow: 657 case IrOpcode::kInt32SubWithOverflow:
658 return VisitInt32SubWithOverflow(node); 658 return VisitInt32SubWithOverflow(node);
659 case IrOpcode::kInt32Mul: 659 case IrOpcode::kInt32Mul:
660 return VisitInt32Mul(node); 660 return VisitInt32Mul(node);
661 case IrOpcode::kInt32MulHigh:
662 return VisitInt32MulHigh(node);
661 case IrOpcode::kInt32Div: 663 case IrOpcode::kInt32Div:
662 return VisitInt32Div(node); 664 return VisitInt32Div(node);
663 case IrOpcode::kInt32Mod: 665 case IrOpcode::kInt32Mod:
664 return VisitInt32Mod(node); 666 return VisitInt32Mod(node);
665 case IrOpcode::kInt32LessThan: 667 case IrOpcode::kInt32LessThan:
666 return VisitInt32LessThan(node); 668 return VisitInt32LessThan(node);
667 case IrOpcode::kInt32LessThanOrEqual: 669 case IrOpcode::kInt32LessThanOrEqual:
668 return VisitInt32LessThanOrEqual(node); 670 return VisitInt32LessThanOrEqual(node);
669 case IrOpcode::kUint32Div: 671 case IrOpcode::kUint32Div:
670 return VisitUint32Div(node); 672 return VisitUint32Div(node);
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
1022 void InstructionSelector::VisitBranch(Node* branch, BasicBlock* tbranch, 1024 void InstructionSelector::VisitBranch(Node* branch, BasicBlock* tbranch,
1023 BasicBlock* fbranch) { 1025 BasicBlock* fbranch) {
1024 UNIMPLEMENTED(); 1026 UNIMPLEMENTED();
1025 } 1027 }
1026 1028
1027 #endif // !V8_TURBOFAN_BACKEND 1029 #endif // !V8_TURBOFAN_BACKEND
1028 1030
1029 } // namespace compiler 1031 } // namespace compiler
1030 } // namespace internal 1032 } // namespace internal
1031 } // namespace v8 1033 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/ia32/instruction-selector-ia32.cc ('k') | src/compiler/machine-operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698