Index: src/ppc/full-codegen-ppc.cc |
diff --git a/src/ppc/full-codegen-ppc.cc b/src/ppc/full-codegen-ppc.cc |
index faf011faac8dd4a046c1d5fa52af72f437637a06..de4e40f086b835b0670a54ff193f163931843498 100644 |
--- a/src/ppc/full-codegen-ppc.cc |
+++ b/src/ppc/full-codegen-ppc.cc |
@@ -1713,11 +1713,8 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { |
__ LoadP(r3, MemOperand(sp)); |
__ push(r3); |
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; |
@@ -2529,8 +2526,9 @@ void FullCodeGenerator::EmitClassDefineProperties(ClassLiteral* lit) { |
switch (property->kind()) { |
case ObjectLiteral::Property::CONSTANT: |
case ObjectLiteral::Property::MATERIALIZED_LITERAL: |
- case ObjectLiteral::Property::COMPUTED: |
case ObjectLiteral::Property::PROTOTYPE: |
+ UNREACHABLE(); |
+ case ObjectLiteral::Property::COMPUTED: |
__ CallRuntime(Runtime::kDefineClassMethod, 3); |
break; |