Bug 1366650 (part 1) - Move PseudoStack into SpiderMonkey. r=mstange,shu.

This includes renaming its fields to match SpiderMonkey naming conventions
instead of Gecko naming conventions.

This patch is just about moving the code. The next patch will change
SpiderMonkey to actually use PseudoStack directly.
This commit is contained in:
Nicholas Nethercote
2017-05-26 09:37:28 +10:00
parent d3a239d70f
commit df71128496
7 changed files with 82 additions and 109 deletions

View File

@@ -13,7 +13,7 @@
#include "shared-libraries.h"
#endif
#ifdef MOZ_THREADSTACKHELPER_PSEUDO
#include "PseudoStack.h"
#include "js/ProfilingStack.h"
#endif
#include "mozilla/Assertions.h"
@@ -492,7 +492,7 @@ ThreadStackHelper::FillStackBuffer()
intptr_t availableBufferSize = intptr_t(reservedBufferSize);
// Go from front to back
const volatile js::ProfileEntry* entry = mPseudoStack->mStack;
const volatile js::ProfileEntry* entry = mPseudoStack->entries;
const volatile js::ProfileEntry* end = entry + mPseudoStack->stackSize();
// Deduplicate identical, consecutive frames
const char* prevLabel = nullptr;