OLD | NEW |
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
2 // All Rights Reserved. | 2 // All Rights Reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions | 5 // modification, are permitted provided that the following conditions |
6 // are met: | 6 // are met: |
7 // | 7 // |
8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
10 // | 10 // |
(...skipping 1313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1324 void Assembler::WriteRecordedPositions() { | 1324 void Assembler::WriteRecordedPositions() { |
1325 // Write the statement position if it is different from what was written last | 1325 // Write the statement position if it is different from what was written last |
1326 // time. | 1326 // time. |
1327 if (current_statement_position_ != written_statement_position_) { | 1327 if (current_statement_position_ != written_statement_position_) { |
1328 CheckBuffer(); | 1328 CheckBuffer(); |
1329 RecordRelocInfo(RelocInfo::STATEMENT_POSITION, current_statement_position_); | 1329 RecordRelocInfo(RelocInfo::STATEMENT_POSITION, current_statement_position_); |
1330 written_statement_position_ = current_statement_position_; | 1330 written_statement_position_ = current_statement_position_; |
1331 } | 1331 } |
1332 | 1332 |
1333 // Write the position if it is different from what was written last time and | 1333 // Write the position if it is different from what was written last time and |
1334 // also diferent from the written statement position. | 1334 // also different from the written statement position. |
1335 if (current_position_ != written_position_ && | 1335 if (current_position_ != written_position_ && |
1336 current_position_ != written_statement_position_) { | 1336 current_position_ != written_statement_position_) { |
1337 CheckBuffer(); | 1337 CheckBuffer(); |
1338 RecordRelocInfo(RelocInfo::POSITION, current_position_); | 1338 RecordRelocInfo(RelocInfo::POSITION, current_position_); |
1339 written_position_ = current_position_; | 1339 written_position_ = current_position_; |
1340 } | 1340 } |
1341 } | 1341 } |
1342 | 1342 |
1343 | 1343 |
1344 void Assembler::GrowBuffer() { | 1344 void Assembler::GrowBuffer() { |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1511 bind(&after_pool); | 1511 bind(&after_pool); |
1512 } | 1512 } |
1513 | 1513 |
1514 // Since a constant pool was just emitted, move the check offset forward by | 1514 // Since a constant pool was just emitted, move the check offset forward by |
1515 // the standard interval. | 1515 // the standard interval. |
1516 next_buffer_check_ = pc_offset() + kCheckConstInterval; | 1516 next_buffer_check_ = pc_offset() + kCheckConstInterval; |
1517 } | 1517 } |
1518 | 1518 |
1519 | 1519 |
1520 } } // namespace v8::internal | 1520 } } // namespace v8::internal |
OLD | NEW |