| 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 2610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2621 | 2621 |
| 2622 | 2622 |
| 2623 void Assembler::RecordComment(const char* msg, bool force) { | 2623 void Assembler::RecordComment(const char* msg, bool force) { |
| 2624 if (FLAG_code_comments || force) { | 2624 if (FLAG_code_comments || force) { |
| 2625 EnsureSpace ensure_space(this); | 2625 EnsureSpace ensure_space(this); |
| 2626 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg)); | 2626 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg)); |
| 2627 } | 2627 } |
| 2628 } | 2628 } |
| 2629 | 2629 |
| 2630 | 2630 |
| 2631 void Assembler::RecordDeoptReason(const int reason, const int raw_position, |
| 2632 bool force) { |
| 2633 if (FLAG_trace_deopt || force) { |
| 2634 EnsureSpace ensure_space(this); |
| 2635 RecordRelocInfo(RelocInfo::POSITION, raw_position); |
| 2636 RecordRelocInfo(RelocInfo::DEOPT_REASON, reason); |
| 2637 } |
| 2638 } |
| 2639 |
| 2640 |
| 2631 void Assembler::GrowBuffer() { | 2641 void Assembler::GrowBuffer() { |
| 2632 DCHECK(buffer_overflow()); | 2642 DCHECK(buffer_overflow()); |
| 2633 if (!own_buffer_) FATAL("external code buffer is too small"); | 2643 if (!own_buffer_) FATAL("external code buffer is too small"); |
| 2634 | 2644 |
| 2635 // Compute new buffer size. | 2645 // Compute new buffer size. |
| 2636 CodeDesc desc; // the new buffer | 2646 CodeDesc desc; // the new buffer |
| 2637 desc.buffer_size = 2 * buffer_size_; | 2647 desc.buffer_size = 2 * buffer_size_; |
| 2638 | 2648 |
| 2639 // Some internal data structures overflow for very large buffers, | 2649 // Some internal data structures overflow for very large buffers, |
| 2640 // they must ensure that kMaximalBufferSize is not too large. | 2650 // they must ensure that kMaximalBufferSize is not too large. |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2799 fprintf(coverage_log, "%s\n", file_line); | 2809 fprintf(coverage_log, "%s\n", file_line); |
| 2800 fflush(coverage_log); | 2810 fflush(coverage_log); |
| 2801 } | 2811 } |
| 2802 } | 2812 } |
| 2803 | 2813 |
| 2804 #endif | 2814 #endif |
| 2805 | 2815 |
| 2806 } } // namespace v8::internal | 2816 } } // namespace v8::internal |
| 2807 | 2817 |
| 2808 #endif // V8_TARGET_ARCH_IA32 | 2818 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |