Bug 1329150 - Remove ENABLE_ARM_LR_SAVING and its code. r=mstange.

--HG--
extra : rebase_source : 14c459cbfa061a885221d2d89a98f98d721679c2
This commit is contained in:
Julian Seward 2017-02-02 08:29:18 +01:00
Родитель a3b337643f
Коммит 95cd90edee
3 изменённых файлов: 0 добавлений и 14 удалений

Просмотреть файл

@ -881,9 +881,7 @@ mergeStacksIntoProfile(ThreadInfo& aInfo, TickSample* aSample,
JS::ProfilingFrameIterator::RegisterState registerState;
registerState.pc = aSample->pc;
registerState.sp = aSample->sp;
#ifdef ENABLE_ARM_LR_SAVING
registerState.lr = aSample->lr;
#endif
JS::ProfilingFrameIterator jsIter(pseudoStack->mContext,
registerState,
@ -1278,9 +1276,6 @@ doSampleStackTrace(ThreadInfo& aInfo, TickSample* aSample,
#ifdef ENABLE_LEAF_DATA
if (aSample && aAddLeafAddresses) {
aInfo.addTag(ProfileEntry('l', (void*)aSample->pc));
#ifdef ENABLE_ARM_LR_SAVING
aInfo.addTag(ProfileEntry('L', (void*)aSample->lr));
#endif
}
#endif
}

Просмотреть файл

@ -203,17 +203,13 @@ static void SetSampleContext(TickSample* sample, void* context)
sample->pc = reinterpret_cast<Address>(mcontext.gregs[R15]);
sample->sp = reinterpret_cast<Address>(mcontext.gregs[R13]);
sample->fp = reinterpret_cast<Address>(mcontext.gregs[R11]);
#ifdef ENABLE_ARM_LR_SAVING
sample->lr = reinterpret_cast<Address>(mcontext.gregs[R14]);
#endif
#else
sample->pc = reinterpret_cast<Address>(mcontext.arm_pc);
sample->sp = reinterpret_cast<Address>(mcontext.arm_sp);
sample->fp = reinterpret_cast<Address>(mcontext.arm_fp);
#ifdef ENABLE_ARM_LR_SAVING
sample->lr = reinterpret_cast<Address>(mcontext.arm_lr);
#endif
#endif
#elif V8_HOST_ARCH_MIPS
// Implement this on MIPS.
UNIMPLEMENTED();

Просмотреть файл

@ -80,7 +80,6 @@ bool profiler_verbose();
#ifdef ANDROID
# if defined(__arm__) || defined(__thumb__)
# define ENABLE_LEAF_DATA
# define ENABLE_ARM_LR_SAVING
# endif
# define LOG(text) \
do { if (profiler_verbose()) \
@ -201,9 +200,7 @@ class TickSample {
: pc(NULL)
, sp(NULL)
, fp(NULL)
#ifdef ENABLE_ARM_LR_SAVING
, lr(NULL)
#endif
, context(NULL)
, isSamplingCurrentThread(false)
, threadInfo(nullptr)
@ -216,9 +213,7 @@ class TickSample {
Address pc; // Instruction pointer.
Address sp; // Stack pointer.
Address fp; // Frame pointer.
#ifdef ENABLE_ARM_LR_SAVING
Address lr; // ARM link register
#endif
void* context; // The context from the signal handler, if available. On
// Win32 this may contain the windows thread context.
bool isSamplingCurrentThread;