Index: src/parser.h |
diff --git a/src/parser.h b/src/parser.h |
index 74cb0493eb01c595739fcb10f92e2b82fae4f624..78faea1b3246478cf50ec908c4b5d5caa23b6063 100644 |
--- a/src/parser.h |
+++ b/src/parser.h |
@@ -280,6 +280,9 @@ class RegExpBuilder: public ZoneObject { |
void FlushCharacters(); |
void FlushText(); |
void FlushTerms(); |
+ Zone* zone() { return zone_; } |
+ |
+ Zone* zone_; |
bool pending_empty_; |
ZoneList<uc16>* characters_; |
BufferedZoneList<RegExpTree, 2> terms_; |
@@ -389,6 +392,7 @@ class RegExpParser { |
}; |
Isolate* isolate() { return isolate_; } |
+ Zone* zone() { return isolate_->zone(); } |
uc32 current() { return current_; } |
bool has_more() { return has_more_; } |
@@ -453,6 +457,7 @@ class Parser { |
}; |
Isolate* isolate() { return isolate_; } |
+ Zone* zone() { return isolate_->zone(); } |
// Called by ParseProgram after setting up the scanner. |
FunctionLiteral* DoParseProgram(Handle<String> source, |