OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |