Index: src/ia32/assembler-ia32.h |
diff --git a/src/ia32/assembler-ia32.h b/src/ia32/assembler-ia32.h |
index 5286788fa72da108f0e1a7bfe22650def98a54ba..624be0c3a149acf6d6af9105a4fbd139aaa1af8d 100644 |
--- a/src/ia32/assembler-ia32.h |
+++ b/src/ia32/assembler-ia32.h |
@@ -847,17 +847,11 @@ class Assembler : public Malloced { |
// Use --debug_code to enable. |
void RecordComment(const char* msg); |
- void RecordPosition(int pos); |
- void RecordStatementPosition(int pos); |
- bool WriteRecordedPositions(); |
- |
// Writes a single word of data in the code stream. |
// Used for inline tables, e.g., jump-tables. |
void dd(uint32_t data, RelocInfo::Mode reloc_info); |
int pc_offset() const { return pc_ - buffer_; } |
- int current_statement_position() const { return current_statement_position_; } |
- int current_position() const { return current_position_; } |
// Check if there is less than kGap bytes available in the buffer. |
// If this is the case, we need to grow the buffer before emitting |
@@ -869,6 +863,8 @@ class Assembler : public Malloced { |
static bool IsNop(Address addr) { return *addr == 0x90; } |
+ PositionsRecorder* positions_recorder() { return &positions_recorder_; } |
+ |
// Avoid overflows for displacements etc. |
static const int kMaximalBufferSize = 512*MB; |
static const int kMinimalBufferSize = 4*KB; |
@@ -947,11 +943,9 @@ class Assembler : public Malloced { |
// push-pop elimination |
byte* last_pc_; |
- // source position information |
- int current_statement_position_; |
- int current_position_; |
- int written_statement_position_; |
- int written_position_; |
+ PositionsRecorder positions_recorder_; |
+ |
+ friend class PositionsRecorder; |
}; |