| 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 955 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 966 } | 966 } |
| 967 | 967 |
| 968 void VisitStateValues(Node* node) { | 968 void VisitStateValues(Node* node) { |
| 969 if (propagate()) { | 969 if (propagate()) { |
| 970 for (int i = 0; i < node->InputCount(); i++) { | 970 for (int i = 0; i < node->InputCount(); i++) { |
| 971 EnqueueInput(node, i, UseInfo::Any()); | 971 EnqueueInput(node, i, UseInfo::Any()); |
| 972 } | 972 } |
| 973 } else if (lower()) { | 973 } else if (lower()) { |
| 974 Zone* zone = jsgraph_->zone(); | 974 Zone* zone = jsgraph_->zone(); |
| 975 ZoneVector<MachineType>* types = | 975 ZoneVector<MachineType>* types = |
| 976 new (zone->New(sizeof(ZoneVector<MachineType>))) | 976 new (zone) ZoneVector<MachineType>(node->InputCount(), zone); |
| 977 ZoneVector<MachineType>(node->InputCount(), zone); | |
| 978 for (int i = 0; i < node->InputCount(); i++) { | 977 for (int i = 0; i < node->InputCount(); i++) { |
| 979 Node* input = node->InputAt(i); | 978 Node* input = node->InputAt(i); |
| 980 NodeInfo* input_info = GetInfo(input); | 979 NodeInfo* input_info = GetInfo(input); |
| 981 Type* input_type = TypeOf(input); | 980 Type* input_type = TypeOf(input); |
| 982 MachineRepresentation rep = input_type->IsInhabited() | 981 MachineRepresentation rep = input_type->IsInhabited() |
| 983 ? input_info->representation() | 982 ? input_info->representation() |
| 984 : MachineRepresentation::kNone; | 983 : MachineRepresentation::kNone; |
| 985 MachineType machine_type(rep, DeoptValueSemanticOf(input_type)); | 984 MachineType machine_type(rep, DeoptValueSemanticOf(input_type)); |
| 986 DCHECK(machine_type.representation() != | 985 DCHECK(machine_type.representation() != |
| 987 MachineRepresentation::kWord32 || | 986 MachineRepresentation::kWord32 || |
| (...skipping 2261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3249 isolate(), graph()->zone(), callable.descriptor(), 0, flags, | 3248 isolate(), graph()->zone(), callable.descriptor(), 0, flags, |
| 3250 Operator::kNoProperties); | 3249 Operator::kNoProperties); |
| 3251 to_number_operator_.set(common()->Call(desc)); | 3250 to_number_operator_.set(common()->Call(desc)); |
| 3252 } | 3251 } |
| 3253 return to_number_operator_.get(); | 3252 return to_number_operator_.get(); |
| 3254 } | 3253 } |
| 3255 | 3254 |
| 3256 } // namespace compiler | 3255 } // namespace compiler |
| 3257 } // namespace internal | 3256 } // namespace internal |
| 3258 } // namespace v8 | 3257 } // namespace v8 |
| OLD | NEW |