| 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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 void InstructionSelector::VisitWord32Sar(Node* node) { | 322 void InstructionSelector::VisitWord32Sar(Node* node) { |
| 323 VisitRRO(this, kArm64Sar32, node, kShift32Imm); | 323 VisitRRO(this, kArm64Sar32, node, kShift32Imm); |
| 324 } | 324 } |
| 325 | 325 |
| 326 | 326 |
| 327 void InstructionSelector::VisitWord64Sar(Node* node) { | 327 void InstructionSelector::VisitWord64Sar(Node* node) { |
| 328 VisitRRO(this, kArm64Sar, node, kShift64Imm); | 328 VisitRRO(this, kArm64Sar, node, kShift64Imm); |
| 329 } | 329 } |
| 330 | 330 |
| 331 | 331 |
| 332 void InstructionSelector::VisitWord32Ror(Node* node) { |
| 333 VisitRRO(this, kArm64Ror32, node, kShift32Imm); |
| 334 } |
| 335 |
| 336 |
| 337 void InstructionSelector::VisitWord64Ror(Node* node) { |
| 338 VisitRRO(this, kArm64Ror, node, kShift64Imm); |
| 339 } |
| 340 |
| 341 |
| 332 void InstructionSelector::VisitInt32Add(Node* node) { | 342 void InstructionSelector::VisitInt32Add(Node* node) { |
| 333 VisitBinop(this, node, kArm64Add32, kArithimeticImm); | 343 VisitBinop(this, node, kArm64Add32, kArithimeticImm); |
| 334 } | 344 } |
| 335 | 345 |
| 336 | 346 |
| 337 void InstructionSelector::VisitInt64Add(Node* node) { | 347 void InstructionSelector::VisitInt64Add(Node* node) { |
| 338 VisitBinop(this, node, kArm64Add, kArithimeticImm); | 348 VisitBinop(this, node, kArm64Add, kArithimeticImm); |
| 339 } | 349 } |
| 340 | 350 |
| 341 | 351 |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 658 // Caller clean up of stack for C-style calls. | 668 // Caller clean up of stack for C-style calls. |
| 659 if (is_c_frame && aligned_push_count > 0) { | 669 if (is_c_frame && aligned_push_count > 0) { |
| 660 DCHECK(deoptimization == NULL && continuation == NULL); | 670 DCHECK(deoptimization == NULL && continuation == NULL); |
| 661 Emit(kArm64Drop | MiscField::encode(aligned_push_count), NULL); | 671 Emit(kArm64Drop | MiscField::encode(aligned_push_count), NULL); |
| 662 } | 672 } |
| 663 } | 673 } |
| 664 | 674 |
| 665 } // namespace compiler | 675 } // namespace compiler |
| 666 } // namespace internal | 676 } // namespace internal |
| 667 } // namespace v8 | 677 } // namespace v8 |
| OLD | NEW |