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/code-generator.h" | 5 #include "src/compiler/code-generator.h" |
6 #include "src/compilation-info.h" | 6 #include "src/compilation-info.h" |
7 #include "src/compiler/code-generator-impl.h" | 7 #include "src/compiler/code-generator-impl.h" |
8 #include "src/compiler/gap-resolver.h" | 8 #include "src/compiler/gap-resolver.h" |
9 #include "src/compiler/node-matchers.h" | 9 #include "src/compiler/node-matchers.h" |
10 #include "src/compiler/osr.h" | 10 #include "src/compiler/osr.h" |
(...skipping 2454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2465 __ dsll(pop_reg, pop_reg, kPointerSizeLog2); | 2465 __ dsll(pop_reg, pop_reg, kPointerSizeLog2); |
2466 __ Daddu(sp, sp, pop_reg); | 2466 __ Daddu(sp, sp, pop_reg); |
2467 } | 2467 } |
2468 if (pop_count != 0) { | 2468 if (pop_count != 0) { |
2469 __ DropAndRet(pop_count); | 2469 __ DropAndRet(pop_count); |
2470 } else { | 2470 } else { |
2471 __ Ret(); | 2471 __ Ret(); |
2472 } | 2472 } |
2473 } | 2473 } |
2474 | 2474 |
| 2475 void CodeGenerator::FinishCode() {} |
2475 | 2476 |
2476 void CodeGenerator::AssembleMove(InstructionOperand* source, | 2477 void CodeGenerator::AssembleMove(InstructionOperand* source, |
2477 InstructionOperand* destination) { | 2478 InstructionOperand* destination) { |
2478 MipsOperandConverter g(this, nullptr); | 2479 MipsOperandConverter g(this, nullptr); |
2479 // Dispatch on the source and destination operand kinds. Not all | 2480 // Dispatch on the source and destination operand kinds. Not all |
2480 // combinations are possible. | 2481 // combinations are possible. |
2481 if (source->IsRegister()) { | 2482 if (source->IsRegister()) { |
2482 DCHECK(destination->IsRegister() || destination->IsStackSlot()); | 2483 DCHECK(destination->IsRegister() || destination->IsStackSlot()); |
2483 Register src = g.ToRegister(source); | 2484 Register src = g.ToRegister(source); |
2484 if (destination->IsRegister()) { | 2485 if (destination->IsRegister()) { |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2683 padding_size -= v8::internal::Assembler::kInstrSize; | 2684 padding_size -= v8::internal::Assembler::kInstrSize; |
2684 } | 2685 } |
2685 } | 2686 } |
2686 } | 2687 } |
2687 | 2688 |
2688 #undef __ | 2689 #undef __ |
2689 | 2690 |
2690 } // namespace compiler | 2691 } // namespace compiler |
2691 } // namespace internal | 2692 } // namespace internal |
2692 } // namespace v8 | 2693 } // namespace v8 |
OLD | NEW |