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
This commit is contained in:
parent
11d1188e83
commit
1cf6f3a26c
@ -762,7 +762,6 @@ void LAllocator::AddConstraintsGapMove(int index,
|
|||||||
|
|
||||||
|
|
||||||
void LAllocator::MeetRegisterConstraints(HBasicBlock* block) {
|
void LAllocator::MeetRegisterConstraints(HBasicBlock* block) {
|
||||||
first_artificial_register_ = next_virtual_register_;
|
|
||||||
int start = block->first_instruction_index();
|
int start = block->first_instruction_index();
|
||||||
int end = block->last_instruction_index();
|
int end = block->last_instruction_index();
|
||||||
for (int i = start; i <= end; ++i) {
|
for (int i = start; i <= end; ++i) {
|
||||||
@ -1043,6 +1042,7 @@ void LAllocator::Allocate(LChunk* chunk) {
|
|||||||
|
|
||||||
void LAllocator::MeetRegisterConstraints() {
|
void LAllocator::MeetRegisterConstraints() {
|
||||||
HPhase phase("Register constraints", chunk());
|
HPhase phase("Register constraints", chunk());
|
||||||
|
first_artificial_register_ = next_virtual_register_;
|
||||||
const ZoneList<HBasicBlock*>* blocks = graph()->blocks();
|
const ZoneList<HBasicBlock*>* blocks = graph()->blocks();
|
||||||
for (int i = 0; i < blocks->length(); ++i) {
|
for (int i = 0; i < blocks->length(); ++i) {
|
||||||
HBasicBlock* block = blocks->at(i);
|
HBasicBlock* block = blocks->at(i);
|
||||||
|
Loading…
Reference in New Issue
Block a user