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

Side by Side Diff: src/lithium-allocator.h

Issue 142813003: A64: Synchronize with r15358. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « src/lithium.cc ('k') | src/lithium-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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 467
468 private: 468 private:
469 void MeetRegisterConstraints(); 469 void MeetRegisterConstraints();
470 void ResolvePhis(); 470 void ResolvePhis();
471 void BuildLiveRanges(); 471 void BuildLiveRanges();
472 void AllocateGeneralRegisters(); 472 void AllocateGeneralRegisters();
473 void AllocateDoubleRegisters(); 473 void AllocateDoubleRegisters();
474 void ConnectRanges(); 474 void ConnectRanges();
475 void ResolveControlFlow(); 475 void ResolveControlFlow();
476 void PopulatePointerMaps(); 476 void PopulatePointerMaps();
477 void ProcessOsrEntry();
478 void AllocateRegisters(); 477 void AllocateRegisters();
479 bool CanEagerlyResolveControlFlow(HBasicBlock* block) const; 478 bool CanEagerlyResolveControlFlow(HBasicBlock* block) const;
480 inline bool SafePointsAreInOrder() const; 479 inline bool SafePointsAreInOrder() const;
481 480
482 // Liveness analysis support. 481 // Liveness analysis support.
483 void InitializeLivenessAnalysis(); 482 void InitializeLivenessAnalysis();
484 BitVector* ComputeLiveOut(HBasicBlock* block); 483 BitVector* ComputeLiveOut(HBasicBlock* block);
485 void AddInitialIntervals(HBasicBlock* block, BitVector* live_out); 484 void AddInitialIntervals(HBasicBlock* block, BitVector* live_out);
486 void ProcessInstructions(HBasicBlock* block, BitVector* live); 485 void ProcessInstructions(HBasicBlock* block, BitVector* live);
487 void MeetRegisterConstraints(HBasicBlock* block); 486 void MeetRegisterConstraints(HBasicBlock* block);
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 bool allocation_ok_; 638 bool allocation_ok_;
640 639
641 #ifdef DEBUG 640 #ifdef DEBUG
642 LifetimePosition allocation_finger_; 641 LifetimePosition allocation_finger_;
643 #endif 642 #endif
644 643
645 DISALLOW_COPY_AND_ASSIGN(LAllocator); 644 DISALLOW_COPY_AND_ASSIGN(LAllocator);
646 }; 645 };
647 646
648 647
648 class LAllocatorPhase : public CompilationPhase {
649 public:
650 LAllocatorPhase(const char* name, LAllocator* allocator)
651 : CompilationPhase(name, allocator->graph()->info()),
652 allocator_(allocator) { }
653 ~LAllocatorPhase();
654
655 private:
656 LAllocator* allocator_;
657
658 DISALLOW_COPY_AND_ASSIGN(LAllocatorPhase);
659 };
660
661
649 } } // namespace v8::internal 662 } } // namespace v8::internal
650 663
651 #endif // V8_LITHIUM_ALLOCATOR_H_ 664 #endif // V8_LITHIUM_ALLOCATOR_H_
OLDNEW
« no previous file with comments | « src/lithium.cc ('k') | src/lithium-allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698