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

Side by Side Diff: src/ia32/macro-assembler-ia32.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/ia32/assembler-ia32.cc ('k') | src/mips/macro-assembler-mips.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 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_IA32_MACRO_ASSEMBLER_IA32_H_ 5 #ifndef V8_IA32_MACRO_ASSEMBLER_IA32_H_
6 #define V8_IA32_MACRO_ASSEMBLER_IA32_H_ 6 #define V8_IA32_MACRO_ASSEMBLER_IA32_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/frames.h" 10 #include "src/frames.h"
(...skipping 1042 matching lines...) Expand 10 before | Expand all | Expand 10 after
1053 } 1053 }
1054 1054
1055 inline Operand ContextOperand(Register context, Register index) { 1055 inline Operand ContextOperand(Register context, Register index) {
1056 return Operand(context, index, times_pointer_size, Context::SlotOffset(0)); 1056 return Operand(context, index, times_pointer_size, Context::SlotOffset(0));
1057 } 1057 }
1058 1058
1059 inline Operand NativeContextOperand() { 1059 inline Operand NativeContextOperand() {
1060 return ContextOperand(esi, Context::NATIVE_CONTEXT_INDEX); 1060 return ContextOperand(esi, Context::NATIVE_CONTEXT_INDEX);
1061 } 1061 }
1062 1062
1063 #ifdef GENERATED_CODE_COVERAGE
1064 extern void LogGeneratedCodeCoverage(const char* file_line);
1065 #define CODE_COVERAGE_STRINGIFY(x) #x
1066 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x)
1067 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1068 #define ACCESS_MASM(masm) { \
1069 byte* ia32_coverage_function = \
1070 reinterpret_cast<byte*>(FUNCTION_ADDR(LogGeneratedCodeCoverage)); \
1071 masm->pushfd(); \
1072 masm->pushad(); \
1073 masm->push(Immediate(reinterpret_cast<int>(&__FILE_LINE__))); \
1074 masm->call(ia32_coverage_function, RelocInfo::RUNTIME_ENTRY); \
1075 masm->pop(eax); \
1076 masm->popad(); \
1077 masm->popfd(); \
1078 } \
1079 masm->
1080 #else
1081 #define ACCESS_MASM(masm) masm-> 1063 #define ACCESS_MASM(masm) masm->
1082 #endif
1083 1064
1084 } // namespace internal 1065 } // namespace internal
1085 } // namespace v8 1066 } // namespace v8
1086 1067
1087 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 1068 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/assembler-ia32.cc ('k') | src/mips/macro-assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698