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 2589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2600 } | 2600 } |
2601 | 2601 |
2602 | 2602 |
2603 void Assembler::RecordDebugBreakSlot() { | 2603 void Assembler::RecordDebugBreakSlot() { |
2604 positions_recorder()->WriteRecordedPositions(); | 2604 positions_recorder()->WriteRecordedPositions(); |
2605 EnsureSpace ensure_space(this); | 2605 EnsureSpace ensure_space(this); |
2606 RecordRelocInfo(RelocInfo::DEBUG_BREAK_SLOT); | 2606 RecordRelocInfo(RelocInfo::DEBUG_BREAK_SLOT); |
2607 } | 2607 } |
2608 | 2608 |
2609 | 2609 |
2610 void Assembler::RecordComment(const char* msg) { | 2610 void Assembler::RecordComment(const char* msg, bool force) { |
2611 if (FLAG_code_comments) { | 2611 if (FLAG_code_comments || force) { |
2612 EnsureSpace ensure_space(this); | 2612 EnsureSpace ensure_space(this); |
2613 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg)); | 2613 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg)); |
2614 } | 2614 } |
2615 } | 2615 } |
2616 | 2616 |
2617 | 2617 |
2618 void Assembler::GrowBuffer() { | 2618 void Assembler::GrowBuffer() { |
2619 ASSERT(overflow()); | 2619 ASSERT(overflow()); |
2620 if (!own_buffer_) FATAL("external code buffer is too small"); | 2620 if (!own_buffer_) FATAL("external code buffer is too small"); |
2621 | 2621 |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2791 fprintf(coverage_log, "%s\n", file_line); | 2791 fprintf(coverage_log, "%s\n", file_line); |
2792 fflush(coverage_log); | 2792 fflush(coverage_log); |
2793 } | 2793 } |
2794 } | 2794 } |
2795 | 2795 |
2796 #endif | 2796 #endif |
2797 | 2797 |
2798 } } // namespace v8::internal | 2798 } } // namespace v8::internal |
2799 | 2799 |
2800 #endif // V8_TARGET_ARCH_IA32 | 2800 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |