| OLD | NEW |
| 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/simplified-lowering.h" | 5 #include "src/compiler/simplified-lowering.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
| (...skipping 1171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1182 ElementAccess access = ElementAccessOf(node->op()); | 1182 ElementAccess access = ElementAccessOf(node->op()); |
| 1183 ProcessInput(node, 0, UseInfoForBasePointer(access)); // base | 1183 ProcessInput(node, 0, UseInfoForBasePointer(access)); // base |
| 1184 ProcessInput(node, 1, UseInfo::TruncatingWord32()); // index | 1184 ProcessInput(node, 1, UseInfo::TruncatingWord32()); // index |
| 1185 ProcessInput(node, 2, | 1185 ProcessInput(node, 2, |
| 1186 TruncatingUseInfoFromRepresentation( | 1186 TruncatingUseInfoFromRepresentation( |
| 1187 access.machine_type.representation())); // value | 1187 access.machine_type.representation())); // value |
| 1188 ProcessRemainingInputs(node, 3); | 1188 ProcessRemainingInputs(node, 3); |
| 1189 SetOutput(node, MachineRepresentation::kNone); | 1189 SetOutput(node, MachineRepresentation::kNone); |
| 1190 break; | 1190 break; |
| 1191 } | 1191 } |
| 1192 case IrOpcode::kObjectIsCallable: |
| 1192 case IrOpcode::kObjectIsNumber: | 1193 case IrOpcode::kObjectIsNumber: |
| 1193 case IrOpcode::kObjectIsReceiver: | 1194 case IrOpcode::kObjectIsReceiver: |
| 1194 case IrOpcode::kObjectIsSmi: | 1195 case IrOpcode::kObjectIsSmi: |
| 1195 case IrOpcode::kObjectIsString: | 1196 case IrOpcode::kObjectIsString: |
| 1196 case IrOpcode::kObjectIsUndetectable: { | 1197 case IrOpcode::kObjectIsUndetectable: { |
| 1197 ProcessInput(node, 0, UseInfo::AnyTagged()); | 1198 ProcessInput(node, 0, UseInfo::AnyTagged()); |
| 1198 SetOutput(node, MachineRepresentation::kBit); | 1199 SetOutput(node, MachineRepresentation::kBit); |
| 1199 break; | 1200 break; |
| 1200 } | 1201 } |
| 1201 | 1202 |
| (...skipping 976 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2178 if (!rhs_type->Is(type_cache_.kZeroToThirtyOne)) { | 2179 if (!rhs_type->Is(type_cache_.kZeroToThirtyOne)) { |
| 2179 node->ReplaceInput(1, graph()->NewNode(machine()->Word32And(), rhs, | 2180 node->ReplaceInput(1, graph()->NewNode(machine()->Word32And(), rhs, |
| 2180 jsgraph()->Int32Constant(0x1f))); | 2181 jsgraph()->Int32Constant(0x1f))); |
| 2181 } | 2182 } |
| 2182 NodeProperties::ChangeOp(node, op); | 2183 NodeProperties::ChangeOp(node, op); |
| 2183 } | 2184 } |
| 2184 | 2185 |
| 2185 } // namespace compiler | 2186 } // namespace compiler |
| 2186 } // namespace internal | 2187 } // namespace internal |
| 2187 } // namespace v8 | 2188 } // namespace v8 |
| OLD | NEW |