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 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 case IrOpcode::kNumberModulus: | 484 case IrOpcode::kNumberModulus: |
485 return machine()->Uint32Mod(); | 485 return machine()->Uint32Mod(); |
486 case IrOpcode::kNumberEqual: | 486 case IrOpcode::kNumberEqual: |
487 return machine()->Word32Equal(); | 487 return machine()->Word32Equal(); |
488 case IrOpcode::kNumberLessThan: | 488 case IrOpcode::kNumberLessThan: |
489 return machine()->Uint32LessThan(); | 489 return machine()->Uint32LessThan(); |
490 case IrOpcode::kNumberLessThanOrEqual: | 490 case IrOpcode::kNumberLessThanOrEqual: |
491 return machine()->Uint32LessThanOrEqual(); | 491 return machine()->Uint32LessThanOrEqual(); |
492 case IrOpcode::kNumberClz32: | 492 case IrOpcode::kNumberClz32: |
493 return machine()->Word32Clz(); | 493 return machine()->Word32Clz(); |
| 494 case IrOpcode::kNumberImul: |
| 495 return machine()->Int32Mul(); |
494 default: | 496 default: |
495 UNREACHABLE(); | 497 UNREACHABLE(); |
496 return nullptr; | 498 return nullptr; |
497 } | 499 } |
498 } | 500 } |
499 | 501 |
500 | 502 |
501 const Operator* RepresentationChanger::Float64OperatorFor( | 503 const Operator* RepresentationChanger::Float64OperatorFor( |
502 IrOpcode::Value opcode) { | 504 IrOpcode::Value opcode) { |
503 switch (opcode) { | 505 switch (opcode) { |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
566 } | 568 } |
567 | 569 |
568 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) { | 570 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) { |
569 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(), | 571 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(), |
570 node); | 572 node); |
571 } | 573 } |
572 | 574 |
573 } // namespace compiler | 575 } // namespace compiler |
574 } // namespace internal | 576 } // namespace internal |
575 } // namespace v8 | 577 } // namespace v8 |
OLD | NEW |