Index: src/x64/fast-codegen-x64.cc |
=================================================================== |
--- src/x64/fast-codegen-x64.cc (revision 3152) |
+++ src/x64/fast-codegen-x64.cc (working copy) |
@@ -278,13 +278,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(rax); // Save result on the stack |
result_saved = true; |