Index: src/full-codegen/ia32/full-codegen-ia32.cc |
diff --git a/src/full-codegen/ia32/full-codegen-ia32.cc b/src/full-codegen/ia32/full-codegen-ia32.cc |
index c9c8e0058aa25cdd245f8f0317d6f0fe4fd496a9..569aa8d4d471950fa27a39cde8ce892e840bd2b4 100644 |
--- a/src/full-codegen/ia32/full-codegen-ia32.cc |
+++ b/src/full-codegen/ia32/full-codegen-ia32.cc |
@@ -1355,7 +1355,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(eax)); |