Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(307)

Side by Side Diff: src/assembler.cc

Issue 1581083009: Move SourcePosition into separate header file. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Include what you use. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/assembler.h ('k') | src/compiler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1819 matching lines...) Expand 10 before | Expand all | Expand 10 after
1830 } 1830 }
1831 } 1831 }
1832 1832
1833 return !empty ? emitted_label_.pos() : 0; 1833 return !empty ? emitted_label_.pos() : 0;
1834 } 1834 }
1835 1835
1836 1836
1837 // Platform specific but identical code for all the platforms. 1837 // Platform specific but identical code for all the platforms.
1838 1838
1839 1839
1840 void Assembler::RecordDeoptReason(const int reason, 1840 void Assembler::RecordDeoptReason(const int reason, int raw_position) {
1841 const SourcePosition position) {
1842 if (FLAG_trace_deopt || isolate()->cpu_profiler()->is_profiling()) { 1841 if (FLAG_trace_deopt || isolate()->cpu_profiler()->is_profiling()) {
1843 EnsureSpace ensure_space(this); 1842 EnsureSpace ensure_space(this);
1844 int raw_position = position.IsUnknown() ? 0 : position.raw();
1845 RecordRelocInfo(RelocInfo::POSITION, raw_position); 1843 RecordRelocInfo(RelocInfo::POSITION, raw_position);
1846 RecordRelocInfo(RelocInfo::DEOPT_REASON, reason); 1844 RecordRelocInfo(RelocInfo::DEOPT_REASON, reason);
1847 } 1845 }
1848 } 1846 }
1849 1847
1850 1848
1851 void Assembler::RecordComment(const char* msg) { 1849 void Assembler::RecordComment(const char* msg) {
1852 if (FLAG_code_comments) { 1850 if (FLAG_code_comments) {
1853 EnsureSpace ensure_space(this); 1851 EnsureSpace ensure_space(this);
1854 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg)); 1852 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg));
(...skipping 15 matching lines...) Expand all
1870 1868
1871 1869
1872 void Assembler::DataAlign(int m) { 1870 void Assembler::DataAlign(int m) {
1873 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); 1871 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m));
1874 while ((pc_offset() & (m - 1)) != 0) { 1872 while ((pc_offset() & (m - 1)) != 0) {
1875 db(0); 1873 db(0);
1876 } 1874 }
1877 } 1875 }
1878 } // namespace internal 1876 } // namespace internal
1879 } // namespace v8 1877 } // namespace v8
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/compiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698