Bug 1486906 - fill in a missing case for aarch64 windows in platform-win32.cpp; r=mstange
authorNathan Froyd <froydnj@mozilla.com>
Tue, 28 Aug 2018 15:58:12 -0400
changeset 488804 0f5bcd0b4299794a6fcb36e1f23aa073ae20bb09
parent 488803 d94aeed0de33ee666bafd81c6640e7f905d06024
child 488805 63b68934f813fadd85d88631c7f27e19745e1c35
push id9734
push usershindli@mozilla.com
push dateThu, 30 Aug 2018 12:18:07 +0000
treeherdermozilla-beta@71c71ab3afae [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmstange
bugs1486906
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1486906 - fill in a missing case for aarch64 windows in platform-win32.cpp; r=mstange
tools/profiler/core/platform-win32.cpp
--- a/tools/profiler/core/platform-win32.cpp
+++ b/tools/profiler/core/platform-win32.cpp
@@ -61,16 +61,20 @@ PopulateRegsFromContext(Registers& aRegs
 #if defined(GP_ARCH_amd64)
   aRegs.mPC = reinterpret_cast<Address>(aContext->Rip);
   aRegs.mSP = reinterpret_cast<Address>(aContext->Rsp);
   aRegs.mFP = reinterpret_cast<Address>(aContext->Rbp);
 #elif defined(GP_ARCH_x86)
   aRegs.mPC = reinterpret_cast<Address>(aContext->Eip);
   aRegs.mSP = reinterpret_cast<Address>(aContext->Esp);
   aRegs.mFP = reinterpret_cast<Address>(aContext->Ebp);
+#elif defined(GP_ARCH_arm64)
+  aRegs.mPC = reinterpret_cast<Address>(aContext->Pc);
+  aRegs.mSP = reinterpret_cast<Address>(aContext->Sp);
+  aRegs.mFP = reinterpret_cast<Address>(aContext->Fp);
 #else
  #error "bad arch"
 #endif
   aRegs.mLR = 0;
 }
 
 class PlatformData
 {