Index: src/ast.cc |
diff --git a/src/ast.cc b/src/ast.cc |
index 66d02e561b30851d3a401803724b5ce56f0d3699..6816992ae8fecebb620e8918cb99a1e478de7dbf 100644 |
--- a/src/ast.cc |
+++ b/src/ast.cc |
@@ -173,10 +173,12 @@ void FunctionLiteral::InitializeSharedInfo( |
ObjectLiteralProperty::ObjectLiteralProperty(Zone* zone, |
AstValueFactory* ast_value_factory, |
- Literal* key, Expression* value) { |
+ Literal* key, Expression* value, |
+ bool is_static) { |
emit_store_ = true; |
key_ = key; |
value_ = value; |
+ is_static_ = is_static; |
if (key->raw_value()->EqualsString(ast_value_factory->proto_string())) { |
kind_ = PROTOTYPE; |
} else if (value_->AsMaterializedLiteral() != NULL) { |
@@ -189,11 +191,13 @@ ObjectLiteralProperty::ObjectLiteralProperty(Zone* zone, |
} |
-ObjectLiteralProperty::ObjectLiteralProperty( |
- Zone* zone, bool is_getter, FunctionLiteral* value) { |
+ObjectLiteralProperty::ObjectLiteralProperty(Zone* zone, bool is_getter, |
+ FunctionLiteral* value, |
+ bool is_static) { |
emit_store_ = true; |
value_ = value; |
kind_ = is_getter ? GETTER : SETTER; |
+ is_static_ = is_static; |
} |
@@ -1090,6 +1094,7 @@ DONT_OPTIMIZE_NODE(ModuleUrl) |
DONT_OPTIMIZE_NODE(ModuleStatement) |
DONT_OPTIMIZE_NODE(WithStatement) |
DONT_OPTIMIZE_NODE(DebuggerStatement) |
+DONT_OPTIMIZE_NODE(ClassLiteral) |
DONT_OPTIMIZE_NODE(NativeFunctionLiteral) |
DONT_OPTIMIZE_NODE(SuperReference) |