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 2622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2633 | 2633 |
2634 | 2634 |
2635 void Assembler::RecordComment(const char* msg, bool force) { | 2635 void Assembler::RecordComment(const char* msg, bool force) { |
2636 if (FLAG_code_comments || force) { | 2636 if (FLAG_code_comments || force) { |
2637 EnsureSpace ensure_space(this); | 2637 EnsureSpace ensure_space(this); |
2638 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg)); | 2638 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg)); |
2639 } | 2639 } |
2640 } | 2640 } |
2641 | 2641 |
2642 | 2642 |
| 2643 void Assembler::RecordDeoptReason(const int reason, const int raw_position) { |
| 2644 if (FLAG_trace_deopt) { |
| 2645 EnsureSpace ensure_space(this); |
| 2646 RecordRelocInfo(RelocInfo::POSITION, raw_position); |
| 2647 RecordRelocInfo(RelocInfo::DEOPT_REASON, reason); |
| 2648 } |
| 2649 } |
| 2650 |
| 2651 |
2643 void Assembler::GrowBuffer() { | 2652 void Assembler::GrowBuffer() { |
2644 DCHECK(buffer_overflow()); | 2653 DCHECK(buffer_overflow()); |
2645 if (!own_buffer_) FATAL("external code buffer is too small"); | 2654 if (!own_buffer_) FATAL("external code buffer is too small"); |
2646 | 2655 |
2647 // Compute new buffer size. | 2656 // Compute new buffer size. |
2648 CodeDesc desc; // the new buffer | 2657 CodeDesc desc; // the new buffer |
2649 desc.buffer_size = 2 * buffer_size_; | 2658 desc.buffer_size = 2 * buffer_size_; |
2650 | 2659 |
2651 // Some internal data structures overflow for very large buffers, | 2660 // Some internal data structures overflow for very large buffers, |
2652 // they must ensure that kMaximalBufferSize is not too large. | 2661 // they must ensure that kMaximalBufferSize is not too large. |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2811 fprintf(coverage_log, "%s\n", file_line); | 2820 fprintf(coverage_log, "%s\n", file_line); |
2812 fflush(coverage_log); | 2821 fflush(coverage_log); |
2813 } | 2822 } |
2814 } | 2823 } |
2815 | 2824 |
2816 #endif | 2825 #endif |
2817 | 2826 |
2818 } } // namespace v8::internal | 2827 } } // namespace v8::internal |
2819 | 2828 |
2820 #endif // V8_TARGET_ARCH_IA32 | 2829 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |