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:
parent
71d863e5de
commit
5bd44d212a
@ -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));
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -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));
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user