| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 return true; | 75 return true; |
| 76 case CompareOperationHint::kNumber: | 76 case CompareOperationHint::kNumber: |
| 77 *hint = NumberOperationHint::kNumber; | 77 *hint = NumberOperationHint::kNumber; |
| 78 return true; | 78 return true; |
| 79 case CompareOperationHint::kNumberOrOddball: | 79 case CompareOperationHint::kNumberOrOddball: |
| 80 *hint = NumberOperationHint::kNumberOrOddball; | 80 *hint = NumberOperationHint::kNumberOrOddball; |
| 81 return true; | 81 return true; |
| 82 case CompareOperationHint::kAny: | 82 case CompareOperationHint::kAny: |
| 83 case CompareOperationHint::kNone: | 83 case CompareOperationHint::kNone: |
| 84 case CompareOperationHint::kString: | 84 case CompareOperationHint::kString: |
| 85 case CompareOperationHint::kSymbol: |
| 85 case CompareOperationHint::kReceiver: | 86 case CompareOperationHint::kReceiver: |
| 86 case CompareOperationHint::kInternalizedString: | 87 case CompareOperationHint::kInternalizedString: |
| 87 break; | 88 break; |
| 88 } | 89 } |
| 89 return false; | 90 return false; |
| 90 } | 91 } |
| 91 | 92 |
| 92 const Operator* SpeculativeNumberOp(NumberOperationHint hint) { | 93 const Operator* SpeculativeNumberOp(NumberOperationHint hint) { |
| 93 switch (op_->opcode()) { | 94 switch (op_->opcode()) { |
| 94 case IrOpcode::kJSAdd: | 95 case IrOpcode::kJSAdd: |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 Node* frame_state = NodeProperties::FindFrameStateBefore(deoptimize); | 322 Node* frame_state = NodeProperties::FindFrameStateBefore(deoptimize); |
| 322 deoptimize->ReplaceInput(0, frame_state); | 323 deoptimize->ReplaceInput(0, frame_state); |
| 323 return deoptimize; | 324 return deoptimize; |
| 324 } | 325 } |
| 325 return nullptr; | 326 return nullptr; |
| 326 } | 327 } |
| 327 | 328 |
| 328 } // namespace compiler | 329 } // namespace compiler |
| 329 } // namespace internal | 330 } // namespace internal |
| 330 } // namespace v8 | 331 } // namespace v8 |
| OLD | NEW |