| OLD | NEW |
| 1 // Copyright 2017 the V8 project authors. All rights reserved. | 1 // Copyright 2017 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/js-type-hint-lowering.h" | 5 #include "src/compiler/js-type-hint-lowering.h" |
| 6 | 6 |
| 7 #include "src/compiler/js-graph.h" | 7 #include "src/compiler/js-graph.h" |
| 8 #include "src/compiler/operator-properties.h" | 8 #include "src/compiler/operator-properties.h" |
| 9 #include "src/compiler/simplified-operator.h" | 9 #include "src/compiler/simplified-operator.h" |
| 10 #include "src/feedback-vector.h" | 10 #include "src/feedback-vector.h" |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 : jsgraph_(jsgraph), feedback_vector_(feedback_vector) {} | 184 : jsgraph_(jsgraph), feedback_vector_(feedback_vector) {} |
| 185 | 185 |
| 186 Reduction JSTypeHintLowering::ReduceBinaryOperation(const Operator* op, | 186 Reduction JSTypeHintLowering::ReduceBinaryOperation(const Operator* op, |
| 187 Node* left, Node* right, | 187 Node* left, Node* right, |
| 188 Node* effect, Node* control, | 188 Node* effect, Node* control, |
| 189 FeedbackSlot slot) { | 189 FeedbackSlot slot) { |
| 190 switch (op->opcode()) { | 190 switch (op->opcode()) { |
| 191 case IrOpcode::kJSEqual: | 191 case IrOpcode::kJSEqual: |
| 192 case IrOpcode::kJSStrictEqual: | 192 case IrOpcode::kJSStrictEqual: |
| 193 case IrOpcode::kJSNotEqual: | 193 case IrOpcode::kJSNotEqual: |
| 194 case IrOpcode::kJSStrictNotEqual: | |
| 195 break; | 194 break; |
| 196 case IrOpcode::kJSLessThan: | 195 case IrOpcode::kJSLessThan: |
| 197 case IrOpcode::kJSGreaterThan: | 196 case IrOpcode::kJSGreaterThan: |
| 198 case IrOpcode::kJSLessThanOrEqual: | 197 case IrOpcode::kJSLessThanOrEqual: |
| 199 case IrOpcode::kJSGreaterThanOrEqual: { | 198 case IrOpcode::kJSGreaterThanOrEqual: { |
| 200 JSSpeculativeBinopBuilder b(this, op, left, right, effect, control, slot); | 199 JSSpeculativeBinopBuilder b(this, op, left, right, effect, control, slot); |
| 201 if (Node* node = b.TryBuildNumberCompare()) { | 200 if (Node* node = b.TryBuildNumberCompare()) { |
| 202 return Reduction(node); | 201 return Reduction(node); |
| 203 } | 202 } |
| 204 break; | 203 break; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 223 default: | 222 default: |
| 224 UNREACHABLE(); | 223 UNREACHABLE(); |
| 225 break; | 224 break; |
| 226 } | 225 } |
| 227 return Reduction(); | 226 return Reduction(); |
| 228 } | 227 } |
| 229 | 228 |
| 230 } // namespace compiler | 229 } // namespace compiler |
| 231 } // namespace internal | 230 } // namespace internal |
| 232 } // namespace v8 | 231 } // namespace v8 |
| OLD | NEW |