[pull] master from GaijinEntertainment:master#693
Merged
Conversation
Code in inscope_return_inscope.das contained UB, code like:
```
[sideeffects]
def buggy(skip : bool) {
var a = new Foo
if (skip) {
return
}
var b = new Foo
} finally {
unsafe {
delete a
delete b
}
}
```
Sometimes it crashed, because b is uninitialized and when delete
was called it was treated as initialized.
More specifically it crashed when `daScriptTest` was called with
all the JIT optimizations disabled (LLVM_ENABLE_OPT_PASS=false)
and daslang built in Release or RelWithDebInfo.
Now we can JIT for loops which iterates over strings.
We want to check whether function a jit function even if JIT module is not available, same way we check is_jit_enabled. Let's move is_jit_function to module_builtin_runtime.
We are no longer needed cpp module for JIT at all.
- Add missed delete - Add nan check, since nan != nan - Remove all JIT related stuff, it's useless with last JIT updates
UBSAN complains about values in test type_constructors being out of range. This test file was commented until we'll fix this issue.
No more cpp jit
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 : )