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

Side by Side Diff: src/compiler/register-allocator.h

Issue 727693002: [turbofan] small cleanups to aid register allocator debugging (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years, 1 month 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
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 #ifndef V8_REGISTER_ALLOCATOR_H_ 5 #ifndef V8_REGISTER_ALLOCATOR_H_
6 #define V8_REGISTER_ALLOCATOR_H_ 6 #define V8_REGISTER_ALLOCATOR_H_
7 7
8 #include "src/compiler/instruction.h" 8 #include "src/compiler/instruction.h"
9 #include "src/zone-containers.h" 9 #include "src/zone-containers.h"
10 10
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 bool CanEagerlyResolveControlFlow(const InstructionBlock* block) const; 381 bool CanEagerlyResolveControlFlow(const InstructionBlock* block) const;
382 bool SafePointsAreInOrder() const; 382 bool SafePointsAreInOrder() const;
383 383
384 // Liveness analysis support. 384 // Liveness analysis support.
385 void InitializeLivenessAnalysis(); 385 void InitializeLivenessAnalysis();
386 BitVector* ComputeLiveOut(const InstructionBlock* block); 386 BitVector* ComputeLiveOut(const InstructionBlock* block);
387 void AddInitialIntervals(const InstructionBlock* block, BitVector* live_out); 387 void AddInitialIntervals(const InstructionBlock* block, BitVector* live_out);
388 bool IsOutputRegisterOf(Instruction* instr, int index); 388 bool IsOutputRegisterOf(Instruction* instr, int index);
389 bool IsOutputDoubleRegisterOf(Instruction* instr, int index); 389 bool IsOutputDoubleRegisterOf(Instruction* instr, int index);
390 void ProcessInstructions(const InstructionBlock* block, BitVector* live); 390 void ProcessInstructions(const InstructionBlock* block, BitVector* live);
391 bool ExistsUseWithoutDefinition();
391 void MeetRegisterConstraints(const InstructionBlock* block); 392 void MeetRegisterConstraints(const InstructionBlock* block);
392 void MeetConstraintsBetween(Instruction* first, Instruction* second, 393 void MeetConstraintsBetween(Instruction* first, Instruction* second,
393 int gap_index); 394 int gap_index);
394 void MeetRegisterConstraintsForLastInstructionInBlock( 395 void MeetRegisterConstraintsForLastInstructionInBlock(
395 const InstructionBlock* block); 396 const InstructionBlock* block);
396 void ResolvePhis(const InstructionBlock* block); 397 void ResolvePhis(const InstructionBlock* block);
397 398
398 // Helper methods for building intervals. 399 // Helper methods for building intervals.
399 InstructionOperand* AllocateFixed(UnallocatedOperand* operand, int pos, 400 InstructionOperand* AllocateFixed(UnallocatedOperand* operand, int pos,
400 bool is_tagged); 401 bool is_tagged);
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 #endif 535 #endif
535 536
536 DISALLOW_COPY_AND_ASSIGN(RegisterAllocator); 537 DISALLOW_COPY_AND_ASSIGN(RegisterAllocator);
537 }; 538 };
538 539
539 } 540 }
540 } 541 }
541 } // namespace v8::internal::compiler 542 } // namespace v8::internal::compiler
542 543
543 #endif // V8_REGISTER_ALLOCATOR_H_ 544 #endif // V8_REGISTER_ALLOCATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698