| 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/code-factory.h" | 5 #include "src/code-factory.h" |
| 6 #include "src/compiler/access-builder.h" | 6 #include "src/compiler/access-builder.h" |
| 7 #include "src/compiler/js-graph.h" | 7 #include "src/compiler/js-graph.h" |
| 8 #include "src/compiler/js-typed-lowering.h" | 8 #include "src/compiler/js-typed-lowering.h" |
| 9 #include "src/compiler/linkage.h" | 9 #include "src/compiler/linkage.h" |
| 10 #include "src/compiler/node-matchers.h" | 10 #include "src/compiler/node-matchers.h" |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 value->ReplaceInput(0, node_); | 186 value->ReplaceInput(0, node_); |
| 187 return lowering_->Replace(value); | 187 return lowering_->Replace(value); |
| 188 } | 188 } |
| 189 return lowering_->Changed(node_); | 189 return lowering_->Changed(node_); |
| 190 } | 190 } |
| 191 | 191 |
| 192 Reduction ChangeToPureOperator(const Operator* op, Type* type) { | 192 Reduction ChangeToPureOperator(const Operator* op, Type* type) { |
| 193 return ChangeToPureOperator(op, false, type); | 193 return ChangeToPureOperator(op, false, type); |
| 194 } | 194 } |
| 195 | 195 |
| 196 bool IsStrong() { return is_strong(OpParameter<LanguageMode>(node_)); } | 196 bool IsStrong() { return is_strong(OpParameter<Strength>(node_)); } |
| 197 | 197 |
| 198 bool OneInputIs(Type* t) { return left_type()->Is(t) || right_type()->Is(t); } | 198 bool OneInputIs(Type* t) { return left_type()->Is(t) || right_type()->Is(t); } |
| 199 | 199 |
| 200 bool BothInputsAre(Type* t) { | 200 bool BothInputsAre(Type* t) { |
| 201 return left_type()->Is(t) && right_type()->Is(t); | 201 return left_type()->Is(t) && right_type()->Is(t); |
| 202 } | 202 } |
| 203 | 203 |
| 204 bool OneInputCannotBe(Type* t) { | 204 bool OneInputCannotBe(Type* t) { |
| 205 return !left_type()->Maybe(t) || !right_type()->Maybe(t); | 205 return !left_type()->Maybe(t) || !right_type()->Maybe(t); |
| 206 } | 206 } |
| (...skipping 1345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1552 } | 1552 } |
| 1553 | 1553 |
| 1554 | 1554 |
| 1555 MachineOperatorBuilder* JSTypedLowering::machine() const { | 1555 MachineOperatorBuilder* JSTypedLowering::machine() const { |
| 1556 return jsgraph()->machine(); | 1556 return jsgraph()->machine(); |
| 1557 } | 1557 } |
| 1558 | 1558 |
| 1559 } // namespace compiler | 1559 } // namespace compiler |
| 1560 } // namespace internal | 1560 } // namespace internal |
| 1561 } // namespace v8 | 1561 } // namespace v8 |
| OLD | NEW |