Closed 0xF6 closed 1 month ago
Overall, the changes enhance method compatibility checks, introduce new enum values, improve code generation and runtime handling, and refine memory management. The updates focus on adding arguments, refining logic for argument handling, enhancing exception handling, and introducing new memory allocation methods.
File | Change Summary |
---|---|
.../common/reflection/VeinClass.cs |
Modified CheckCompatibilityFunctionClass to pass an additional boolean argument to HasCompatibility |
.../common/reflection/VeinMethod.cs |
Updated HasCompatibility to include a new ignoreThis parameter and adjusted compatibility logic accordingly |
.../common/reflection/VeinTypeCode.cs |
Added a new enum value TYPE_NULL to VeinTypeCode |
.../ishtar.generator/GeneratorContext.cs |
Adjusted method signatures and parameter handling in CreateFunctionMulticastGroup , including changes in code generation logic |
.../ishtar.generator/generators/call.cs |
Modified EmitCall and IsCallingDelegate methods to include additional arguments and an instruction emission |
.../ishtar.generator/generators/operators.cs |
Removed gen.Emit(OpCodes.LDNULL); and modified parameters in call to FindMethod |
.../ishtar.vm/VirtualMachine.cs |
Added argument validation logic before method execution, replaced ForceFail , and introduced new opcodes and enhanced exception handling |
.../ishtar.vm/runtime/IshtarMarshal.cs |
Updated UnBoxing to handle null input by returning a stackval with type = TYPE_NULL and added a default case throwing NotImplementedException |
.../ishtar.vm/runtime/gc/IshtarGC.cs |
Added new methods AllocRawValue and FreeRawValue for memory allocation and deallocation |
.../ishtar.vm/runtime/vm/CallFrame.cs |
Added a check in FillStackTrace method before assigning to frame->exception.stack_trace |
.../ishtar.vm/stackval.cs |
Added new structures and methods for memory allocation including rawval_union , VeinRawCode , and rawval |
.../ishtar.vm/vm.switch.cs |
Added a new boolean property DisableValidationInvocationArgs for validation control |
In code realms where logic blooms,
We shaped new paths with digital plumes.
Methods check with finer grace,
Nulls are caught in memory's embrace.
Validation shines in fresh delight,
As bytes dance in the VM's light.
Here’s to progress, pure and bright! 🌟
[!TIP]
Early access features: enabled
We are currently testing the following features in early access: - **OpenAI `gpt-4o` model for code reviews and chat**: OpenAI claims that this model is better at understanding and generating code than the previous models. We seek your feedback over the next few weeks before making it generally available. Note: - You can enable or disable early access features from the CodeRabbit UI or by updating the CodeRabbit configuration file. - Please join our [Discord Community](https://discord.com/invite/GsXnASn26c) to provide feedback and report issues. - OSS projects are always opted into early access features.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
TYPE_NULL
to theVeinTypeCode
enum.LDFN
andCALL_SP
for method handling.AllocRawValue
andFreeRawValue
in the Ishtar Garbage Collector.rawval_union
,VeinRawCode
, andrawval
for advanced memory management.Improvements
DisableValidationInvocationArgs
for flexible validation control.Bug Fixes
UnBoxing
method to prevent runtime errors.Refactor