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

Side by Side Diff: src/compiler/code-generator.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.h ('k') | src/compiler/code-generator-impl.h » ('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/address-map.h" 7 #include "src/address-map.h"
8 #include "src/assembler-inl.h" 8 #include "src/assembler-inl.h"
9 #include "src/base/adapters.h" 9 #include "src/base/adapters.h"
10 #include "src/compilation-info.h" 10 #include "src/compilation-info.h"
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 } 202 }
203 203
204 // Ensure there is space for lazy deoptimization in the code. 204 // Ensure there is space for lazy deoptimization in the code.
205 if (info->ShouldEnsureSpaceForLazyDeopt()) { 205 if (info->ShouldEnsureSpaceForLazyDeopt()) {
206 int target_offset = masm()->pc_offset() + Deoptimizer::patch_size(); 206 int target_offset = masm()->pc_offset() + Deoptimizer::patch_size();
207 while (masm()->pc_offset() < target_offset) { 207 while (masm()->pc_offset() < target_offset) {
208 masm()->nop(); 208 masm()->nop();
209 } 209 }
210 } 210 }
211 211
212 FinishCode(masm()); 212 FinishCode();
213 213
214 // Emit the jump tables. 214 // Emit the jump tables.
215 if (jump_tables_) { 215 if (jump_tables_) {
216 masm()->Align(kPointerSize); 216 masm()->Align(kPointerSize);
217 for (JumpTable* table = jump_tables_; table; table = table->next()) { 217 for (JumpTable* table = jump_tables_; table; table = table->next()) {
218 masm()->bind(table->label()); 218 masm()->bind(table->label());
219 AssembleJumpTable(table->targets(), table->target_count()); 219 AssembleJumpTable(table->targets(), table->target_count());
220 } 220 }
221 } 221 }
222 222
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after
998 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) { 998 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) {
999 gen->ools_ = this; 999 gen->ools_ = this;
1000 } 1000 }
1001 1001
1002 1002
1003 OutOfLineCode::~OutOfLineCode() {} 1003 OutOfLineCode::~OutOfLineCode() {}
1004 1004
1005 } // namespace compiler 1005 } // namespace compiler
1006 } // namespace internal 1006 } // namespace internal
1007 } // namespace v8 1007 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/code-generator.h ('k') | src/compiler/code-generator-impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698