Index: src/arm/full-codegen-arm.cc |
diff --git a/src/arm/full-codegen-arm.cc b/src/arm/full-codegen-arm.cc |
index d18390d97a2889962c6d51cfb672dcf7efb78cae..d6598d8d2afc37703a9fbcc8bea5efbb3ac8c590 100644 |
--- a/src/arm/full-codegen-arm.cc |
+++ b/src/arm/full-codegen-arm.cc |
@@ -1747,11 +1747,8 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { |
__ ldr(r0, MemOperand(sp)); |
__ push(r0); |
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: |
@@ -1804,11 +1801,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); |
@@ -2557,8 +2551,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; |