Index: src/ppc/full-codegen-ppc.cc |
diff --git a/src/ppc/full-codegen-ppc.cc b/src/ppc/full-codegen-ppc.cc |
index 1a02f6958d9068a5a601b587261d4ef5154c006e..1cd30f97ff4378a571796750760c58a71f7dace3 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; |
@@ -2528,8 +2525,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; |