Index: src/assembler.h |
diff --git a/src/assembler.h b/src/assembler.h |
index 5a00d44ea2c0fa6c2e2000049f45e50aed78802c..4d46a25fa2840486564eb7c2dc6b3d30c7a2af63 100644 |
--- a/src/assembler.h |
+++ b/src/assembler.h |
@@ -82,6 +82,10 @@ class AssemblerBase: public Malloced { |
int pc_offset() const { return static_cast<int>(pc_ - buffer_); } |
+ // This function is called when code generation is aborted, so that |
+ // the assembler could clean up internal data structures. |
+ virtual void AbortedCodeGeneration() { } |
+ |
static const int kMinimalBufferSize = 4*KB; |
protected: |