Index: src/regexp-macro-assembler.h |
diff --git a/src/regexp-macro-assembler.h b/src/regexp-macro-assembler.h |
index c0a8d0027ed1ffb286a9e070c86e93d0b69e873e..df244249b630320117a6b7d6cc47dc3315a82e74 100644 |
--- a/src/regexp-macro-assembler.h |
+++ b/src/regexp-macro-assembler.h |
@@ -45,6 +45,9 @@ class RegExpMacroAssembler { |
RegExpMacroAssembler(Isolate* isolate, Zone* zone); |
virtual ~RegExpMacroAssembler(); |
+ // This function is called when code generation is aborted, so that |
+ // the assembler could clean up internal data structures. |
+ virtual void AbortedCodeGeneration() {} |
// The maximal number of pushes between stack checks. Users must supply |
// kCheckStackLimit flag to push operations (instead of kNoStackLimitCheck) |
// at least once for every stack_limit() pushes that are executed. |