From 1cf6f3a26c6a7fa8e757787516a162f2d27ec405 Mon Sep 17 00:00:00 2001 From: "vegorov@chromium.org" Date: Mon, 3 Jan 2011 19:16:29 +0000 Subject: [PATCH] Move first_artificial_register_ initialization to the right place. Review URL: http://codereview.chromium.org/6009010 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6139 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/lithium-allocator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lithium-allocator.cc b/src/lithium-allocator.cc index bc5d6cc5f2..fb24cc1bf9 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* blocks = graph()->blocks(); for (int i = 0; i < blocks->length(); ++i) { HBasicBlock* block = blocks->at(i);