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

Side by Side Diff: src/compiler/mips/code-generator-mips.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/ia32/code-generator-ia32.cc ('k') | src/compiler/mips64/code-generator-mips64.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 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
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
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
OLDNEW
« no previous file with comments | « src/compiler/ia32/code-generator-ia32.cc ('k') | src/compiler/mips64/code-generator-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698