Index: src/arm/fast-codegen-arm.cc |
=================================================================== |
--- src/arm/fast-codegen-arm.cc (revision 3152) |
+++ src/arm/fast-codegen-arm.cc (working copy) |
@@ -272,13 +272,10 @@ |
for (int i = 0; i < expr->properties()->length(); i++) { |
ObjectLiteral::Property* property = expr->properties()->at(i); |
+ if (property->IsCompileTimeValue()) continue; |
+ |
Literal* key = property->key(); |
Expression* value = property->value(); |
- if (property->kind() == ObjectLiteral::Property::CONSTANT) continue; |
- if (property->kind() == ObjectLiteral::Property::MATERIALIZED_LITERAL && |
- CompileTimeValue::IsCompileTimeValue(value)) { |
- continue; |
- } |
if (!result_saved) { |
__ push(r0); // Save result on stack |
result_saved = true; |