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 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 case IrOpcode::kNumberDivide: | 458 case IrOpcode::kNumberDivide: |
459 return machine()->Uint32Div(); | 459 return machine()->Uint32Div(); |
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: |
| 469 return machine()->Word32Clz(); |
468 default: | 470 default: |
469 UNREACHABLE(); | 471 UNREACHABLE(); |
470 return nullptr; | 472 return nullptr; |
471 } | 473 } |
472 } | 474 } |
473 | 475 |
474 | 476 |
475 const Operator* RepresentationChanger::Float64OperatorFor( | 477 const Operator* RepresentationChanger::Float64OperatorFor( |
476 IrOpcode::Value opcode) { | 478 IrOpcode::Value opcode) { |
477 switch (opcode) { | 479 switch (opcode) { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
528 | 530 |
529 | 531 |
530 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) { | 532 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) { |
531 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(), | 533 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(), |
532 node); | 534 node); |
533 } | 535 } |
534 | 536 |
535 } // namespace compiler | 537 } // namespace compiler |
536 } // namespace internal | 538 } // namespace internal |
537 } // namespace v8 | 539 } // namespace v8 |
OLD | NEW |