Index: src/assembler.cc |
diff --git a/src/assembler.cc b/src/assembler.cc |
index 75533c83117eb6fbf05365586bf88e3761d09814..101eece8cf91f38c1eaaa5394f71962d5843b75e 100644 |
--- a/src/assembler.cc |
+++ b/src/assembler.cc |
@@ -801,19 +801,17 @@ ExternalReference ExternalReference::debug_step_in_fp_address() { |
#endif |
-void PositionsRecorder::RecordPosition(int pos, |
- PositionRecordingType recording_type) { |
+void PositionsRecorder::RecordPosition(int pos) { |
ASSERT(pos != RelocInfo::kNoPosition); |
ASSERT(pos >= 0); |
- current_position_ = pos; |
- current_position_recording_type_ = recording_type; |
+ state_.current_position = pos; |
} |
void PositionsRecorder::RecordStatementPosition(int pos) { |
ASSERT(pos != RelocInfo::kNoPosition); |
ASSERT(pos >= 0); |
- current_statement_position_ = pos; |
+ state_.current_statement_position = pos; |
} |
@@ -822,31 +820,26 @@ bool PositionsRecorder::WriteRecordedPositions() { |
// Write the statement position if it is different from what was written last |
// time. |
- if (current_statement_position_ != written_statement_position_) { |
+ if (state_.current_statement_position != state_.written_statement_position) { |
EnsureSpace ensure_space(assembler_); |
assembler_->RecordRelocInfo(RelocInfo::STATEMENT_POSITION, |
- current_statement_position_); |
- written_statement_position_ = current_statement_position_; |
+ state_.current_statement_position); |
+ state_.written_statement_position = state_.current_statement_position; |
written = true; |
} |
// Write the position if it is different from what was written last time and |
- // also different from the written statement position or was forced. |
- if (current_position_ != written_position_ && |
- (current_position_ != current_statement_position_ || !written) && |
- (current_position_ != written_statement_position_ |
- || current_position_recording_type_ == FORCED_POSITION)) { |
+ // also different from the written statement position. |
+ if (state_.current_position != state_.written_position && |
+ state_.current_position != state_.written_statement_position) { |
EnsureSpace ensure_space(assembler_); |
- assembler_->RecordRelocInfo(RelocInfo::POSITION, current_position_); |
- written_position_ = current_position_; |
+ assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); |
+ state_.written_position = state_.current_position; |
written = true; |
} |
- current_position_recording_type_ = NORMAL_POSITION; |
- |
// Return whether something was written. |
return written; |
} |
- |
} } // namespace v8::internal |