| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
- Added AOTDirectCalls.h and AOTDirectCalls.mm to support direct Objective-C calls, bypassing libffi. - Introduced aot-config.json to define methods and block patterns for AOT generation. - Created scripts/generate-aot.py to automate the generation of AOT stubs based on the configuration. - Updated Interop.h and Interop.mm to integrate AOT functionality. - Modified MetadataBuilder.h and MetadataBuilder.mm to utilize AOT direct calls for method and property access. - Adjusted project.pbxproj to include new AOT files in the build.
…ativeScript iOS Runtime
- Introduced `resolve-aot-imports.py` to scan metadata and update AOT config with framework imports. - Added `resolve-aot-returntypes.py` to update method return types in AOT config based on metadata. - Updated `project.pbxproj` to include new NativeScript AOT header and source files.
…rated stubs - Introduced a thread-safe mechanism for AOT stub registration using std::call_once in NativeScriptAOTBridge.mm to ensure that the registration function is called only once. - Updated the AOT generation script (generate-aot.py) to use class_getSuperclass for obtaining the superclass of a target object instead of directly referencing the class, improving compatibility and correctness. - Added necessary imports for objc/runtime.h in the generated AOT preamble to support the new superclass handling.
…ll generation with object type handling
| Back | FazBrowse Home | New Git URL |
This adds up to 5x speedup on AOT methods. Still a POC, but the idea is to allow the user to customize the aot-config with the "hottest" functions.
Also, ideally we log function calls to help determine which functions we want AOT-compiled.
Once apple give us JIT, this can be the base to our JIT compiler