Index: src/ast.cc |
diff --git a/src/ast.cc b/src/ast.cc |
index 9425d6a248918cfb30c0a04345569c8f370bc8c4..9810c3450429f99bb3bdfb130fa15acd13303674 100644 |
--- a/src/ast.cc |
+++ b/src/ast.cc |
@@ -168,12 +168,15 @@ LanguageMode FunctionLiteral::language_mode() const { |
} |
-ObjectLiteral::Property::Property(Literal* key, Expression* value) { |
+ObjectLiteral::Property::Property(Literal* key, |
+ Expression* value, |
+ Isolate* isolate) { |
emit_store_ = true; |
key_ = key; |
value_ = value; |
Object* k = *key->handle(); |
- if (k->IsSymbol() && HEAP->Proto_symbol()->Equals(String::cast(k))) { |
+ if (k->IsSymbol() && |
+ isolate->heap()->Proto_symbol()->Equals(String::cast(k))) { |
kind_ = PROTOTYPE; |
} else if (value_->AsMaterializedLiteral() != NULL) { |
kind_ = MATERIALIZED_LITERAL; |