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

Side by Side Diff: src/compiler/x64/code-generator-x64.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/s390/code-generator-s390.cc ('k') | src/compiler/x87/code-generator-x87.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 <limits> 7 #include <limits>
8 8
9 #include "src/compilation-info.h" 9 #include "src/compilation-info.h"
10 #include "src/compiler/code-generator-impl.h" 10 #include "src/compiler/code-generator-impl.h"
(...skipping 2657 matching lines...) Expand 10 before | Expand all | Expand 10 after
2668 __ Ret(static_cast<int>(pop_size), rcx); 2668 __ Ret(static_cast<int>(pop_size), rcx);
2669 } else { 2669 } else {
2670 Register pop_reg = g.ToRegister(pop); 2670 Register pop_reg = g.ToRegister(pop);
2671 Register scratch_reg = pop_reg.is(rcx) ? rdx : rcx; 2671 Register scratch_reg = pop_reg.is(rcx) ? rdx : rcx;
2672 __ popq(scratch_reg); 2672 __ popq(scratch_reg);
2673 __ leaq(rsp, Operand(rsp, pop_reg, times_8, static_cast<int>(pop_size))); 2673 __ leaq(rsp, Operand(rsp, pop_reg, times_8, static_cast<int>(pop_size)));
2674 __ jmp(scratch_reg); 2674 __ jmp(scratch_reg);
2675 } 2675 }
2676 } 2676 }
2677 2677
2678 void CodeGenerator::FinishCode() {}
2678 2679
2679 void CodeGenerator::AssembleMove(InstructionOperand* source, 2680 void CodeGenerator::AssembleMove(InstructionOperand* source,
2680 InstructionOperand* destination) { 2681 InstructionOperand* destination) {
2681 X64OperandConverter g(this, nullptr); 2682 X64OperandConverter g(this, nullptr);
2682 // Dispatch on the source and destination operand kinds. Not all 2683 // Dispatch on the source and destination operand kinds. Not all
2683 // combinations are possible. 2684 // combinations are possible.
2684 if (source->IsRegister()) { 2685 if (source->IsRegister()) {
2685 DCHECK(destination->IsRegister() || destination->IsStackSlot()); 2686 DCHECK(destination->IsRegister() || destination->IsStackSlot());
2686 Register src = g.ToRegister(source); 2687 Register src = g.ToRegister(source);
2687 if (destination->IsRegister()) { 2688 if (destination->IsRegister()) {
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
2931 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; 2932 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
2932 __ Nop(padding_size); 2933 __ Nop(padding_size);
2933 } 2934 }
2934 } 2935 }
2935 2936
2936 #undef __ 2937 #undef __
2937 2938
2938 } // namespace compiler 2939 } // namespace compiler
2939 } // namespace internal 2940 } // namespace internal
2940 } // namespace v8 2941 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/s390/code-generator-s390.cc ('k') | src/compiler/x87/code-generator-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698