Index: src/ia32/lithium-codegen-ia32.cc |
diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc |
index 4d23aef15aac1da54fae04d62c2c36815ed11de5..5a69ed0e2439bfea1d4e230865e3e0548bfe439c 100644 |
--- a/src/ia32/lithium-codegen-ia32.cc |
+++ b/src/ia32/lithium-codegen-ia32.cc |
@@ -5415,7 +5415,6 @@ void LCodeGen::DoClampTToUint8(LClampTToUint8* instr) { |
void LCodeGen::DoCheckPrototypeMaps(LCheckPrototypeMaps* instr) { |
- ASSERT(instr->temp()->Equals(instr->result())); |
Register reg = ToRegister(instr->temp()); |
ZoneList<Handle<JSObject> >* prototypes = instr->prototypes(); |
@@ -5423,15 +5422,10 @@ void LCodeGen::DoCheckPrototypeMaps(LCheckPrototypeMaps* instr) { |
ASSERT(prototypes->length() == maps->length()); |
- // TODO(ulan): Move this check to hydrogen and split HCheckPrototypeMaps |
- // into two instruction: one that checks the prototypes and another that |
- // loads the holder (HConstant). Find a way to do it without breaking |
- // parallel recompilation. |
if (instr->hydrogen()->CanOmitPrototypeChecks()) { |
for (int i = 0; i < maps->length(); i++) { |
prototype_maps_.Add(maps->at(i), info()->zone()); |
} |
- __ LoadHeapObject(reg, prototypes->at(prototypes->length() - 1)); |
} else { |
for (int i = 0; i < prototypes->length(); i++) { |
__ LoadHeapObject(reg, prototypes->at(i)); |