Index: src/full-codegen/arm64/full-codegen-arm64.cc |
diff --git a/src/full-codegen/arm64/full-codegen-arm64.cc b/src/full-codegen/arm64/full-codegen-arm64.cc |
index 753e1e535f35d502b236d6d3c79f1efad2e0ea2e..7f77cdee32ed7e810853c573b00021261ab2782a 100644 |
--- a/src/full-codegen/arm64/full-codegen-arm64.cc |
+++ b/src/full-codegen/arm64/full-codegen-arm64.cc |
@@ -1412,7 +1412,8 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { |
case ObjectLiteral::Property::COMPUTED: |
// It is safe to use [[Put]] here because the boilerplate already |
// contains computed properties with an uninitialized value. |
- if (key->IsPropertyName()) { |
+ if (key->IsStringLiteral()) { |
+ DCHECK(key->IsPropertyName()); |
if (property->emit_store()) { |
VisitForAccumulatorValue(value); |
DCHECK(StoreDescriptor::ValueRegister().is(x0)); |