| Index: src/macro-assembler-ia32.h
|
| ===================================================================
|
| --- src/macro-assembler-ia32.h (revision 1748)
|
| +++ src/macro-assembler-ia32.h (working copy)
|
| @@ -343,6 +343,26 @@
|
| return Operand(object, index, scale, offset - kHeapObjectTag);
|
| }
|
|
|
| +
|
| +#ifdef GENERATED_CODE_COVERAGE
|
| +#define CODE_COVERAGE_STRINGIFY(x) #x
|
| +#define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x)
|
| +#define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
|
| +extern byte* ia32_coverage_function;
|
| +#define DEFINE_MASM(masm) \
|
| + masm->pushfd(); \
|
| + masm->pushad(); \
|
| + masm->push(Immediate(reinterpret_cast<int>(&__FILE_LINE__))); \
|
| + masm->call(ia32_coverage_function, RelocInfo::RUNTIME_ENTRY); \
|
| + masm->pop(eax); \
|
| + masm->popad(); \
|
| + masm->popfd(); \
|
| + masm->
|
| +#else
|
| +#define DEFINE_MASM(masm) masm->
|
| +#endif
|
| +
|
| +
|
| } } // namespace v8::internal
|
|
|
| #endif // V8_MACRO_ASSEMBLER_IA32_H_
|
|
|