| 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 { |
| 11 | 11 |
| 12 #if V8_TURBOFAN_TARGET |
| 13 |
| 12 enum ImmediateMode { | 14 enum ImmediateMode { |
| 13 kArithimeticImm, // 12 bit unsigned immediate shifted left 0 or 12 bits | 15 kArithimeticImm, // 12 bit unsigned immediate shifted left 0 or 12 bits |
| 14 kShift32Imm, // 0 - 31 | 16 kShift32Imm, // 0 - 31 |
| 15 kShift64Imm, // 0 -63 | 17 kShift64Imm, // 0 -63 |
| 16 kLogical32Imm, | 18 kLogical32Imm, |
| 17 kLogical64Imm, | 19 kLogical64Imm, |
| 18 kLoadStoreImm, // unsigned 9 bit or signed 7 bit | 20 kLoadStoreImm, // unsigned 9 bit or signed 7 bit |
| 19 kNoImmediate | 21 kNoImmediate |
| 20 }; | 22 }; |
| 21 | 23 |
| (...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 651 call_instr->MarkAsControl(); | 653 call_instr->MarkAsControl(); |
| 652 } | 654 } |
| 653 | 655 |
| 654 // Caller clean up of stack for C-style calls. | 656 // Caller clean up of stack for C-style calls. |
| 655 if (is_c_frame && aligned_push_count > 0) { | 657 if (is_c_frame && aligned_push_count > 0) { |
| 656 ASSERT(deoptimization == NULL && continuation == NULL); | 658 ASSERT(deoptimization == NULL && continuation == NULL); |
| 657 Emit(kArm64Drop | MiscField::encode(aligned_push_count), NULL); | 659 Emit(kArm64Drop | MiscField::encode(aligned_push_count), NULL); |
| 658 } | 660 } |
| 659 } | 661 } |
| 660 | 662 |
| 663 #endif // V8_TURBOFAN_TARGET |
| 664 |
| 661 } // namespace compiler | 665 } // namespace compiler |
| 662 } // namespace internal | 666 } // namespace internal |
| 663 } // namespace v8 | 667 } // namespace v8 |
| OLD | NEW |