| 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 2633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2644 | 2644 |
| 2645 void Assembler::RecordComment(const char* msg, bool force) { | 2645 void Assembler::RecordComment(const char* msg, bool force) { |
| 2646 if (FLAG_code_comments || force) { | 2646 if (FLAG_code_comments || force) { |
| 2647 EnsureSpace ensure_space(this); | 2647 EnsureSpace ensure_space(this); |
| 2648 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg)); | 2648 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg)); |
| 2649 } | 2649 } |
| 2650 } | 2650 } |
| 2651 | 2651 |
| 2652 | 2652 |
| 2653 void Assembler::RecordDeoptReason(const int reason, const int raw_position) { | 2653 void Assembler::RecordDeoptReason(const int reason, const int raw_position) { |
| 2654 if (FLAG_trace_deopt || isolate()->cpu_profiler()->is_profiling()) { | 2654 if (FLAG_trace_deopt) { |
| 2655 EnsureSpace ensure_space(this); | 2655 EnsureSpace ensure_space(this); |
| 2656 RecordRelocInfo(RelocInfo::POSITION, raw_position); | 2656 RecordRelocInfo(RelocInfo::POSITION, raw_position); |
| 2657 RecordRelocInfo(RelocInfo::DEOPT_REASON, reason); | 2657 RecordRelocInfo(RelocInfo::DEOPT_REASON, reason); |
| 2658 } | 2658 } |
| 2659 } | 2659 } |
| 2660 | 2660 |
| 2661 | 2661 |
| 2662 void Assembler::GrowBuffer() { | 2662 void Assembler::GrowBuffer() { |
| 2663 DCHECK(buffer_overflow()); | 2663 DCHECK(buffer_overflow()); |
| 2664 if (!own_buffer_) FATAL("external code buffer is too small"); | 2664 if (!own_buffer_) FATAL("external code buffer is too small"); |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2846 fprintf(coverage_log, "%s\n", file_line); | 2846 fprintf(coverage_log, "%s\n", file_line); |
| 2847 fflush(coverage_log); | 2847 fflush(coverage_log); |
| 2848 } | 2848 } |
| 2849 } | 2849 } |
| 2850 | 2850 |
| 2851 #endif | 2851 #endif |
| 2852 | 2852 |
| 2853 } } // namespace v8::internal | 2853 } } // namespace v8::internal |
| 2854 | 2854 |
| 2855 #endif // V8_TARGET_ARCH_IA32 | 2855 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |