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