Index: src/arm64/full-codegen-arm64.cc |
diff --git a/src/arm64/full-codegen-arm64.cc b/src/arm64/full-codegen-arm64.cc |
index c871d03b3aa73e01482c6ec293b58558b04ad7a9..0d8ce0e4938192fd51d425ef0904ea30c164ac45 100644 |
--- a/src/arm64/full-codegen-arm64.cc |
+++ b/src/arm64/full-codegen-arm64.cc |
@@ -1725,15 +1725,12 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { |
} |
break; |
case ObjectLiteral::Property::PROTOTYPE: |
- if (property->emit_store()) { |
- // Duplicate receiver on stack. |
- __ Peek(x0, 0); |
- __ Push(x0); |
- VisitForStackValue(value); |
- __ CallRuntime(Runtime::kInternalSetPrototype, 2); |
- } else { |
- VisitForEffect(value); |
- } |
+ DCHECK(property->emit_store()); |
+ // Duplicate receiver on stack. |
+ __ Peek(x0, 0); |
+ __ Push(x0); |
+ VisitForStackValue(value); |
+ __ CallRuntime(Runtime::kInternalSetPrototype, 2); |
break; |
case ObjectLiteral::Property::GETTER: |
accessor_table.lookup(key)->second->getter = value; |
@@ -1785,11 +1782,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); |
@@ -2254,8 +2248,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; |