Index: src/ia32/full-codegen-ia32.cc |
diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc |
index db405bc0d6b99773bdd0493e5923172fc5b28a83..d05d3b33ff37418b85e2f70e07c29a448b0623ad 100644 |
--- a/src/ia32/full-codegen-ia32.cc |
+++ b/src/ia32/full-codegen-ia32.cc |
@@ -1673,11 +1673,8 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { |
case ObjectLiteral::Property::PROTOTYPE: |
__ push(Operand(esp, 0)); // Duplicate receiver. |
VisitForStackValue(value); |
- if (property->emit_store()) { |
- __ CallRuntime(Runtime::kInternalSetPrototype, 2); |
- } else { |
- __ Drop(2); |
- } |
+ DCHECK(property->emit_store()); |
+ __ CallRuntime(Runtime::kInternalSetPrototype, 2); |
break; |
case ObjectLiteral::Property::GETTER: |
accessor_table.lookup(key)->second->getter = value; |
@@ -1726,11 +1723,8 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { |
if (property->kind() == ObjectLiteral::Property::PROTOTYPE) { |
DCHECK(!property->is_computed_name()); |
VisitForStackValue(value); |
- if (property->emit_store()) { |
- __ CallRuntime(Runtime::kInternalSetPrototype, 2); |
- } else { |
- __ Drop(2); |
- } |
+ DCHECK(property->emit_store()); |
+ __ CallRuntime(Runtime::kInternalSetPrototype, 2); |
} else { |
EmitPropertyKey(property); |
VisitForStackValue(value); |