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 are | 5 // modification, are permitted provided that the following conditions are |
6 // met: | 6 // 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 1873 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1884 } | 1884 } |
1885 } | 1885 } |
1886 } | 1886 } |
1887 | 1887 |
1888 return !empty ? emitted_label_.pos() : 0; | 1888 return !empty ? emitted_label_.pos() : 0; |
1889 } | 1889 } |
1890 | 1890 |
1891 | 1891 |
1892 // Platform specific but identical code for all the platforms. | 1892 // Platform specific but identical code for all the platforms. |
1893 | 1893 |
1894 void Assembler::RecordDeoptReason(DeoptimizeReason reason, int raw_position, | 1894 void Assembler::RecordDeoptReason(DeoptimizeReason reason, |
1895 int id) { | 1895 SourcePosition position, int id) { |
1896 if (FLAG_trace_deopt || isolate()->is_profiling()) { | 1896 if (FLAG_trace_deopt || isolate()->is_profiling()) { |
1897 EnsureSpace ensure_space(this); | 1897 EnsureSpace ensure_space(this); |
1898 RecordRelocInfo(RelocInfo::DEOPT_POSITION, raw_position); | 1898 RecordRelocInfo(RelocInfo::DEOPT_POSITION, position.ScriptOffset()); |
1899 RecordRelocInfo(RelocInfo::DEOPT_POSITION, position.InliningId()); | |
alph
2016/11/07 22:38:39
Hmm, looks hacky. How about adding a new tag for i
| |
1899 RecordRelocInfo(RelocInfo::DEOPT_REASON, static_cast<int>(reason)); | 1900 RecordRelocInfo(RelocInfo::DEOPT_REASON, static_cast<int>(reason)); |
1900 RecordRelocInfo(RelocInfo::DEOPT_ID, id); | 1901 RecordRelocInfo(RelocInfo::DEOPT_ID, id); |
1901 } | 1902 } |
1902 } | 1903 } |
1903 | 1904 |
1904 | 1905 |
1905 void Assembler::RecordComment(const char* msg) { | 1906 void Assembler::RecordComment(const char* msg) { |
1906 if (FLAG_code_comments) { | 1907 if (FLAG_code_comments) { |
1907 EnsureSpace ensure_space(this); | 1908 EnsureSpace ensure_space(this); |
1908 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg)); | 1909 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg)); |
(...skipping 15 matching lines...) Expand all Loading... | |
1924 | 1925 |
1925 | 1926 |
1926 void Assembler::DataAlign(int m) { | 1927 void Assembler::DataAlign(int m) { |
1927 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); | 1928 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); |
1928 while ((pc_offset() & (m - 1)) != 0) { | 1929 while ((pc_offset() & (m - 1)) != 0) { |
1929 db(0); | 1930 db(0); |
1930 } | 1931 } |
1931 } | 1932 } |
1932 } // namespace internal | 1933 } // namespace internal |
1933 } // namespace v8 | 1934 } // namespace v8 |
OLD | NEW |