| Index: src/mips/assembler-mips.cc
|
| ===================================================================
|
| --- src/mips/assembler-mips.cc (revision 4816)
|
| +++ src/mips/assembler-mips.cc (working copy)
|
| @@ -1046,13 +1046,16 @@
|
| }
|
|
|
|
|
| -void Assembler::WriteRecordedPositions() {
|
| +bool Assembler::WriteRecordedPositions() {
|
| + bool written = false;
|
| +
|
| // Write the statement position if it is different from what was written last
|
| // time.
|
| if (current_statement_position_ != written_statement_position_) {
|
| CheckBuffer();
|
| RecordRelocInfo(RelocInfo::STATEMENT_POSITION, current_statement_position_);
|
| written_statement_position_ = current_statement_position_;
|
| + written = true;
|
| }
|
|
|
| // Write the position if it is different from what was written last time and
|
| @@ -1062,7 +1065,11 @@
|
| CheckBuffer();
|
| RecordRelocInfo(RelocInfo::POSITION, current_position_);
|
| written_position_ = current_position_;
|
| + written = true;
|
| }
|
| +
|
| + // Return whether something was written.
|
| + return written;
|
| }
|
|
|
|
|
|
|