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