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/address-map.h" | 9 #include "src/address-map.h" |
10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
(...skipping 970 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
981 MachineRepresentation rep = input_type->IsInhabited() | 981 MachineRepresentation rep = input_type->IsInhabited() |
982 ? input_info->representation() | 982 ? input_info->representation() |
983 : MachineRepresentation::kNone; | 983 : MachineRepresentation::kNone; |
984 MachineType machine_type(rep, DeoptValueSemanticOf(input_type)); | 984 MachineType machine_type(rep, DeoptValueSemanticOf(input_type)); |
985 DCHECK(machine_type.representation() != | 985 DCHECK(machine_type.representation() != |
986 MachineRepresentation::kWord32 || | 986 MachineRepresentation::kWord32 || |
987 machine_type.semantic() == MachineSemantic::kInt32 || | 987 machine_type.semantic() == MachineSemantic::kInt32 || |
988 machine_type.semantic() == MachineSemantic::kUint32); | 988 machine_type.semantic() == MachineSemantic::kUint32); |
989 (*types)[i] = machine_type; | 989 (*types)[i] = machine_type; |
990 } | 990 } |
991 NodeProperties::ChangeOp(node, | 991 uint32_t mask = OpParameter<uint32_t>(node); |
992 jsgraph_->common()->TypedStateValues(types)); | 992 NodeProperties::ChangeOp( |
| 993 node, jsgraph_->common()->TypedStateValues(types, mask)); |
993 } | 994 } |
994 SetOutput(node, MachineRepresentation::kTagged); | 995 SetOutput(node, MachineRepresentation::kTagged); |
995 } | 996 } |
996 | 997 |
997 void VisitObjectState(Node* node) { | 998 void VisitObjectState(Node* node) { |
998 if (propagate()) { | 999 if (propagate()) { |
999 for (int i = 0; i < node->InputCount(); i++) { | 1000 for (int i = 0; i < node->InputCount(); i++) { |
1000 Node* input = node->InputAt(i); | 1001 Node* input = node->InputAt(i); |
1001 Type* input_type = TypeOf(input); | 1002 Type* input_type = TypeOf(input); |
1002 // TODO(turbofan): Special treatment for ExternalPointer here, | 1003 // TODO(turbofan): Special treatment for ExternalPointer here, |
(...skipping 2404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3407 isolate(), graph()->zone(), callable.descriptor(), 0, flags, | 3408 isolate(), graph()->zone(), callable.descriptor(), 0, flags, |
3408 Operator::kNoProperties); | 3409 Operator::kNoProperties); |
3409 to_number_operator_.set(common()->Call(desc)); | 3410 to_number_operator_.set(common()->Call(desc)); |
3410 } | 3411 } |
3411 return to_number_operator_.get(); | 3412 return to_number_operator_.get(); |
3412 } | 3413 } |
3413 | 3414 |
3414 } // namespace compiler | 3415 } // namespace compiler |
3415 } // namespace internal | 3416 } // namespace internal |
3416 } // namespace v8 | 3417 } // namespace v8 |
OLD | NEW |