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

Side by Side Diff: src/compiler/move-optimizer.cc

Issue 1143133002: Regularize namespace closing curlies (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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/linkage.cc ('k') | src/compiler/register-configuration.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/move-optimizer.h" 5 #include "src/compiler/move-optimizer.h"
6 6
7 namespace v8 { 7 namespace v8 {
8 namespace internal { 8 namespace internal {
9 namespace compiler { 9 namespace compiler {
10 10
(...skipping 24 matching lines...) Expand all
35 if (moves == nullptr) continue; 35 if (moves == nullptr) continue;
36 for (auto move : *moves) { 36 for (auto move : *moves) {
37 if (!move->IsRedundant()) return i; 37 if (!move->IsRedundant()) return i;
38 move->Eliminate(); 38 move->Eliminate();
39 } 39 }
40 moves->clear(); // Clear this redundant move. 40 moves->clear(); // Clear this redundant move.
41 } 41 }
42 return i; 42 return i;
43 } 43 }
44 44
45 } // namepace 45 } // namespace
46 46
47 47
48 MoveOptimizer::MoveOptimizer(Zone* local_zone, InstructionSequence* code) 48 MoveOptimizer::MoveOptimizer(Zone* local_zone, InstructionSequence* code)
49 : local_zone_(local_zone), 49 : local_zone_(local_zone),
50 code_(code), 50 code_(code),
51 to_finalize_(local_zone), 51 to_finalize_(local_zone),
52 temp_vector_0_(local_zone), 52 temp_vector_0_(local_zone),
53 temp_vector_1_(local_zone) {} 53 temp_vector_1_(local_zone) {}
54 54
55 55
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 static_cast<Instruction::GapPosition>(1), code_zone()); 276 static_cast<Instruction::GapPosition>(1), code_zone());
277 slot_1->AddMove(group_begin->destination(), load->destination()); 277 slot_1->AddMove(group_begin->destination(), load->destination());
278 load->Eliminate(); 278 load->Eliminate();
279 } 279 }
280 loads.clear(); 280 loads.clear();
281 } 281 }
282 282
283 } // namespace compiler 283 } // namespace compiler
284 } // namespace internal 284 } // namespace internal
285 } // namespace v8 285 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/linkage.cc ('k') | src/compiler/register-configuration.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698