| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/representation-change.h" | 5 #include "src/compiler/representation-change.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
| (...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 case IrOpcode::kNumberModulus: | 460 case IrOpcode::kNumberModulus: |
| 461 return machine()->Uint32Mod(); | 461 return machine()->Uint32Mod(); |
| 462 case IrOpcode::kNumberEqual: | 462 case IrOpcode::kNumberEqual: |
| 463 return machine()->Word32Equal(); | 463 return machine()->Word32Equal(); |
| 464 case IrOpcode::kNumberLessThan: | 464 case IrOpcode::kNumberLessThan: |
| 465 return machine()->Uint32LessThan(); | 465 return machine()->Uint32LessThan(); |
| 466 case IrOpcode::kNumberLessThanOrEqual: | 466 case IrOpcode::kNumberLessThanOrEqual: |
| 467 return machine()->Uint32LessThanOrEqual(); | 467 return machine()->Uint32LessThanOrEqual(); |
| 468 case IrOpcode::kNumberClz32: | 468 case IrOpcode::kNumberClz32: |
| 469 return machine()->Word32Clz(); | 469 return machine()->Word32Clz(); |
| 470 case IrOpcode::kNumberImul: |
| 471 return machine()->Int32Mul(); |
| 470 default: | 472 default: |
| 471 UNREACHABLE(); | 473 UNREACHABLE(); |
| 472 return nullptr; | 474 return nullptr; |
| 473 } | 475 } |
| 474 } | 476 } |
| 475 | 477 |
| 476 | 478 |
| 477 const Operator* RepresentationChanger::Float64OperatorFor( | 479 const Operator* RepresentationChanger::Float64OperatorFor( |
| 478 IrOpcode::Value opcode) { | 480 IrOpcode::Value opcode) { |
| 479 switch (opcode) { | 481 switch (opcode) { |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 | 532 |
| 531 | 533 |
| 532 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) { | 534 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) { |
| 533 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(), | 535 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(), |
| 534 node); | 536 node); |
| 535 } | 537 } |
| 536 | 538 |
| 537 } // namespace compiler | 539 } // namespace compiler |
| 538 } // namespace internal | 540 } // namespace internal |
| 539 } // namespace v8 | 541 } // namespace v8 |
| OLD | NEW |