Index: src/codegen.h |
=================================================================== |
--- src/codegen.h (revision 1481) |
+++ src/codegen.h (working copy) |
@@ -52,6 +52,7 @@ |
// CodeGenerator::CodeGenerator |
// CodeGenerator::~CodeGenerator |
// CodeGenerator::ProcessDeferred |
+// CodeGenerator::ClearDeferred |
// CodeGenerator::GenCode |
// CodeGenerator::BuildBoilerplate |
// CodeGenerator::ComputeCallInitialize |
@@ -92,6 +93,14 @@ |
virtual void Generate() = 0; |
+ // Unuse the entry and exit targets, deallocating all virtual frames |
+ // held by them. It will be impossible to emit a (correct) jump |
+ // into or out of the deferred code after clearing. |
+ void Clear() { |
+ enter_.Unuse(); |
+ exit_.Unuse(); |
+ } |
+ |
MacroAssembler* masm() const { return masm_; } |
CodeGenerator* generator() const { return generator_; } |