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

Side by Side Diff: src/x87/assembler-x87.cc

Issue 919953002: CPUProfiler: Push deopt reason further to ProfileNode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: unnecessary changes were removed Created 5 years, 10 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/x64/lithium-codegen-x64.cc ('k') | src/x87/lithium-codegen-x87.cc » ('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 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 1903 matching lines...) Expand 10 before | Expand all | Expand 10 after
1914 1914
1915 void Assembler::RecordComment(const char* msg, bool force) { 1915 void Assembler::RecordComment(const char* msg, bool force) {
1916 if (FLAG_code_comments || force) { 1916 if (FLAG_code_comments || force) {
1917 EnsureSpace ensure_space(this); 1917 EnsureSpace ensure_space(this);
1918 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg)); 1918 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg));
1919 } 1919 }
1920 } 1920 }
1921 1921
1922 1922
1923 void Assembler::RecordDeoptReason(const int reason, const int raw_position) { 1923 void Assembler::RecordDeoptReason(const int reason, const int raw_position) {
1924 if (FLAG_trace_deopt) { 1924 if (FLAG_trace_deopt || isolate()->cpu_profiler()->is_profiling()) {
1925 EnsureSpace ensure_space(this); 1925 EnsureSpace ensure_space(this);
1926 RecordRelocInfo(RelocInfo::POSITION, raw_position); 1926 RecordRelocInfo(RelocInfo::POSITION, raw_position);
1927 RecordRelocInfo(RelocInfo::DEOPT_REASON, reason); 1927 RecordRelocInfo(RelocInfo::DEOPT_REASON, reason);
1928 } 1928 }
1929 } 1929 }
1930 1930
1931 1931
1932 void Assembler::GrowBuffer() { 1932 void Assembler::GrowBuffer() {
1933 DCHECK(buffer_overflow()); 1933 DCHECK(buffer_overflow());
1934 if (!own_buffer_) FATAL("external code buffer is too small"); 1934 if (!own_buffer_) FATAL("external code buffer is too small");
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
2099 fprintf(coverage_log, "%s\n", file_line); 2099 fprintf(coverage_log, "%s\n", file_line);
2100 fflush(coverage_log); 2100 fflush(coverage_log);
2101 } 2101 }
2102 } 2102 }
2103 2103
2104 #endif 2104 #endif
2105 2105
2106 } } // namespace v8::internal 2106 } } // namespace v8::internal
2107 2107
2108 #endif // V8_TARGET_ARCH_X87 2108 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x87/lithium-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698