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 1222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1233 ProcessInput(node, 1, UseInfo::TruncatingWord32()); // index | 1233 ProcessInput(node, 1, UseInfo::TruncatingWord32()); // index |
1234 ProcessInput(node, 2, | 1234 ProcessInput(node, 2, |
1235 TruncatingUseInfoFromRepresentation( | 1235 TruncatingUseInfoFromRepresentation( |
1236 access.machine_type.representation())); // value | 1236 access.machine_type.representation())); // value |
1237 ProcessRemainingInputs(node, 3); | 1237 ProcessRemainingInputs(node, 3); |
1238 SetOutput(node, NodeOutputInfo::None()); | 1238 SetOutput(node, NodeOutputInfo::None()); |
1239 break; | 1239 break; |
1240 } | 1240 } |
1241 case IrOpcode::kObjectIsNumber: { | 1241 case IrOpcode::kObjectIsNumber: { |
1242 ProcessInput(node, 0, UseInfo::AnyTagged()); | 1242 ProcessInput(node, 0, UseInfo::AnyTagged()); |
| 1243 ProcessRemainingInputs(node, 1); |
1243 SetOutput(node, NodeOutputInfo::Bool()); | 1244 SetOutput(node, NodeOutputInfo::Bool()); |
1244 break; | 1245 break; |
1245 } | 1246 } |
1246 case IrOpcode::kObjectIsReceiver: { | 1247 case IrOpcode::kObjectIsReceiver: { |
1247 ProcessInput(node, 0, UseInfo::AnyTagged()); | 1248 ProcessInput(node, 0, UseInfo::AnyTagged()); |
1248 SetOutput(node, NodeOutputInfo::Bool()); | 1249 SetOutput(node, NodeOutputInfo::Bool()); |
1249 break; | 1250 break; |
1250 } | 1251 } |
1251 case IrOpcode::kObjectIsSmi: { | 1252 case IrOpcode::kObjectIsSmi: { |
1252 ProcessInput(node, 0, UseInfo::AnyTagged()); | 1253 ProcessInput(node, 0, UseInfo::AnyTagged()); |
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1908 ReplaceEffectUses(node, comparison); | 1909 ReplaceEffectUses(node, comparison); |
1909 node->ReplaceInput(0, comparison); | 1910 node->ReplaceInput(0, comparison); |
1910 node->ReplaceInput(1, jsgraph()->SmiConstant(EQUAL)); | 1911 node->ReplaceInput(1, jsgraph()->SmiConstant(EQUAL)); |
1911 node->TrimInputCount(2); | 1912 node->TrimInputCount(2); |
1912 NodeProperties::ChangeOp(node, machine()->IntLessThanOrEqual()); | 1913 NodeProperties::ChangeOp(node, machine()->IntLessThanOrEqual()); |
1913 } | 1914 } |
1914 | 1915 |
1915 } // namespace compiler | 1916 } // namespace compiler |
1916 } // namespace internal | 1917 } // namespace internal |
1917 } // namespace v8 | 1918 } // namespace v8 |
OLD | NEW |