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 1901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1912 | 1912 |
1913 | 1913 |
1914 void Assembler::RecordComment(const char* msg, bool force) { | 1914 void Assembler::RecordComment(const char* msg, bool force) { |
1915 if (FLAG_code_comments || force) { | 1915 if (FLAG_code_comments || force) { |
1916 EnsureSpace ensure_space(this); | 1916 EnsureSpace ensure_space(this); |
1917 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg)); | 1917 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg)); |
1918 } | 1918 } |
1919 } | 1919 } |
1920 | 1920 |
1921 | 1921 |
| 1922 void Assembler::RecordDeoptReason(const int reason, const int raw_position) { |
| 1923 if (FLAG_trace_deopt) { |
| 1924 EnsureSpace ensure_space(this); |
| 1925 RecordRelocInfo(RelocInfo::POSITION, raw_position); |
| 1926 RecordRelocInfo(RelocInfo::DEOPT_REASON, reason); |
| 1927 } |
| 1928 } |
| 1929 |
| 1930 |
1922 void Assembler::GrowBuffer() { | 1931 void Assembler::GrowBuffer() { |
1923 DCHECK(buffer_overflow()); | 1932 DCHECK(buffer_overflow()); |
1924 if (!own_buffer_) FATAL("external code buffer is too small"); | 1933 if (!own_buffer_) FATAL("external code buffer is too small"); |
1925 | 1934 |
1926 // Compute new buffer size. | 1935 // Compute new buffer size. |
1927 CodeDesc desc; // the new buffer | 1936 CodeDesc desc; // the new buffer |
1928 desc.buffer_size = 2 * buffer_size_; | 1937 desc.buffer_size = 2 * buffer_size_; |
1929 | 1938 |
1930 // Some internal data structures overflow for very large buffers, | 1939 // Some internal data structures overflow for very large buffers, |
1931 // they must ensure that kMaximalBufferSize is not too large. | 1940 // they must ensure that kMaximalBufferSize is not too large. |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2089 fprintf(coverage_log, "%s\n", file_line); | 2098 fprintf(coverage_log, "%s\n", file_line); |
2090 fflush(coverage_log); | 2099 fflush(coverage_log); |
2091 } | 2100 } |
2092 } | 2101 } |
2093 | 2102 |
2094 #endif | 2103 #endif |
2095 | 2104 |
2096 } } // namespace v8::internal | 2105 } } // namespace v8::internal |
2097 | 2106 |
2098 #endif // V8_TARGET_ARCH_X87 | 2107 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |