Remove unused policy from register allocator.

DefineSameAsAny is never used and currently does exactly the 
same as DefineSameAsFirst.

Review URL: http://codereview.chromium.org/6025014

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6163 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
fschneider@chromium.org 2011-01-04 14:35:01 +00:00
parent 71d863e5de
commit 5bd44d212a
6 changed files with 1 additions and 17 deletions

View File

@ -767,11 +767,6 @@ LInstruction* LChunkBuilder::DefineAsSpilled(LInstruction* instr, int index) {
}
LInstruction* LChunkBuilder::DefineSameAsAny(LInstruction* instr) {
return Define(instr, new LUnallocated(LUnallocated::SAME_AS_ANY_INPUT));
}
LInstruction* LChunkBuilder::DefineSameAsFirst(LInstruction* instr) {
return Define(instr, new LUnallocated(LUnallocated::SAME_AS_FIRST_INPUT));
}

View File

@ -2061,7 +2061,6 @@ class LChunkBuilder BASE_EMBEDDED {
LInstruction* Define(LInstruction* instr);
LInstruction* DefineAsRegister(LInstruction* instr);
LInstruction* DefineAsSpilled(LInstruction* instr, int index);
LInstruction* DefineSameAsAny(LInstruction* instr);
LInstruction* DefineSameAsFirst(LInstruction* instr);
LInstruction* DefineFixed(LInstruction* instr, Register reg);
LInstruction* DefineFixedDouble(LInstruction* instr, DoubleRegister reg);

View File

@ -767,11 +767,6 @@ LInstruction* LChunkBuilder::DefineAsSpilled(LInstruction* instr, int index) {
}
LInstruction* LChunkBuilder::DefineSameAsAny(LInstruction* instr) {
return Define(instr, new LUnallocated(LUnallocated::SAME_AS_ANY_INPUT));
}
LInstruction* LChunkBuilder::DefineSameAsFirst(LInstruction* instr) {
return Define(instr, new LUnallocated(LUnallocated::SAME_AS_FIRST_INPUT));
}

View File

@ -2087,7 +2087,6 @@ class LChunkBuilder BASE_EMBEDDED {
LInstruction* Define(LInstruction* instr);
LInstruction* DefineAsRegister(LInstruction* instr);
LInstruction* DefineAsSpilled(LInstruction* instr, int index);
LInstruction* DefineSameAsAny(LInstruction* instr);
LInstruction* DefineSameAsFirst(LInstruction* instr);
LInstruction* DefineFixed(LInstruction* instr, Register reg);
LInstruction* DefineFixedDouble(LInstruction* instr, XMMRegister reg);

View File

@ -106,9 +106,6 @@ void LOperand::PrintTo(StringStream* stream) {
case LUnallocated::SAME_AS_FIRST_INPUT:
stream->Add("(1)");
break;
case LUnallocated::SAME_AS_ANY_INPUT:
stream->Add("(A)");
break;
case LUnallocated::ANY:
stream->Add("(-)");
break;

View File

@ -205,7 +205,6 @@ class LUnallocated: public LOperand {
MUST_HAVE_REGISTER,
WRITABLE_REGISTER,
SAME_AS_FIRST_INPUT,
SAME_AS_ANY_INPUT,
IGNORE
};
@ -276,7 +275,7 @@ class LUnallocated: public LOperand {
return policy() == WRITABLE_REGISTER || policy() == MUST_HAVE_REGISTER;
}
bool HasSameAsInputPolicy() const {
return policy() == SAME_AS_FIRST_INPUT || policy() == SAME_AS_ANY_INPUT;
return policy() == SAME_AS_FIRST_INPUT;
}
Policy policy() const { return PolicyField::decode(value_); }
void set_policy(Policy policy) {