Index: src/regexp-macro-assembler.h |
diff --git a/src/regexp-macro-assembler.h b/src/regexp-macro-assembler.h |
index 7621d4989366bd16f2bb8312b99f7b9692a77a26..bcf36735c4d4ad46c4ee3a0dca52e916fbb2ccb8 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) |
@@ -189,9 +189,12 @@ class RegExpMacroAssembler { |
return global_mode_ == GLOBAL; |
} |
+ Zone* zone() const { return zone_; } |
+ |
private: |
bool slow_safe_compiler_; |
bool global_mode_; |
+ Zone* zone_; |
}; |
@@ -213,7 +216,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(); |