aboutsummaryrefslogtreecommitdiff
path: root/base
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #5859 from odin-lang/bill/change-licensedev-2025-11gingerBill2025-11-041-2/+0
|\ | | | | Change Odin's LICENSE to zlib from BSD 3-clause
| * Change Odin's LICENSE to zlib from BSD 3-clausegingerBill2025-10-281-2/+0
| | | | | | | | This change was made in order to allow things produced with Odin and using Odin's core library, to not require the LICENSE to also be distributed alongside the binary form.
* | Use resize_soa instead of resize proc group in soa procsthetarnav2025-11-021-3/+7
| |
* | Add `inject_at_soa` and `append_nothing_soa` proceduresthetarnav2025-11-021-0/+111
| |
* | Bodge `runtime.exit` for haikugingerBill2025-10-311-1/+1
| |
* | Remove duplicate importJeroen van Rijn2025-10-301-3/+0
| |
* | Correct cast to `uintptr`gingerBill2025-10-301-1/+1
| |
* | Add `runtime.exit`gingerBill2025-10-3010-0/+73
| |
* | `constant_truncate` -> `constant_trunc` to be consistent with other intrinsicsgingerBill2025-10-301-4/+4
| |
* | Add `intrinsics.constant_(floor|truncate|ceil|round)`gingerBill2025-10-301-0/+5
|/
* fix: typosamwega2025-10-141-1/+1
|
* Add to `intrinsics.odin`gingerBill2025-10-101-0/+3
|
* Add `type_is_nearly_simple_compare` to `intrinsics.odin`gingerBill2025-10-091-0/+1
|
* Update `intrinsics.odin`gingerBill2025-10-091-1/+4
|
* Add some more docsgingerBill2025-10-071-0/+22
|
* Add some basic docs to `Default_Temp_Allocator`gingerBill2025-10-071-0/+6
|
* Add docs to `nil_allocator` and `panic_allocator`gingerBill2025-10-071-0/+11
|
* Improve core_builtin.odin docsgingerBill2025-10-071-19/+94
|
* Correct signature (missing return value) for `objc_msgSendSuper2`Harold Brenes2025-09-301-1/+3
|
* Automatically emit objc_msgSend calls when calling imported or implemented ↵Harold Brenes2025-09-292-8/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | Objective-C methods - Add intrinsics.objc_super() - Emit objc_msgSendSuper2 calls when an objc method call is combined with objc_super(self) - Fix objc_block return value ABI for large struct returns - Fix objc_implement method wrappers bad ABI for large struct returns and indirect args - Simplify parameter forwarding for objc_imlpement methods - Add intrinsics.objc_instancetype to mimi Objective-C instancetype* returns This facilitates returning the correct type on subclasses when calling mehtods such as `alloc`, `init`, `retain`, etc. - Refactor Objective-C class implementations generation so that hierarchies are properly initialized - Better codegen for context passing with ivar-based autocontext - Allow @superclass on imported objc-c objects - Better codegen for block forwarding invoker, arguments are forwarded directly
* Type erase the internals of `runtime.copy_*`gingerBill2025-09-291-18/+16
|
* Remove unused variablebill/conditional-zerogingerBill2025-09-271-1/+0
|
* Add `runtime.conditional_mem_zero` to improve `heap_allocator` performance ↵gingerBill2025-09-272-4/+56
| | | | on non-Windows systems
* Change inlining semantics for some builtin callsgingerBill2025-09-252-14/+14
|
* Merge pull request #5632 from kalsprite/x386gingerBill2025-09-182-2/+19
|\ | | | | windows i386 support
| * revert to working buildJon Lipstate2025-09-031-2/+2
| |
| * add tls when we have crtJon Lipstate2025-09-031-2/+2
| |
| * windows i386 supportJon Lipstate2025-08-292-2/+19
| |
* | More improvements to minimize code gen sizegingerBill2025-09-182-7/+18
| |
* | Type erasure to minimize code generation sizegingerBill2025-09-181-14/+21
| |
* | Add require_results attr to procs returning an allocatorDamian Tarnawski2025-09-025-1/+7
|/
* Add missing test attr and don't zero memory when reserve already didDamian Tarnawski2025-08-261-8/+7
|
* Merge branch 'master' into soa-resize-zero-memorygingerBill2025-08-261-5/+67
|\
| * Cleanup soa resize logic—reduce nestingDamian Tarnawski2025-08-241-32/+32
| |
| * Handle nil old data caseDamian Tarnawski2025-08-241-41/+48
| |
| * Always use .Resize_Non_Zeroed in _reserve_soaDamian Tarnawski2025-08-231-1/+1
| |
| * Avoid overlap issues when correcting memory after resize in _reserve_soaDamian Tarnawski2025-08-231-5/+14
| |
| * Only zero memory when requestedDamian Tarnawski2025-08-231-9/+9
| |
| * Support using allocator resize in `_reserve_soa` (fixes #5615)Damian Tarnawski2025-08-231-5/+51
| |
* | Zero existing memory when using resize_soa (fixes #5614)Damian Tarnawski2025-08-231-0/+24
|/
* Fix stride in `memory_equal/compare_zero` giving false positvesblob18072025-08-211-4/+4
| | | | The previous stride of 8 assumed `uintptr` size is 8 which isn't the case on 32bit & wasm64p32. Skipping every other set of 4 bytes
* fix: throwing away the last generated byte in default_random_generator_procXotchkass2025-08-141-1/+1
|
* Merge pull request #5558 from odin-lang/bill/init-fini-changesgingerBill2025-08-105-10/+20
|\ | | | | `@(init)` & `@(finit)` Changes.
| * `contextless` fixes for `js`gingerBill2025-08-081-2/+2
| |
| * Require `@(init)` and `@(fini)` to be `proc "contextless" ()`gingerBill2025-08-084-8/+18
| |
* | Update runtime doc fileSunagatov Denis2025-08-082-180/+244
|/ | | | | | | | | | | | | | | | | | | | This updates and reformats the doc file for the runtime package. The list of things that need to be implemented for a compiler runtime to work has been updated in accordance with recent changes to runtime (notably `cstring16` and `string16` types and `#load_directory`). Some copy-paste errors around string-comparison procedures have been fixed. The file has been renamed to `doc.odin` as per convention, the comment has been moved to the top of the package declaration and the comment is now markdown-formatted. Also wrote down a little map to maybe slightly help with understanding navigation within package runtime's files and added a few more explanations as to why that list of declarations exists and how to use it. The list of declarations has been detailed to some degree, explaining under what conditions the declarations are required.
* Merge pull request #5547 from harold-b/hb.objc_block_intrinsicgingerBill2025-08-073-1/+17
|\ | | | | Implements the Apple block ABI.2010.3.16 natively via `objc_block` intrinsic
| * Implementes the block ABI.2010.3.16 natively via the `objc_block` intrinsic ↵Harold Brenes2025-08-063-1/+17
| | | | | | | | | | | | and the `Objc_Block` builtin type. See: https://clang.llvm.org/docs/Block-ABI-Apple.html
* | Add `intrinsics.type_canonical_name`gingerBill2025-08-071-0/+3
|/
* Change `is_utf16` field to `encoding` and use an enumgingerBill2025-08-052-3/+9
|