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 | 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 2326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2337 if (pop->IsImmediate()) { | 2337 if (pop->IsImmediate()) { |
2338 DCHECK_EQ(Constant::kInt32, g.ToConstant(pop).type()); | 2338 DCHECK_EQ(Constant::kInt32, g.ToConstant(pop).type()); |
2339 pop_count += g.ToConstant(pop).ToInt32(); | 2339 pop_count += g.ToConstant(pop).ToInt32(); |
2340 } else { | 2340 } else { |
2341 __ Drop(g.ToRegister(pop)); | 2341 __ Drop(g.ToRegister(pop)); |
2342 } | 2342 } |
2343 __ Drop(pop_count); | 2343 __ Drop(pop_count); |
2344 __ Ret(); | 2344 __ Ret(); |
2345 } | 2345 } |
2346 | 2346 |
| 2347 void CodeGenerator::FinishCode() {} |
2347 | 2348 |
2348 void CodeGenerator::AssembleMove(InstructionOperand* source, | 2349 void CodeGenerator::AssembleMove(InstructionOperand* source, |
2349 InstructionOperand* destination) { | 2350 InstructionOperand* destination) { |
2350 PPCOperandConverter g(this, nullptr); | 2351 PPCOperandConverter g(this, nullptr); |
2351 // Dispatch on the source and destination operand kinds. Not all | 2352 // Dispatch on the source and destination operand kinds. Not all |
2352 // combinations are possible. | 2353 // combinations are possible. |
2353 if (source->IsRegister()) { | 2354 if (source->IsRegister()) { |
2354 DCHECK(destination->IsRegister() || destination->IsStackSlot()); | 2355 DCHECK(destination->IsRegister() || destination->IsStackSlot()); |
2355 Register src = g.ToRegister(source); | 2356 Register src = g.ToRegister(source); |
2356 if (destination->IsRegister()) { | 2357 if (destination->IsRegister()) { |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2588 padding_size -= v8::internal::Assembler::kInstrSize; | 2589 padding_size -= v8::internal::Assembler::kInstrSize; |
2589 } | 2590 } |
2590 } | 2591 } |
2591 } | 2592 } |
2592 | 2593 |
2593 #undef __ | 2594 #undef __ |
2594 | 2595 |
2595 } // namespace compiler | 2596 } // namespace compiler |
2596 } // namespace internal | 2597 } // namespace internal |
2597 } // namespace v8 | 2598 } // namespace v8 |
OLD | NEW |