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 1174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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::kObjectIsNumber: | 1192 case IrOpcode::kObjectIsNumber: |
1193 case IrOpcode::kObjectIsReceiver: | 1193 case IrOpcode::kObjectIsReceiver: |
1194 case IrOpcode::kObjectIsSmi: | 1194 case IrOpcode::kObjectIsSmi: |
| 1195 case IrOpcode::kObjectIsString: |
1195 case IrOpcode::kObjectIsUndetectable: { | 1196 case IrOpcode::kObjectIsUndetectable: { |
1196 ProcessInput(node, 0, UseInfo::AnyTagged()); | 1197 ProcessInput(node, 0, UseInfo::AnyTagged()); |
1197 SetOutput(node, MachineRepresentation::kBit); | 1198 SetOutput(node, MachineRepresentation::kBit); |
1198 break; | 1199 break; |
1199 } | 1200 } |
1200 | 1201 |
1201 //------------------------------------------------------------------ | 1202 //------------------------------------------------------------------ |
1202 // Machine-level operators. | 1203 // Machine-level operators. |
1203 //------------------------------------------------------------------ | 1204 //------------------------------------------------------------------ |
1204 case IrOpcode::kLoad: { | 1205 case IrOpcode::kLoad: { |
(...skipping 972 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2177 if (!rhs_type->Is(type_cache_.kZeroToThirtyOne)) { | 2178 if (!rhs_type->Is(type_cache_.kZeroToThirtyOne)) { |
2178 node->ReplaceInput(1, graph()->NewNode(machine()->Word32And(), rhs, | 2179 node->ReplaceInput(1, graph()->NewNode(machine()->Word32And(), rhs, |
2179 jsgraph()->Int32Constant(0x1f))); | 2180 jsgraph()->Int32Constant(0x1f))); |
2180 } | 2181 } |
2181 NodeProperties::ChangeOp(node, op); | 2182 NodeProperties::ChangeOp(node, op); |
2182 } | 2183 } |
2183 | 2184 |
2184 } // namespace compiler | 2185 } // namespace compiler |
2185 } // namespace internal | 2186 } // namespace internal |
2186 } // namespace v8 | 2187 } // namespace v8 |
OLD | NEW |