| Index: src/lithium-allocator-inl.h
|
| diff --git a/src/lithium-allocator-inl.h b/src/lithium-allocator-inl.h
|
| index 4fb5b116f325bc008270aebe5b2e4f3bb9981e73..a03a60d3ed81c9ab6d80d2d1d7c0b25ffb896cc9 100644
|
| --- a/src/lithium-allocator-inl.h
|
| +++ b/src/lithium-allocator-inl.h
|
| @@ -41,93 +41,6 @@ LGap* LAllocator::GapAt(int index) {
|
| }
|
|
|
|
|
| -TempIterator::TempIterator(LInstruction* instr)
|
| - : instr_(instr),
|
| - limit_(instr->TempCount()),
|
| - current_(0) {
|
| - SkipUninteresting();
|
| -}
|
| -
|
| -
|
| -bool TempIterator::Done() { return current_ >= limit_; }
|
| -
|
| -
|
| -LOperand* TempIterator::Current() {
|
| - ASSERT(!Done());
|
| - return instr_->TempAt(current_);
|
| -}
|
| -
|
| -
|
| -void TempIterator::SkipUninteresting() {
|
| - while (current_ < limit_ && instr_->TempAt(current_) == NULL) ++current_;
|
| -}
|
| -
|
| -
|
| -void TempIterator::Advance() {
|
| - ++current_;
|
| - SkipUninteresting();
|
| -}
|
| -
|
| -
|
| -InputIterator::InputIterator(LInstruction* instr)
|
| - : instr_(instr),
|
| - limit_(instr->InputCount()),
|
| - current_(0) {
|
| - SkipUninteresting();
|
| -}
|
| -
|
| -
|
| -bool InputIterator::Done() { return current_ >= limit_; }
|
| -
|
| -
|
| -LOperand* InputIterator::Current() {
|
| - ASSERT(!Done());
|
| - ASSERT(instr_->InputAt(current_) != NULL);
|
| - return instr_->InputAt(current_);
|
| -}
|
| -
|
| -
|
| -void InputIterator::Advance() {
|
| - ++current_;
|
| - SkipUninteresting();
|
| -}
|
| -
|
| -
|
| -void InputIterator::SkipUninteresting() {
|
| - while (current_ < limit_) {
|
| - LOperand* current = instr_->InputAt(current_);
|
| - if (current != NULL && !current->IsConstantOperand()) break;
|
| - ++current_;
|
| - }
|
| -}
|
| -
|
| -
|
| -UseIterator::UseIterator(LInstruction* instr)
|
| - : input_iterator_(instr), env_iterator_(instr->environment()) { }
|
| -
|
| -
|
| -bool UseIterator::Done() {
|
| - return input_iterator_.Done() && env_iterator_.Done();
|
| -}
|
| -
|
| -
|
| -LOperand* UseIterator::Current() {
|
| - ASSERT(!Done());
|
| - LOperand* result = input_iterator_.Done()
|
| - ? env_iterator_.Current()
|
| - : input_iterator_.Current();
|
| - ASSERT(result != NULL);
|
| - return result;
|
| -}
|
| -
|
| -
|
| -void UseIterator::Advance() {
|
| - input_iterator_.Done()
|
| - ? env_iterator_.Advance()
|
| - : input_iterator_.Advance();
|
| -}
|
| -
|
| -
|
| void LAllocator::SetLiveRangeAssignedRegister(LiveRange* range, int reg) {
|
| if (range->Kind() == DOUBLE_REGISTERS) {
|
| assigned_double_registers_->Add(reg);
|
|
|