Index: src/x64/assembler-x64.h |
diff --git a/src/x64/assembler-x64.h b/src/x64/assembler-x64.h |
index 5f9e147e5ed624c7bc089d3fb591c9e467e8c0bf..e070fb51a7e13766a4800662c7d2a678c89d2d80 100644 |
--- a/src/x64/assembler-x64.h |
+++ b/src/x64/assembler-x64.h |
@@ -556,7 +556,7 @@ class Assembler : public AssemblerBase { |
// is too small, a fatal error occurs. No deallocation of the buffer is done |
// upon destruction of the assembler. |
Assembler(Isolate* isolate, void* buffer, int buffer_size); |
- ~Assembler(); |
+ virtual ~Assembler() { } |
// GetCode emits any pending (non-emitted) code and fills the descriptor |
// desc. GetCode() is idempotent; it returns the same result if no other |
@@ -1416,8 +1416,6 @@ class Assembler : public AssemblerBase { |
void db(uint8_t data); |
void dd(uint32_t data); |
- int pc_offset() const { return static_cast<int>(pc_ - buffer_); } |
- |
PositionsRecorder* positions_recorder() { return &positions_recorder_; } |
// Check if there is less than kGap bytes available in the buffer. |
@@ -1436,7 +1434,6 @@ class Assembler : public AssemblerBase { |
// Avoid overflows for displacements etc. |
static const int kMaximalBufferSize = 512*MB; |
- static const int kMinimalBufferSize = 4*KB; |
byte byte_at(int pos) { return buffer_[pos]; } |
void set_byte_at(int pos, byte value) { buffer_[pos] = value; } |
@@ -1628,15 +1625,7 @@ class Assembler : public AssemblerBase { |
friend class EnsureSpace; |
friend class RegExpMacroAssemblerX64; |
- // Code buffer: |
- // The buffer into which code and relocation info are generated. |
- byte* buffer_; |
- int buffer_size_; |
- // True if the assembler owns the buffer, false if buffer is external. |
- bool own_buffer_; |
- |
// code generation |
- byte* pc_; // the program counter; moves forward |
RelocInfoWriter reloc_info_writer; |
List< Handle<Code> > code_targets_; |