Revision: 6139
Author: vego...@chromium.org
Date: Mon Jan  3 11:16:29 2011
Log: Move first_artificial_register_ initialization to the right place.

Review URL: http://codereview.chromium.org/6009010
http://code.google.com/p/v8/source/detail?r=6139

Modified:
 /branches/bleeding_edge/src/lithium-allocator.cc

=======================================
--- /branches/bleeding_edge/src/lithium-allocator.cc Mon Jan 3 09:02:15 2011 +++ /branches/bleeding_edge/src/lithium-allocator.cc Mon Jan 3 11:16:29 2011
@@ -762,7 +762,6 @@


 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::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
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev

Reply via email to