text
stringlengths
1
24.5M
#pragma once #include "../host_core/runtimeSymbols.h" namespace xenon { //---- // bytes are not swapper template< typename T > struct DataMemoryDirect { __forceinline static const T Read(const void* ptr) { return *(const T*)ptr; } __forceinline static void Write(void* ptr, const T value) { xen...
#include "build.h" #include "xenonLibNatives.h" #include "xenonLib.h" #include "xenonPlatform.h" #include "xenonKernel.h" #include "xenonMemory.h" #include "xenonBindings.h" namespace xenon { namespace lib { int32_t Xbox_XAudioSubmitRenderDriverFrame() { return 0; } uint32 Xbox_XAudioUnregisterRender...
#include "build.h" #include "xenonLibNatives.h" #include "xenonLib.h" #include "xenonBindings.h" namespace xenon { namespace lib { ///------------------ struct ConfigSettings { char OnlineNetworkID[4]; //??key 0x6 4 bytes?? key 0x8 4 bytes?? NOT SURE WHICH, 0x8 or 0x6 uint8 MACAddress[6]; // key 0...
#include "build.h" #include "xenonLib.h" #include "xenonLibNatives.h" #include "xenonBindings.h" #include "xenonMemory.h" namespace xenon { namespace lib { namespace sprintf_helper { template<typename T, typename W> static inline void Append(T& stream, T streamEnd, W value) { *stream = (char)val...
#include "build.h" #include "xenonLib.h" #include "xenonLibNatives.h" #include "xenonThread.h" #include "xenonMemory.h" #include "xenonBindings.h" namespace xenon { namespace lib { //--------------------------------------------------------------------------- void Xbox_DbgBreakPoint() { GLog.Log( "DbgBr...
#include "build.h" #include "xenonLibNatives.h" #include "xenonLib.h" #include "xenonBindings.h" namespace xenon { namespace lib { struct ErrorLookupTable { uint32 base_code; uint32 count; const uint32* entries; }; const uint32 error_table_0x00000103[] = { 0x000003E5, // 0x00000103 0,...
#include "build.h" #include "xenonLib.h" #include "xenonFileSystem.h" #include "xenonKernel.h" #include "xenonPlatform.h" #include "xenonBindings.h" namespace xenon { namespace lib { //--------------------------------------------------------------------------- // http://processhacker.sourceforge.net/doc/ntio...
#include "build.h" #include "xenonLib.h" #include "xenonLibNatives.h" #include "xenonThread.h" #include "xenonPlatform.h" #include "xenonInput.h" #include "xenonBindings.h" namespace xenon { namespace lib { //--------------------------------------------------------------------------- static const uint32 XINP...
#include "build.h" #include "xenonLib.h" #include "xenonLibNatives.h" #include "xenonThread.h" #include "xenonPlatform.h" #include "xenonMemory.h" #include "xenonBindings.h" namespace xenon { namespace lib { //--------------------------------------------------------------------------- X_STATUS Xbox_NtClose(u...
#include "build.h" #include "xenonLib.h" #include "xenonLibNatives.h" #include "xenonThread.h" #include "xenonPlatform.h" #include "xenonMemory.h" #include "xenonBindings.h" namespace xenon { namespace lib { //----------------------- X_STATUS Xbox_NtFreeVirtualMemory(Pointer<uint32> basePtr, Pointer<uint32> ...
#include "build.h" #include "xenonLibNatives.h" #include "xenonLib.h" #include "xenonPlatform.h" #include "xenonMemory.h" #include "xenonBindings.h" //--------------------------------------------------------------------------- namespace xenon { namespace lib { XenonNativeData::XenonNativeData() : m_data(nu...
#pragma once #include "xenonLib.h" //--------------------------------------------------------------------------- namespace xenon { namespace lib { typedef uint64 HRESULT; typedef uint32 X_STATUS; typedef uint32 X_FILE; /// native data wrapper class XenonNativeData { public: XenonNativeData(); ...
#include "build.h" #include "xenonLibNatives.h" #include "xenonLib.h" #include "xenonBindings.h" namespace xenon { namespace lib { // XNet------------------------------------------------------------------ X_STATUS Xbox_NetDll_XNetCleanup() { return X_STATUS_NOT_IMPLEMENTED; } X_STATUS Xbox_NetDll_...
#include "build.h" #include "xenonLib.h" #include "xenonLibNatives.h" #include "xenonPlatform.h" #include "xenonGraphics.h" #include "xenonMemory.h" #include "xenonBindings.h" namespace xenon { namespace lib { //--------------------------------------------------------------------------- X_STATUS Xbox_XGetVid...
#include "build.h" #include "xenonLib.h" #include "xenonLibNatives.h" #include "xenonPlatform.h" #include "xenonGraphics.h" #include "xenonUserManager.h" #include "xenonBindings.h" namespace xenon { namespace lib { //--------------------------------------------------------------------------- X_STATUS Xbox_Xa...
#include "build.h" #include "xenonMemory.h" namespace xenon { Memory::Memory(native::IMemory& nativeMemory) : m_nativeMemory(nativeMemory) {} //-- const bool Memory::MemoryClass::Initialize(native::IMemory& memory, const uint32 prefferedBase, const uint32 totalVirtualMemoryAvaiable) { // allocate the virtua...
#pragma once #include "../host_core/blockAllocator.h" #include "../host_core/bitset.h" namespace xenon { /// xenon memory allocator class Memory { public: Memory(native::IMemory& nativeMemory); // initialize virtual memory range const bool InitializeVirtualMemory(const uint32 prefferedBase, const uint32 to...
#include "build.h" #include "xenonPlatform.h" #include "xenonKernel.h" #include "xenonFileSystem.h" #include "xenonGraphics.h" #include "xenonCPUDevice.h" #include "xenonInput.h" #include "xenonMemory.h" #include "xenonUserManager.h" #include "xenonAudio.h" #include "xenonBindings.h" #include "xenonTimeBase.h" #includ...
#pragma once #include "../host_core/runtimePlatform.h" //--------------------------------------------------------------------------- namespace xenon { class Kernel; class FileSystem; class Graphics; class InputSystem; class Memory; class UserProfileManager; class Audio; class TraceFile; class TimeBase; //...
#include "build.h" #include "xenonKernel.h" #include "xenonThread.h" #include "xenonInplaceExecution.h" #include "../host_core/runtimeCodeExecutor.h" #include "../host_core/runtimeTraceWriter.h" #include "../host_core/runtimeTraceFile.h" #include "xenonMemory.h" namespace xenon { //---------------------------------...
#pragma once #include "xenonKernel.h" #include "../host_core/runtimeCodeExecutor.h" namespace runtime { class TraceWriter; } namespace xenon { /// Thread object class KernelThread : public IKernelWaitObject, public native::IRunnable { public: inline int32 GetPriority() const { return m_priority; } inline i...
#include "build.h" #include "xenonTimeBase.h" namespace xenon { TimeBase::TimeBase(const launcher::Commandline& commandline) : m_systemTimeBase(0) , m_systemTimeTicksPerSecond(10000000) { QueryPerformanceCounter((LARGE_INTEGER*)&m_highResolutionBase); QueryPerformanceFrequency((LARGE_INTEGER*)&m_highResolut...
#pragma once namespace xenon { /// time base system class TimeBase { public: TimeBase(const launcher::Commandline& commandline); /// get frequency of the high-resolution timer uint64_t GetHighResolutionFrequency(); /// get current high-frequency timer value uint64_t GetHighResolutionTime(); //--- ...
#include "build.h" #include "xenonUserManager.h" #include "xenonPlatform.h" #include "xenonMemory.h" namespace xenon { UserProfile::UserProfile(const uint64_t id, const std::string& name) : m_uid(id) , m_name(name) { CreateDefaultEntries(); } void UserProfile::RemoveSetting(const uint32_t id) { for (aut...
#pragma once namespace xenon { //--- /// user profile representation class UserProfile { public: UserProfile(const uint64_t id, const std::string& name); inline const uint64_t GetID() const { return m_uid; } inline const std::string& GetName() const { return m_name; } //--- /// remove setting from ...
#include "build.h" namespace utils { const DWORD MS_VC_EXCEPTION = 0x406D1388; #pragma pack(push,8) typedef struct tagTHREADNAME_INFO { DWORD dwType; // Must be 0x1000. LPCSTR szName; // Pointer to name (in user addr space). DWORD dwThreadID; // Thread ID (-1=caller thread). DWORD dwFlags; // Reserved fo...
#pragma once namespace utils { //--------------------------------------------------------------------------- template< typename K, typename V > static inline bool Find( const std::map<K,V>& data, const K& key, V& outVal ) { auto it = data.find( key ); if ( it != data.end() ) { outVal = it->second; ret...
const char ShaderData[]={ 0x44,0x58,0x42,0x43,0x70,0x87,0x09,0x8d,0x2f,0xf9,0x6e,0xe1,0xc2,0xee,0x9c,0xeb,0x9d,0x1e,0x66,0x6e,0x01,0x00,0x00,0x00,0x60,0x04,0x00,0x00,0x05,0x00,0x00,0x00,0x34 ,0x00,0x00,0x00,0xac,0x02,0x00,0x00,0xbc,0x02,0x00,0x00,0xcc,0x02,0x00,0x00,0xc4,0x03,0x00,0x00,0x52,0x44,0x45,0x46,0x70,0x02,0x0...
const char ShaderData[]={ 0x44,0x58,0x42,0x43,0x70,0x87,0x09,0x8d,0x2f,0xf9,0x6e,0xe1,0xc2,0xee,0x9c,0xeb,0x9d,0x1e,0x66,0x6e,0x01,0x00,0x00,0x00,0x60,0x04,0x00,0x00,0x05,0x00,0x00,0x00,0x34 ,0x00,0x00,0x00,0xac,0x02,0x00,0x00,0xbc,0x02,0x00,0x00,0xcc,0x02,0x00,0x00,0xc4,0x03,0x00,0x00,0x52,0x44,0x45,0x46,0x70,0x02,0x0...
const char ShaderData[]={ 0x44,0x58,0x42,0x43,0xf0,0x83,0xf6,0xfe,0x14,0x57,0x73,0xbe,0xac,0x27,0x16,0x2f,0x62,0xd9,0xb6,0xa0,0x01,0x00,0x00,0x00,0x60,0x04,0x00,0x00,0x05,0x00,0x00,0x00,0x34 ,0x00,0x00,0x00,0xac,0x02,0x00,0x00,0xbc,0x02,0x00,0x00,0xcc,0x02,0x00,0x00,0xc4,0x03,0x00,0x00,0x52,0x44,0x45,0x46,0x70,0x02,0x0...
const char ShaderData[]={ 0x44,0x58,0x42,0x43,0x2f,0x3c,0x35,0xea,0x97,0x86,0x9b,0x96,0x11,0x19,0x40,0x70,0x67,0xf4,0xaa,0x35,0x01,0x00,0x00,0x00,0x9c,0x02,0x00,0x00,0x05,0x00,0x00,0x00,0x34 ,0x00,0x00,0x00,0xc8,0x00,0x00,0x00,0xd8,0x00,0x00,0x00,0xe8,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x52,0x44,0x45,0x46,0x8c,0x00,0x0...
const char ShaderData[]={ 0x44,0x58,0x42,0x43,0x67,0xf1,0x52,0x38,0x3f,0x4d,0xd1,0x2b,0xd8,0x09,0x55,0x2a,0x0a,0x10,0xe6,0xb8,0x01,0x00,0x00,0x00,0xf8,0x0a,0x00,0x00,0x05,0x00,0x00,0x00,0x34 ,0x00,0x00,0x00,0x90,0x05,0x00,0x00,0xa0,0x05,0x00,0x00,0xb0,0x05,0x00,0x00,0x5c,0x0a,0x00,0x00,0x52,0x44,0x45,0x46,0x54,0x05,0x0...
#ifndef _EDRAM_COMMON_H_ #define _EDRAM_COMMON_H_ // #define DRAW_EDRAM_BORDER // gamma settings #define GAMMA_DECODE 2.2f #define GAMMA_ENCODE (1.0f/(GAMMA_DECODE)) // use "full" (picewise-linear) gamma emulation from the Xbox360 - note, it's slow //#define FULL_GAMMA_EMULATION // no msaa #define EDRAM_TILE_X 80 ...
const char ShaderData[]={ 0x44,0x58,0x42,0x43,0x84,0xd2,0x06,0xc6,0xb5,0x06,0x62,0x1f,0x0d,0x7f,0x84,0xdb,0x5b,0xd0,0x16,0xb6,0x01,0x00,0x00,0x00,0x64,0x0d,0x00,0x00,0x05,0x00,0x00,0x00,0x34 ,0x00,0x00,0x00,0xb8,0x05,0x00,0x00,0xc8,0x05,0x00,0x00,0xd8,0x05,0x00,0x00,0xc8,0x0c,0x00,0x00,0x52,0x44,0x45,0x46,0x7c,0x05,0x0...
const char ShaderData[]={ 0x44,0x58,0x42,0x43,0x45,0x5f,0x2b,0x99,0xa9,0xde,0x36,0xb6,0xbd,0x30,0xb5,0x8e,0xfd,0x6d,0x24,0xa5,0x01,0x00,0x00,0x00,0xe0,0x08,0x00,0x00,0x05,0x00,0x00,0x00,0x34 ,0x00,0x00,0x00,0x90,0x05,0x00,0x00,0xa0,0x05,0x00,0x00,0xb0,0x05,0x00,0x00,0x44,0x08,0x00,0x00,0x52,0x44,0x45,0x46,0x54,0x05,0x0...
const char ShaderData[]={ 0x44,0x58,0x42,0x43,0x3d,0xf6,0x09,0xcd,0xf5,0xe6,0x34,0x72,0x78,0x58,0x20,0xfb,0x56,0xa4,0x09,0xeb,0x01,0x00,0x00,0x00,0x44,0x07,0x00,0x00,0x05,0x00,0x00,0x00,0x34 ,0x00,0x00,0x00,0xa0,0x00,0x00,0x00,0xa0,0x01,0x00,0x00,0xc4,0x02,0x00,0x00,0xa8,0x06,0x00,0x00,0x52,0x44,0x45,0x46,0x64,0x00,0x0...
const char ShaderData[]={ 0x44,0x58,0x42,0x43,0x04,0xcc,0xa9,0xc7,0x26,0xd1,0xed,0xa6,0x7f,0x58,0x45,0x14,0xf7,0xbb,0xd0,0x0b,0x01,0x00,0x00,0x00,0xec,0x05,0x00,0x00,0x05,0x00,0x00,0x00,0x34 ,0x00,0x00,0x00,0xa0,0x00,0x00,0x00,0xf8,0x00,0x00,0x00,0x58,0x01,0x00,0x00,0x50,0x05,0x00,0x00,0x52,0x44,0x45,0x46,0x64,0x00,0x0...
const char InstructionsCommonTxt[]={ 0x2f,0x2f,0x20,0x43,0x6f,0x6d,0x6d,0x6f,0x6e,0x20,0x69,0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x69,0x6f,0x6e,0x20,0x69,0x6d,0x70,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x61,0x74 ,0x69,0x6f,0x6e,0x20,0x66,0x69,0x6c,0x65,0x20,0x66,0x6f,0x72,0x20,0x61,0x75,0x74,0x6f,0x67,0x65,0x6e,0x65,0x72,0x74,0x...
const char PixelShaderCommonTxt[]={ 0x2f,0x2f,0x20,0x43,0x6f,0x6d,0x6d,0x6f,0x6e,0x20,0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x20,0x66,0x69,0x6c,0x65,0x20,0x66,0x6f,0x72,0x20,0x61,0x75,0x74,0x6f,0x67,0x65 ,0x6e,0x65,0x72,0x74,0x65,0x64,0x20,0x70,0x69,0x78,0x65,0x6c,0x20,0x73,0x68,0x61,0x64,0x65,0x72,0x73,0x0d,0x0a,0x2f,0x2...
const char VertexShaderCommonTxt[]={ 0x2f,0x2f,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x0d,0x0a,0x2f,0x2f,0x20,0x69,0x6e,0x64,0x65,0x78,0x20,0x62,0x75,0x66 ,0x66,0x65,0x72,0x20,0x66,0x61,0x6b,0x65,0x0d,0x0a,0x2f,0x2f,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x2d,0x...
#include <xtl.h> #include <math.h> #define TEST_REG1(x) \ x vr0; \ x vr1; \ x vr2; \ x vr4; \ x vr8; \ x vr16; \ x vr31; #define TEST_VREG1_SIMM(x) \ x vr0, -16; \ x vr0, -15; \ x vr0, -7; \ x vr0, -3; \ x vr0, -2; \ x vr0, -1; \ x vr0, 0; \ x vr0, 1; \ x vr0, 2; \ x vr0, 4; \ x vr0, 8; \ x ...
// stdafx.cpp : source file that includes just the standard includes // XOpPrint.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled type information #include "stdafx.h" // TODO: reference any additional headers you need in STDAFX.H // and not in this file
// stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // #pragma once #include "targetver.h" #include <stdio.h> #include <stdlib.h> #include <tchar.h> // TODO: reference additional headers your program requires ...
#pragma once // Including SDKDDKVer.h defines the highest available Windows platform. // If you wish to build your application for a previous Windows platform, include WinSDKVer.h and // set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. #include <SDKDDKVer.h>
// XOpPrint.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <string> #include <vector> #include <map> typedef unsigned int uint32; class BitMask { public: uint32 m_bits; uint32 m_mask; public: BitMask() : m_mask(0) , m_bits(0) {} BitMask(const uint32 opcode) ...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "IPReflectionAnalysis.h" #include <fstream> #include <sparta/AbstractDomain.h> #include <sparta/PatriciaTreeMapAbstrac...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "DexClass.h" #include "Pass.h" #include "ReflectionAnalysis.h" class IPReflectionAnalysisPass : public Pa...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "MaxDepthAnalysis.h" #include <sparta/AbstractDomain.h> #include <sparta/ConstantAbstractDomain.h> #include <sparta/Has...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "DeterministicContainers.h" #include "DexClass.h" #include "Pass.h" class MaxDepthAnalysisPass : public P...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "AccessibilityChecker.h" #include "Debug.h" #include "DexClass.h" #include "DexUtil.h" #include "IRInstruction.h" #incl...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "RedexPropertyChecker.h" namespace redex_properties { class AccessibilityChecker : public PropertyChecke...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "DexLimitsChecker.h" #include <iterator> #include <optional> #include <sstream> #include "ConfigFiles.h" #include "Deb...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "RedexPropertyChecker.h" #include <string> #include <vector> #include "DeterministicContainers.h" class...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "HasSourceBlocksChecker.h" #include "ConfigFiles.h" #include "DexClass.h" #include "SourceBlocks.h" #include "Walkers.h...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "RedexProperties.h" #include "RedexPropertyChecker.h" namespace redex_properties { class HasSourceBlocks...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "InitialRenameClassCheker.h" #include "Debug.h" #include "DexClass.h" #include "Show.h" #include "Walkers.h" namespace...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "RedexPropertyChecker.h" namespace redex_properties { class InitialRenameClassCheker : public PropertyCh...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "InjectionIdInstructionsChecker.h" #include "Debug.h" #include "DexClass.h" #include "Show.h" #include "Walkers.h" nam...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "RedexPropertyChecker.h" namespace redex_properties { class InjectionIdInstructionsChecker : public Prop...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "MethodRegisterChecker.h" #include "Debug.h" #include "DexClass.h" #include "DexOpcode.h" #include "IRInstruction.h" #i...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "RedexPropertyChecker.h" namespace redex_properties { class MethodRegisterChecker : public PropertyCheck...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "NoInitClassInstructionsChecker.h" #include "Debug.h" #include "DexClass.h" #include "Show.h" #include "Walkers.h" nam...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "RedexPropertyChecker.h" namespace redex_properties { class NoInitClassInstructionsChecker : public Prop...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "NoResolvablePureRefsChecker.h" #include "ApiLevelChecker.h" #include "ConfigFiles.h" #include "Debug.h" #include "DexC...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "RedexPropertyChecker.h" namespace redex_properties { class NoResolvablePureRefsChecker : public Propert...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "NoSpuriousGetClassCallsChecker.h" #include "Debug.h" #include "DexClass.h" #include "ScopedCFG.h" #include "Show.h" #i...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "RedexPropertyChecker.h" namespace redex_properties { class NoSpuriousGetClassCallsChecker : public Prop...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "NoUnreachableInstructionsChecker.h" #include "Debug.h" #include "DexClass.h" #include "Show.h" #include "Walkers.h" n...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "RedexPropertyChecker.h" namespace redex_properties { class NoUnreachableInstructionsChecker : public Pr...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "NoWriteBarrierInstructionsChecker.h" #include "Debug.h" #include "DexClass.h" #include "Show.h" #include "Walkers.h" ...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "RedexPropertyChecker.h" namespace redex_properties { class NoWriteBarrierInstructionsChecker : public P...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "RenameClassChecker.h" #include "ConfigFiles.h" #include "Debug.h" #include "DexClass.h" #include <locator.h> using fa...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "RedexPropertyChecker.h" namespace redex_properties { class RenameClassChecker : public PropertyChecker ...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include <assert.h> #include <exception> #include <stdexcept> // clang-format off (import order matters) #include "locator.h" //...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <stdint.h> namespace facebook { // // About global class indices // // A renamed class' type descriptor i...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include <cstdlib> #include <iostream> #include <vector> #include <locator.h> using namespace std; using namespace facebook; /...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "AggregateException.h" #include <iostream> void run_rethrow_first_aggregate(const std::function<void()>& f) { try { ...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <exception> #include <functional> #include <vector> // One or more exceptions class aggregate_exception :...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "AnalysisUsage.h" #include "Pass.h" AnalysisID get_analysis_id_by_pass(const Pass* pass) { return typeid(*pass).name...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <string> #include <typeinfo> #include <vector> #include "DeterministicContainers.h" class Pass; // An A...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "AnnotationSignatureParser.h" #include "Show.h" #include "Trace.h" namespace annotation_signature_parser { void parse(...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "DexAnnotation.h" #include "DexClass.h" namespace annotation_signature_parser { void parse( const De...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "AnnoUtils.h" #include <cinttypes> #include <utility> #include "Show.h" #include "Trace.h" namespace { const DexEnco...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "DeterministicContainers.h" #include "DexAnnotation.h" #include "DexClass.h" /** * Parses the default va...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "ApiLevelChecker.h" #include <boost/algorithm/string/predicate.hpp> #include "Show.h" #include "Trace.h" #include "Wal...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "DexAnnotation.h" #include "DexClass.h" namespace api { /** * This class exists to check the required A...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "ApkResources.h" #include <boost/algorithm/string.hpp> #include <boost/algorithm/string/predicate.hpp> #include <boost/...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <boost/optional.hpp> #include <cstdint> #include <map> #include <string> #include <sys/types.h> #include <...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "AssetManager.h" #include <iostream> #include <sstream> #include <stdexcept> #include "DetectBundle.h" namespace { v...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <boost/filesystem.hpp> #include <memory> #include <string> #include <vector> class AssetManager { public...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <atomic> /** * A thread-safe counter that can be atomically incremented. * * This is preferred over us...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "BalancedPartitioning.h" #include <algorithm> #include <optional> #include "Debug.h" #include "WorkQueue.h" BalancedP...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <random> #include <string> #include <vector> class Document; class KmerSignature; /** * Recursive balan...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <sparta/MonotonicFixpointIterator.h> #include "ControlFlow.h" #include "IRInstruction.h" namespace ir_an...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "BaselineProfile.h" #include <fstream> #include "ConfigFiles.h" #include "Walkers.h" namespace baseline_profiles { B...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <stdint.h> #include "BaselineProfileConfig.h" #include "DeterministicContainers.h" #include "DexClass.h" ...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <json/value.h> #include <stdint.h> #include <string> #include <utility> #include <vector> #include "Deter...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "BigBlocks.h" namespace { static bool is_big_block_successor(cfg::Block* block, boo...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once /* * "Big blocks" are a sequence of blocks in a cfg that could be one block, were * it not for the fact that the ...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include <boost/bimap/bimap.hpp> #include <boost/bimap/unordered_set_of.hpp> #include <limits> #include <ostream> #include <type_...