[pull] master from GaijinEntertainment:master#778
Merged
Conversation
…sion scope
1. When inferring `var x = null`, varT->firstType is null since null
has no pointee type. The const propagation path dereferenced
firstType without checking, causing a crash.
2. Move with-expression scope push from preVisit to preVisitWithBody
so that `with(foo) { bar }` only makes foo active for bar,
not for the evaluation of foo itself (prevents folding on itself).
Fixes issues from #2169
We can store all type info statically. AOT can be taken as a reference. This commit does it for `string_builder` and interop functions. In future all type info should be stored statically.
It was marked public by an accident and should be private.
Before this commit vscode extension didn't work with dasBinder, if dll was not found, now it works.
Move JIT related code out of `simulate_nodes`. Final goal is to make JIT independent from `simulate` part of daScript library. This will let us create small in size executables.
With this commit we start support of standalone das executables. Das file can be compiled to standalone binary using LLVM backend. Note that we don't support yet: - global variables - some type related nodes, such as typeinfo For such cases `strict_mode` was introduced. You can disable it and hope that your code won't reach these instructions in runtime, otherwise `jit_trap` will be called if possible (if it's variable we can't do anything). By default this option enabled and not exposed to CodeOfPolicies.
…nst-infer fix: fuzzing bugs
Feature/standalone executable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )