| 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 2112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2123 __ sll(pop_reg, pop_reg, kPointerSizeLog2); | 2123 __ sll(pop_reg, pop_reg, kPointerSizeLog2); |
| 2124 __ Addu(sp, sp, Operand(pop_reg)); | 2124 __ Addu(sp, sp, Operand(pop_reg)); |
| 2125 } | 2125 } |
| 2126 if (pop_count != 0) { | 2126 if (pop_count != 0) { |
| 2127 __ DropAndRet(pop_count); | 2127 __ DropAndRet(pop_count); |
| 2128 } else { | 2128 } else { |
| 2129 __ Ret(); | 2129 __ Ret(); |
| 2130 } | 2130 } |
| 2131 } | 2131 } |
| 2132 | 2132 |
| 2133 void CodeGenerator::FinishCode() {} |
| 2133 | 2134 |
| 2134 void CodeGenerator::AssembleMove(InstructionOperand* source, | 2135 void CodeGenerator::AssembleMove(InstructionOperand* source, |
| 2135 InstructionOperand* destination) { | 2136 InstructionOperand* destination) { |
| 2136 MipsOperandConverter g(this, nullptr); | 2137 MipsOperandConverter g(this, nullptr); |
| 2137 // Dispatch on the source and destination operand kinds. Not all | 2138 // Dispatch on the source and destination operand kinds. Not all |
| 2138 // combinations are possible. | 2139 // combinations are possible. |
| 2139 if (source->IsRegister()) { | 2140 if (source->IsRegister()) { |
| 2140 DCHECK(destination->IsRegister() || destination->IsStackSlot()); | 2141 DCHECK(destination->IsRegister() || destination->IsStackSlot()); |
| 2141 Register src = g.ToRegister(source); | 2142 Register src = g.ToRegister(source); |
| 2142 if (destination->IsRegister()) { | 2143 if (destination->IsRegister()) { |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2383 padding_size -= v8::internal::Assembler::kInstrSize; | 2384 padding_size -= v8::internal::Assembler::kInstrSize; |
| 2384 } | 2385 } |
| 2385 } | 2386 } |
| 2386 } | 2387 } |
| 2387 | 2388 |
| 2388 #undef __ | 2389 #undef __ |
| 2389 | 2390 |
| 2390 } // namespace compiler | 2391 } // namespace compiler |
| 2391 } // namespace internal | 2392 } // namespace internal |
| 2392 } // namespace v8 | 2393 } // namespace v8 |
| OLD | NEW |