OLD | NEW |
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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 case IrOpcode::kJSLoadProperty: | 74 case IrOpcode::kJSLoadProperty: |
75 case IrOpcode::kJSModulus: | 75 case IrOpcode::kJSModulus: |
76 case IrOpcode::kJSMultiply: | 76 case IrOpcode::kJSMultiply: |
77 case IrOpcode::kJSShiftLeft: | 77 case IrOpcode::kJSShiftLeft: |
78 case IrOpcode::kJSShiftRight: | 78 case IrOpcode::kJSShiftRight: |
79 case IrOpcode::kJSShiftRightLogical: | 79 case IrOpcode::kJSShiftRightLogical: |
80 case IrOpcode::kJSStoreNamed: | 80 case IrOpcode::kJSStoreNamed: |
81 case IrOpcode::kJSStoreProperty: | 81 case IrOpcode::kJSStoreProperty: |
82 case IrOpcode::kJSSubtract: | 82 case IrOpcode::kJSSubtract: |
83 | 83 |
| 84 // Conversions |
| 85 case IrOpcode::kJSToObject: |
| 86 |
84 // Other | 87 // Other |
85 case IrOpcode::kJSDeleteProperty: | 88 case IrOpcode::kJSDeleteProperty: |
86 return true; | 89 return true; |
87 | 90 |
88 default: | 91 default: |
89 return false; | 92 return false; |
90 } | 93 } |
91 } | 94 } |
92 | 95 |
93 inline int OperatorProperties::GetValueInputCount(const Operator* op) { | 96 inline int OperatorProperties::GetValueInputCount(const Operator* op) { |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop || | 188 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop || |
186 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue || | 189 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue || |
187 opcode == IrOpcode::kIfFalse; | 190 opcode == IrOpcode::kIfFalse; |
188 } | 191 } |
189 | 192 |
190 } // namespace compiler | 193 } // namespace compiler |
191 } // namespace internal | 194 } // namespace internal |
192 } // namespace v8 | 195 } // namespace v8 |
193 | 196 |
194 #endif // V8_COMPILER_OPERATOR_PROPERTIES_INL_H_ | 197 #endif // V8_COMPILER_OPERATOR_PROPERTIES_INL_H_ |
OLD | NEW |