| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/instruction-selector-impl.h" | 5 #include "src/compiler/instruction-selector-impl.h" |
| 6 #include "src/compiler/node-matchers.h" | 6 #include "src/compiler/node-matchers.h" |
| 7 | 7 |
| 8 namespace v8 { | 8 namespace v8 { |
| 9 namespace internal { | 9 namespace internal { |
| 10 namespace compiler { | 10 namespace compiler { |
| (...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 | 499 |
| 500 | 500 |
| 501 void InstructionSelector::VisitFloat64Mod(Node* node) { | 501 void InstructionSelector::VisitFloat64Mod(Node* node) { |
| 502 Arm64OperandGenerator g(this); | 502 Arm64OperandGenerator g(this); |
| 503 Emit(kArm64Float64Mod, g.DefineAsFixed(node, d0), | 503 Emit(kArm64Float64Mod, g.DefineAsFixed(node, d0), |
| 504 g.UseFixed(node->InputAt(0), d0), | 504 g.UseFixed(node->InputAt(0), d0), |
| 505 g.UseFixed(node->InputAt(1), d1))->MarkAsCall(); | 505 g.UseFixed(node->InputAt(1), d1))->MarkAsCall(); |
| 506 } | 506 } |
| 507 | 507 |
| 508 | 508 |
| 509 void InstructionSelector::VisitFloat64Sqrt(Node* node) { |
| 510 Arm64OperandGenerator g(this); |
| 511 Emit(kArm64Float64Sqrt, g.DefineAsRegister(node), |
| 512 g.UseRegister(node->InputAt(0))); |
| 513 } |
| 514 |
| 515 |
| 509 void InstructionSelector::VisitInt32AddWithOverflow(Node* node, | 516 void InstructionSelector::VisitInt32AddWithOverflow(Node* node, |
| 510 FlagsContinuation* cont) { | 517 FlagsContinuation* cont) { |
| 511 VisitBinop<Int32BinopMatcher>(this, node, kArm64Add32, kArithmeticImm, cont); | 518 VisitBinop<Int32BinopMatcher>(this, node, kArm64Add32, kArithmeticImm, cont); |
| 512 } | 519 } |
| 513 | 520 |
| 514 | 521 |
| 515 void InstructionSelector::VisitInt32SubWithOverflow(Node* node, | 522 void InstructionSelector::VisitInt32SubWithOverflow(Node* node, |
| 516 FlagsContinuation* cont) { | 523 FlagsContinuation* cont) { |
| 517 VisitBinop<Int32BinopMatcher>(this, node, kArm64Sub32, kArithmeticImm, cont); | 524 VisitBinop<Int32BinopMatcher>(this, node, kArm64Sub32, kArithmeticImm, cont); |
| 518 } | 525 } |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 681 call_instr->MarkAsCall(); | 688 call_instr->MarkAsCall(); |
| 682 if (deoptimization != NULL) { | 689 if (deoptimization != NULL) { |
| 683 DCHECK(continuation != NULL); | 690 DCHECK(continuation != NULL); |
| 684 call_instr->MarkAsControl(); | 691 call_instr->MarkAsControl(); |
| 685 } | 692 } |
| 686 } | 693 } |
| 687 | 694 |
| 688 } // namespace compiler | 695 } // namespace compiler |
| 689 } // namespace internal | 696 } // namespace internal |
| 690 } // namespace v8 | 697 } // namespace v8 |
| OLD | NEW |