mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 1485701 - make the interceptor code compilable, if not functional, on aarch64 windows; r=aklotz
This commit is contained in:
parent
7d55fef8da
commit
0b8d2e01f3
@ -52,6 +52,9 @@ public:
|
||||
size_t nBytes = 1 + sizeof(intptr_t);
|
||||
#elif defined(_M_X64)
|
||||
size_t nBytes = 2 + sizeof(intptr_t);
|
||||
#elif defined(_M_ARM64)
|
||||
size_t nBytes = 4;
|
||||
MOZ_RELEASE_ASSERT(false, "Shouldn't get here");
|
||||
#else
|
||||
#error "Unknown processor type"
|
||||
#endif
|
||||
@ -130,6 +133,8 @@ public:
|
||||
if (!origBytes) {
|
||||
continue;
|
||||
}
|
||||
#elif defined(_M_ARM64)
|
||||
MOZ_RELEASE_ASSERT(false, "Shouldn't get here")
|
||||
#else
|
||||
#error "Unknown processor type"
|
||||
#endif
|
||||
@ -963,6 +968,8 @@ protected:
|
||||
return;
|
||||
}
|
||||
}
|
||||
#elif defined(_M_ARM64)
|
||||
MOZ_RELEASE_ASSERT(false, "Shouldn't get here")
|
||||
#else
|
||||
#error "Unknown processor type"
|
||||
#endif
|
||||
|
@ -361,7 +361,7 @@ private:
|
||||
// needs to touch the heap.
|
||||
#if defined(_M_IX86)
|
||||
static const size_t kInlineStorage = 16;
|
||||
#elif defined(_M_X64)
|
||||
#elif defined(_M_X64) || defined(_M_ARM64)
|
||||
static const size_t kInlineStorage = 32;
|
||||
#endif
|
||||
Vector<uint8_t, kInlineStorage> mLocalBytes;
|
||||
@ -586,7 +586,7 @@ private:
|
||||
// needs to touch the heap.
|
||||
#if defined(_M_IX86)
|
||||
static const size_t kInlineStorage = 16;
|
||||
#elif defined(_M_X64)
|
||||
#elif defined(_M_X64) || defined(_M_ARM64)
|
||||
static const size_t kInlineStorage = 32;
|
||||
#endif
|
||||
|
||||
|
@ -432,6 +432,11 @@ private:
|
||||
{
|
||||
// Generally, code should not call this method directly. Use AddHook unless
|
||||
// there is a specific need to avoid nop space patches.
|
||||
#if defined(_M_ARM64)
|
||||
// XXX: this is just to get things compiling; we'll have to add real
|
||||
// support at some future point.
|
||||
return false;
|
||||
#endif
|
||||
|
||||
if (!mModule) {
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user