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

Side by Side Diff: src/x64/macro-assembler-x64.h

Issue 2186533002: Remove dead code for generated code coverage. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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/assembler-x64.cc ('k') | src/x87/assembler-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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_X64_MACRO_ASSEMBLER_X64_H_ 5 #ifndef V8_X64_MACRO_ASSEMBLER_X64_H_
6 #define V8_X64_MACRO_ASSEMBLER_X64_H_ 6 #define V8_X64_MACRO_ASSEMBLER_X64_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/bailout-reason.h" 9 #include "src/bailout-reason.h"
10 #include "src/base/flags.h" 10 #include "src/base/flags.h"
(...skipping 1758 matching lines...) Expand 10 before | Expand all | Expand 10 after
1769 #else 1769 #else
1770 return Operand(rsp, index * kPointerSize); 1770 return Operand(rsp, index * kPointerSize);
1771 #endif 1771 #endif
1772 } 1772 }
1773 1773
1774 1774
1775 inline Operand StackOperandForReturnAddress(int32_t disp) { 1775 inline Operand StackOperandForReturnAddress(int32_t disp) {
1776 return Operand(rsp, disp); 1776 return Operand(rsp, disp);
1777 } 1777 }
1778 1778
1779
1780 #ifdef GENERATED_CODE_COVERAGE
1781 extern void LogGeneratedCodeCoverage(const char* file_line);
1782 #define CODE_COVERAGE_STRINGIFY(x) #x
1783 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x)
1784 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1785 #define ACCESS_MASM(masm) { \
1786 Address x64_coverage_function = FUNCTION_ADDR(LogGeneratedCodeCoverage); \
1787 masm->pushfq(); \
1788 masm->Pushad(); \
1789 masm->Push(Immediate(reinterpret_cast<int>(&__FILE_LINE__))); \
1790 masm->Call(x64_coverage_function, RelocInfo::EXTERNAL_REFERENCE); \
1791 masm->Pop(rax); \
1792 masm->Popad(); \
1793 masm->popfq(); \
1794 } \
1795 masm->
1796 #else
1797 #define ACCESS_MASM(masm) masm-> 1779 #define ACCESS_MASM(masm) masm->
1798 #endif
1799 1780
1800 } // namespace internal 1781 } // namespace internal
1801 } // namespace v8 1782 } // namespace v8
1802 1783
1803 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1784 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.cc ('k') | src/x87/assembler-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698