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/code-generator.h" | 5 #include "src/compiler/code-generator.h" |
6 | 6 |
7 #include "src/compilation-info.h" | 7 #include "src/compilation-info.h" |
8 #include "src/compiler/code-generator-impl.h" | 8 #include "src/compiler/code-generator-impl.h" |
9 #include "src/compiler/gap-resolver.h" | 9 #include "src/compiler/gap-resolver.h" |
10 #include "src/compiler/node-matchers.h" | 10 #include "src/compiler/node-matchers.h" |
(...skipping 2684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2695 if (pop->IsImmediate()) { | 2695 if (pop->IsImmediate()) { |
2696 DCHECK_EQ(Constant::kInt32, g.ToConstant(pop).type()); | 2696 DCHECK_EQ(Constant::kInt32, g.ToConstant(pop).type()); |
2697 pop_count += g.ToConstant(pop).ToInt32(); | 2697 pop_count += g.ToConstant(pop).ToInt32(); |
2698 } else { | 2698 } else { |
2699 __ Drop(g.ToRegister(pop)); | 2699 __ Drop(g.ToRegister(pop)); |
2700 } | 2700 } |
2701 __ Drop(pop_count); | 2701 __ Drop(pop_count); |
2702 __ Ret(); | 2702 __ Ret(); |
2703 } | 2703 } |
2704 | 2704 |
| 2705 void CodeGenerator::FinishCode() {} |
| 2706 |
2705 void CodeGenerator::AssembleMove(InstructionOperand* source, | 2707 void CodeGenerator::AssembleMove(InstructionOperand* source, |
2706 InstructionOperand* destination) { | 2708 InstructionOperand* destination) { |
2707 S390OperandConverter g(this, nullptr); | 2709 S390OperandConverter g(this, nullptr); |
2708 // Dispatch on the source and destination operand kinds. Not all | 2710 // Dispatch on the source and destination operand kinds. Not all |
2709 // combinations are possible. | 2711 // combinations are possible. |
2710 if (source->IsRegister()) { | 2712 if (source->IsRegister()) { |
2711 DCHECK(destination->IsRegister() || destination->IsStackSlot()); | 2713 DCHECK(destination->IsRegister() || destination->IsStackSlot()); |
2712 Register src = g.ToRegister(source); | 2714 Register src = g.ToRegister(source); |
2713 if (destination->IsRegister()) { | 2715 if (destination->IsRegister()) { |
2714 __ Move(g.ToRegister(destination), src); | 2716 __ Move(g.ToRegister(destination), src); |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2930 padding_size -= 2; | 2932 padding_size -= 2; |
2931 } | 2933 } |
2932 } | 2934 } |
2933 } | 2935 } |
2934 | 2936 |
2935 #undef __ | 2937 #undef __ |
2936 | 2938 |
2937 } // namespace compiler | 2939 } // namespace compiler |
2938 } // namespace internal | 2940 } // namespace internal |
2939 } // namespace v8 | 2941 } // namespace v8 |
OLD | NEW |