Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: src/compiler/ia32/code-generator-ia32.cc

Issue 2748383004: [Compiler] Move static FinishCode function into CodeGenerator. (Closed)
Patch Set: Add MIPS64. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/code-generator-impl.h ('k') | src/compiler/mips/code-generator-mips.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 2440 matching lines...) Expand 10 before | Expand all | Expand 10 after
2451 __ Ret(static_cast<int>(pop_size), ecx); 2451 __ Ret(static_cast<int>(pop_size), ecx);
2452 } else { 2452 } else {
2453 Register pop_reg = g.ToRegister(pop); 2453 Register pop_reg = g.ToRegister(pop);
2454 Register scratch_reg = pop_reg.is(ecx) ? edx : ecx; 2454 Register scratch_reg = pop_reg.is(ecx) ? edx : ecx;
2455 __ pop(scratch_reg); 2455 __ pop(scratch_reg);
2456 __ lea(esp, Operand(esp, pop_reg, times_4, static_cast<int>(pop_size))); 2456 __ lea(esp, Operand(esp, pop_reg, times_4, static_cast<int>(pop_size)));
2457 __ jmp(scratch_reg); 2457 __ jmp(scratch_reg);
2458 } 2458 }
2459 } 2459 }
2460 2460
2461 void CodeGenerator::FinishCode() {}
2461 2462
2462 void CodeGenerator::AssembleMove(InstructionOperand* source, 2463 void CodeGenerator::AssembleMove(InstructionOperand* source,
2463 InstructionOperand* destination) { 2464 InstructionOperand* destination) {
2464 IA32OperandConverter g(this, nullptr); 2465 IA32OperandConverter g(this, nullptr);
2465 // Dispatch on the source and destination operand kinds. Not all 2466 // Dispatch on the source and destination operand kinds. Not all
2466 // combinations are possible. 2467 // combinations are possible.
2467 if (source->IsRegister()) { 2468 if (source->IsRegister()) {
2468 DCHECK(destination->IsRegister() || destination->IsStackSlot()); 2469 DCHECK(destination->IsRegister() || destination->IsStackSlot());
2469 Register src = g.ToRegister(source); 2470 Register src = g.ToRegister(source);
2470 Operand dst = g.ToOperand(destination); 2471 Operand dst = g.ToOperand(destination);
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
2701 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; 2702 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
2702 __ Nop(padding_size); 2703 __ Nop(padding_size);
2703 } 2704 }
2704 } 2705 }
2705 2706
2706 #undef __ 2707 #undef __
2707 2708
2708 } // namespace compiler 2709 } // namespace compiler
2709 } // namespace internal 2710 } // namespace internal
2710 } // namespace v8 2711 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/code-generator-impl.h ('k') | src/compiler/mips/code-generator-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698