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

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

Issue 910753002: [turbofan] remove one level of indirection in phi inputs (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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/instruction-selector.cc ('k') | src/compiler/register-allocator.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 #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 590 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 return inactive_live_ranges_; 601 return inactive_live_ranges_;
602 } 602 }
603 ZoneVector<SpillRange*>& spill_ranges() { return spill_ranges_; } 603 ZoneVector<SpillRange*>& spill_ranges() { return spill_ranges_; }
604 604
605 struct PhiMapValue { 605 struct PhiMapValue {
606 PhiMapValue(PhiInstruction* phi, const InstructionBlock* block) 606 PhiMapValue(PhiInstruction* phi, const InstructionBlock* block)
607 : phi(phi), block(block) {} 607 : phi(phi), block(block) {}
608 PhiInstruction* const phi; 608 PhiInstruction* const phi;
609 const InstructionBlock* const block; 609 const InstructionBlock* const block;
610 }; 610 };
611 typedef std::map<int, PhiMapValue, std::less<int>, 611 typedef ZoneMap<int, PhiMapValue> PhiMap;
612 zone_allocator<std::pair<int, PhiMapValue>>> PhiMap;
613 612
614 Zone* const local_zone_; 613 Zone* const local_zone_;
615 Frame* const frame_; 614 Frame* const frame_;
616 InstructionSequence* const code_; 615 InstructionSequence* const code_;
617 const char* const debug_name_; 616 const char* const debug_name_;
618 617
619 const RegisterConfiguration* config_; 618 const RegisterConfiguration* config_;
620 InstructionOperandCache* const operand_cache_; 619 InstructionOperandCache* const operand_cache_;
621 PhiMap phi_map_; 620 PhiMap phi_map_;
622 621
(...skipping 23 matching lines...) Expand all
646 #endif 645 #endif
647 646
648 DISALLOW_COPY_AND_ASSIGN(RegisterAllocator); 647 DISALLOW_COPY_AND_ASSIGN(RegisterAllocator);
649 }; 648 };
650 649
651 } // namespace compiler 650 } // namespace compiler
652 } // namespace internal 651 } // namespace internal
653 } // namespace v8 652 } // namespace v8
654 653
655 #endif // V8_REGISTER_ALLOCATOR_H_ 654 #endif // V8_REGISTER_ALLOCATOR_H_
OLDNEW
« no previous file with comments | « src/compiler/instruction-selector.cc ('k') | src/compiler/register-allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698