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

Side by Side Diff: src/compiler/operator-properties-inl.h

Issue 681133004: [turbofan] Complete support for integer division/modulus in simplified lowering. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixes 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 | « src/compiler/node-matchers.h ('k') | src/compiler/simplified-lowering.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 #ifndef V8_COMPILER_OPERATOR_PROPERTIES_INL_H_ 5 #ifndef V8_COMPILER_OPERATOR_PROPERTIES_INL_H_
6 #define V8_COMPILER_OPERATOR_PROPERTIES_INL_H_ 6 #define V8_COMPILER_OPERATOR_PROPERTIES_INL_H_
7 7
8 #include "src/compiler/common-operator.h" 8 #include "src/compiler/common-operator.h"
9 #include "src/compiler/js-operator.h" 9 #include "src/compiler/js-operator.h"
10 #include "src/compiler/linkage.h" 10 #include "src/compiler/linkage.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 return 1; 116 return 1;
117 } 117 }
118 118
119 inline int OperatorProperties::GetControlInputCount(const Operator* op) { 119 inline int OperatorProperties::GetControlInputCount(const Operator* op) {
120 // TODO(titzer): fix this mess; just make them a count on the operator. 120 // TODO(titzer): fix this mess; just make them a count on the operator.
121 switch (op->opcode()) { 121 switch (op->opcode()) {
122 case IrOpcode::kPhi: 122 case IrOpcode::kPhi:
123 case IrOpcode::kEffectPhi: 123 case IrOpcode::kEffectPhi:
124 case IrOpcode::kLoad: 124 case IrOpcode::kLoad:
125 case IrOpcode::kLoadField: 125 case IrOpcode::kLoadField:
126 case IrOpcode::kInt32Div:
127 case IrOpcode::kInt32Mod:
128 case IrOpcode::kUint32Div:
129 case IrOpcode::kUint32Mod:
126 return 1; 130 return 1;
127 #define OPCODE_CASE(x) case IrOpcode::k##x: 131 #define OPCODE_CASE(x) case IrOpcode::k##x:
128 CONTROL_OP_LIST(OPCODE_CASE) 132 CONTROL_OP_LIST(OPCODE_CASE)
129 #undef OPCODE_CASE 133 #undef OPCODE_CASE
130 if (op->opcode() == IrOpcode::kBranch) return 1; 134 if (op->opcode() == IrOpcode::kBranch) return 1;
131 if (op->opcode() == IrOpcode::kTerminate) return 1; 135 if (op->opcode() == IrOpcode::kTerminate) return 1;
132 // Control operators are Operator1<int>. 136 // Control operators are Operator1<int>.
133 return OpParameter<int>(op); 137 return OpParameter<int>(op);
134 default: 138 default:
135 // Operators that have write effects must have a control 139 // Operators that have write effects must have a control
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop || 192 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop ||
189 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue || 193 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue ||
190 opcode == IrOpcode::kIfFalse; 194 opcode == IrOpcode::kIfFalse;
191 } 195 }
192 196
193 } // namespace compiler 197 } // namespace compiler
194 } // namespace internal 198 } // namespace internal
195 } // namespace v8 199 } // namespace v8
196 200
197 #endif // V8_COMPILER_OPERATOR_PROPERTIES_INL_H_ 201 #endif // V8_COMPILER_OPERATOR_PROPERTIES_INL_H_
OLDNEW
« no previous file with comments | « src/compiler/node-matchers.h ('k') | src/compiler/simplified-lowering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698