Index: src/regexp-macro-assembler.h |
diff --git a/src/regexp-macro-assembler.h b/src/regexp-macro-assembler.h |
index 9fa7ed43877b9ddce3524a530ee0b0956c6058c1..f9707ad9af1e5be14d22cb0b7ff3c4fe5d4e5150 100644 |
--- a/src/regexp-macro-assembler.h |
+++ b/src/regexp-macro-assembler.h |
@@ -63,7 +63,7 @@ class RegExpMacroAssembler { |
kCheckStackLimit = true |
}; |
- RegExpMacroAssembler(); |
+ explicit RegExpMacroAssembler(Zone* zone); |
virtual ~RegExpMacroAssembler(); |
// The maximal number of pushes between stack checks. Users must supply |
// kCheckStackLimit flag to push operations (instead of kNoStackLimitCheck) |
@@ -193,9 +193,12 @@ class RegExpMacroAssembler { |
return global_mode_ == GLOBAL; |
} |
+ Zone* zone() const { return zone_; } |
+ |
private: |
bool slow_safe_compiler_; |
bool global_mode_; |
+ Zone* zone_; |
}; |
@@ -217,7 +220,7 @@ class NativeRegExpMacroAssembler: public RegExpMacroAssembler { |
// capture positions. |
enum Result { RETRY = -2, EXCEPTION = -1, FAILURE = 0, SUCCESS = 1 }; |
- NativeRegExpMacroAssembler(); |
+ explicit NativeRegExpMacroAssembler(Zone* zone); |
virtual ~NativeRegExpMacroAssembler(); |
virtual bool CanReadUnaligned(); |