Reviewers: Vitaly,

Description:
Move first_artificial_register_ initialization to the right place.

Please review this at http://codereview.chromium.org/6009010/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M src/lithium-allocator.cc


Index: src/lithium-allocator.cc
diff --git a/src/lithium-allocator.cc b/src/lithium-allocator.cc
index bc5d6cc5f25af5892d5f0e43e555d8331ff994b5..fb24cc1bf94dcf3b1ea5e1817fdc20a82612cbe5 100644
--- a/src/lithium-allocator.cc
+++ b/src/lithium-allocator.cc
@@ -762,7 +762,6 @@ void LAllocator::AddConstraintsGapMove(int index,


 void LAllocator::MeetRegisterConstraints(HBasicBlock* block) {
-  first_artificial_register_ = next_virtual_register_;
   int start = block->first_instruction_index();
   int end = block->last_instruction_index();
   for (int i = start; i <= end; ++i) {
@@ -1043,6 +1042,7 @@ void LAllocator::Allocate(LChunk* chunk) {

 void LAllocator::MeetRegisterConstraints() {
   HPhase phase("Register constraints", chunk());
+  first_artificial_register_ = next_virtual_register_;
   const ZoneList<HBasicBlock*>* blocks = graph()->blocks();
   for (int i = 0; i < blocks->length(); ++i) {
     HBasicBlock* block = blocks->at(i);


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to