Index: src/ast/ast-value-factory.h |
diff --git a/src/ast/ast-value-factory.h b/src/ast/ast-value-factory.h |
index e3d2cc63775c039a63877889237a40e932e9c797..211b86646740eeb948904bfc91108af7f39b0321 100644 |
--- a/src/ast/ast-value-factory.h |
+++ b/src/ast/ast-value-factory.h |
@@ -329,7 +329,6 @@ class AstValueFactory { |
values_(nullptr), |
strings_end_(&strings_), |
zone_(zone), |
- isolate_(NULL), |
hash_seed_(hash_seed) { |
ResetStrings(); |
#define F(name, str) name##_string_ = NULL; |
@@ -359,9 +358,6 @@ class AstValueFactory { |
const AstRawString* right); |
void Internalize(Isolate* isolate); |
- bool IsInternalized() { |
- return isolate_ != NULL; |
- } |
#define F(name, str) \ |
const AstRawString* name##_string() { \ |
@@ -389,21 +385,13 @@ class AstValueFactory { |
private: |
AstValue* AddValue(AstValue* value) { |
- if (isolate_) { |
- value->Internalize(isolate_); |
- } else { |
- value->set_next(values_); |
- values_ = value; |
- } |
+ value->set_next(values_); |
+ values_ = value; |
return value; |
} |
AstString* AddString(AstString* string) { |
- if (isolate_) { |
- string->Internalize(isolate_); |
- } else { |
- *strings_end_ = string; |
- strings_end_ = string->next_location(); |
- } |
+ *strings_end_ = string; |
+ strings_end_ = string->next_location(); |
return string; |
} |
void ResetStrings() { |
@@ -427,7 +415,6 @@ class AstValueFactory { |
AstString* strings_; |
AstString** strings_end_; |
Zone* zone_; |
- Isolate* isolate_; |
uint32_t hash_seed_; |