diff options
Diffstat (limited to 'compiler/utils/assembler.h')
| -rw-r--r-- | compiler/utils/assembler.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/compiler/utils/assembler.h b/compiler/utils/assembler.h index 296254d140..f02c20f208 100644 --- a/compiler/utils/assembler.h +++ b/compiler/utils/assembler.h @@ -316,16 +316,19 @@ class Assembler { static Assembler* Create(InstructionSet instruction_set); // Emit slow paths queued during assembly - void EmitSlowPaths() { buffer_.EmitSlowPaths(this); } + virtual void EmitSlowPaths() { buffer_.EmitSlowPaths(this); } // Size of generated code - size_t CodeSize() const { return buffer_.Size(); } + virtual size_t CodeSize() const { return buffer_.Size(); } // Copy instructions out of assembly buffer into the given region of memory - void FinalizeInstructions(const MemoryRegion& region) { + virtual void FinalizeInstructions(const MemoryRegion& region) { buffer_.FinalizeInstructions(region); } + // TODO: Implement with disassembler. + virtual void Comment(const char* format, ...) { } + // Emit code that will create an activation on the stack virtual void BuildFrame(size_t frame_size, ManagedRegister method_reg, const std::vector<ManagedRegister>& callee_save_regs, |