Unverified Commit e14054ac authored by Niklas Mischkulnig's avatar Niklas Mischkulnig Committed by GitHub

Turbopack: cache variables in linker (#75440)

Maintain a cache of `VariableId -> JsValue` (per-module), so that we
don't reevaluate variables (mostly, unless it's a local variable inside
a function call)

```
canary 82026906:
15,3gb
TURBO_ENGINE_READ_ONLY=1 NEXT_TURBOPACK_TRACING= TURBOPACK=1 TURBOPACK_BUILD=  501.72s user 108.30s system 760% cpu 1:20.26 total
TURBO_ENGINE_READ_ONLY=1 NEXT_TURBOPACK_TRACING= TURBOPACK=1 TURBOPACK_BUILD=  502.01s user 102.27s system 774% cpu 1:18.04 total

mischnic/analyzer-link-cache 66d7e1f00c:
15,3gb
TURBO_ENGINE_READ_ONLY=1 NEXT_TURBOPACK_TRACING= TURBOPACK=1 TURBOPACK_BUILD=  490.36s user 104.63s system 731% cpu 1:21.34 total
TURBO_ENGINE_READ_ONLY=1 NEXT_TURBOPACK_TRACING= TURBOPACK=1 TURBOPACK_BUILD=  489.22s user 106.89s system 780% cpu 1:16.39 total
```
parent 1bdc679b
...@@ -93,6 +93,7 @@ fn bench_link(b: &mut Bencher, input: &BenchInput) { ...@@ -93,6 +93,7 @@ fn bench_link(b: &mut Bencher, input: &BenchInput) {
.unwrap(); .unwrap();
b.to_async(rt).iter(|| async { b.to_async(rt).iter(|| async {
let var_cache = Default::default();
for val in input.var_graph.values.values() { for val in input.var_graph.values.values() {
VcStorage::with(async { VcStorage::with(async {
let compile_time_info = CompileTimeInfo::builder( let compile_time_info = CompileTimeInfo::builder(
...@@ -114,7 +115,8 @@ fn bench_link(b: &mut Bencher, input: &BenchInput) { ...@@ -114,7 +115,8 @@ fn bench_link(b: &mut Bencher, input: &BenchInput) {
val.clone(), val.clone(),
&early_visitor, &early_visitor,
&(|val| visitor(val, compile_time_info, ImportAttributes::empty_ref())), &(|val| visitor(val, compile_time_info, ImportAttributes::empty_ref())),
Default::default(), &Default::default(),
&var_cache,
) )
.await .await
}) })
......
...@@ -315,6 +315,7 @@ struct AnalysisState<'a> { ...@@ -315,6 +315,7 @@ struct AnalysisState<'a> {
/// This is the current state of known values of function /// This is the current state of known values of function
/// arguments. /// arguments.
fun_args_values: Mutex<FxHashMap<u32, Vec<JsValue>>>, fun_args_values: Mutex<FxHashMap<u32, Vec<JsValue>>>,
var_cache: Mutex<FxHashMap<Id, JsValue>>,
// There can be many references to import.meta, but only the first should hoist // There can be many references to import.meta, but only the first should hoist
// the object allocation. // the object allocation.
first_import_meta: bool, first_import_meta: bool,
...@@ -327,8 +328,7 @@ struct AnalysisState<'a> { ...@@ -327,8 +328,7 @@ struct AnalysisState<'a> {
impl AnalysisState<'_> { impl AnalysisState<'_> {
/// Links a value to the graph, returning the linked value. /// Links a value to the graph, returning the linked value.
async fn link_value(&self, value: JsValue, attributes: &ImportAttributes) -> Result<JsValue> { async fn link_value(&self, value: JsValue, attributes: &ImportAttributes) -> Result<JsValue> {
let fun_args_values = self.fun_args_values.lock().clone(); Ok(link(
link(
self.var_graph, self.var_graph,
value, value,
&early_value_visitor, &early_value_visitor,
...@@ -341,9 +341,11 @@ impl AnalysisState<'_> { ...@@ -341,9 +341,11 @@ impl AnalysisState<'_> {
attributes, attributes,
) )
}, },
fun_args_values, &self.fun_args_values,
&self.var_cache,
) )
.await .await?
.0)
} }
} }
...@@ -897,7 +899,8 @@ pub(crate) async fn analyse_ecmascript_module_internal( ...@@ -897,7 +899,8 @@ pub(crate) async fn analyse_ecmascript_module_internal(
origin, origin,
compile_time_info, compile_time_info,
var_graph: &var_graph, var_graph: &var_graph,
fun_args_values: Mutex::new(FxHashMap::<u32, Vec<JsValue>>::default()), fun_args_values: Default::default(),
var_cache: Default::default(),
first_import_meta: true, first_import_meta: true,
tree_shaking_mode: options.tree_shaking_mode, tree_shaking_mode: options.tree_shaking_mode,
import_externals: options.import_externals, import_externals: options.import_externals,
......
x = (1 | ???*0*) x = (1 | ???*0*)
- *0* y - *0* x
⚠️ circular variable reference ⚠️ circular variable reference
y = (1 | ???*0*) y = (1 | ???*0*)
- *0* x - *0* y
⚠️ circular variable reference ⚠️ circular variable reference
z = (1 | ???*0*) z = (1 | ???*0*)
......
a = ("" | `${("" | ???*0*)}x`) a = ("" | `${???*0*}x`)
- *0* `${???*1*}x` - *0* a
⚠️ nested operation
- *1* a
⚠️ circular variable reference ⚠️ circular variable reference
b = (0 | ???*0*) b = (0 | ???*0*)
......
...@@ -39,15 +39,15 @@ ...@@ -39,15 +39,15 @@
*arrow function 578* = (...) => 1 *arrow function 578* = (...) => 1
a = (1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | ???*0*) a = (1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | ???*0*)
- *0* b - *0* a
⚠️ circular variable reference ⚠️ circular variable reference
b = (4 | 5 | 6 | 7 | 8 | 9 | 1 | 2 | 3 | ???*0*) b = (4 | 5 | 6 | 7 | 8 | 9 | 1 | 2 | 3 | ???*0*)
- *0* c - *0* b
⚠️ circular variable reference ⚠️ circular variable reference
c = (7 | 8 | 9 | 1 | 2 | 3 | 4 | 5 | 6 | ???*0*) c = (7 | 8 | 9 | 1 | 2 | 3 | 4 | 5 | 6 | ???*0*)
- *0* a - *0* c
⚠️ circular variable reference ⚠️ circular variable reference
d = ???*0* d = ???*0*
......
...@@ -67,8 +67,8 @@ ...@@ -67,8 +67,8 @@
| [generateBinPath(), []] | [generateBinPath(), []]
)() )()
0 -> 21 member call = ???*0*["concat"]("--service=0.14.12", "--ping") 0 -> 21 member call = (["bin/esbuild"] | ???*0* | [])["concat"]("--service=0.14.12", "--ping")
- *0* max number of linking steps reached - *0* unknown mutation
⚠️ This value might have side effects ⚠️ This value might have side effects
0 -> 22 free var = FreeVar(require) 0 -> 22 free var = FreeVar(require)
......
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
| [generateBinPath(), []] | [generateBinPath(), []]
) )
args = ???*0* args = (["bin/esbuild"] | ???*0* | [])
- *0* max number of linking steps reached - *0* unknown mutation
⚠️ This value might have side effects ⚠️ This value might have side effects
binPath = (???*0* | ???*1* | ???*8*) binPath = (???*0* | ???*1* | ???*8*)
...@@ -59,8 +59,62 @@ binTargetPath = `"esbuild"/resolved/lib${("/" | "")}pnpapi-${(???*0* | ???*1* | ...@@ -59,8 +59,62 @@ binTargetPath = `"esbuild"/resolved/lib${("/" | "")}pnpapi-${(???*0* | ???*1* |
- *7* unknown mutation - *7* unknown mutation
⚠️ This value might have side effects ⚠️ This value might have side effects
command = ???*0* command = (
- *0* max number of linking steps reached | "node"
| ???*0*
| ???*1*
| `"esbuild"/resolved/lib${("/" | "")}pnpapi-${(???*2* | ???*3* | ???*4* | "esbuild-linux-64")}-${???*5*}`
| ???*10*
| ???*11*
| ???*18*
)
- *0* unknown mutation
⚠️ This value might have side effects
- *1* FreeVar(ESBUILD_BINARY_PATH)
⚠️ unknown global
⚠️ This value might have side effects
- *2* pkg
⚠️ pattern without value
- *3* FreeVar(undefined)
⚠️ unknown global
⚠️ This value might have side effects
- *4* unknown mutation
⚠️ This value might have side effects
- *5* ???*6*((???*8* | "esbuild.exe" | "bin/esbuild" | ???*9*))
⚠️ unknown callee
⚠️ This value might have side effects
- *6* path*7*["basename"]
⚠️ unsupported property on Node.js path module
⚠️ This value might have side effects
- *7* path: The Node.js path module: https://nodejs.org/api/path.html
- *8* subpath
⚠️ pattern without value
- *9* unknown mutation
⚠️ This value might have side effects
- *10* binPath
⚠️ pattern without value
- *11* require.resolve*12*(
`${(???*13* | ???*14* | ???*15* | "esbuild-linux-64")}/${(???*16* | "esbuild.exe" | "bin/esbuild" | ???*17*)}`
)
⚠️ require.resolve non constant
⚠️ This value might have side effects
- *12* require.resolve: The require.resolve method from CommonJS
- *13* pkg
⚠️ pattern without value
- *14* FreeVar(undefined)
⚠️ unknown global
⚠️ This value might have side effects
- *15* unknown mutation
⚠️ This value might have side effects
- *16* subpath
⚠️ pattern without value
- *17* unknown mutation
⚠️ This value might have side effects
- *18* ???*19*(pkg, subpath)
⚠️ unknown callee
⚠️ This value might have side effects
- *19* FreeVar(downloadedBinPath)
⚠️ unknown global
⚠️ This value might have side effects ⚠️ This value might have side effects
e#10 = ???*0* e#10 = ???*0*
...@@ -152,6 +206,9 @@ subpath#7 = (???*0* | "esbuild.exe" | "bin/esbuild" | ???*1*) ...@@ -152,6 +206,9 @@ subpath#7 = (???*0* | "esbuild.exe" | "bin/esbuild" | ???*1*)
- *1* unknown mutation - *1* unknown mutation
⚠️ This value might have side effects ⚠️ This value might have side effects
x = ???*0* x = (["bin/esbuild", "--service=0.14.12", "--ping"] | ???*0* | ["--service=0.14.12", "--ping"])
- *0* max number of linking steps reached - *0* ???*1*["concat"]("--service=0.14.12", "--ping")
⚠️ unknown callee object
⚠️ This value might have side effects
- *1* unknown mutation
⚠️ This value might have side effects ⚠️ This value might have side effects
...@@ -38,14 +38,10 @@ d#6 = ???*0* ...@@ -38,14 +38,10 @@ d#6 = ???*0*
- *0* arguments[3] - *0* arguments[3]
⚠️ function calls are not analysed yet ⚠️ function calls are not analysed yet
i = (???*0* | 0 | ((???*1* | 0 | ???*2*) + 16)) i = (???*0* | 0 | (???*1* + 16))
- *0* i - *0* i
⚠️ pattern without value ⚠️ pattern without value
- *1* i - *1* i
⚠️ pattern without value
- *2* (???*3* + 16)
⚠️ nested operation
- *3* i
⚠️ circular variable reference ⚠️ circular variable reference
len = ???*0* len = ???*0*
......
...@@ -135,40 +135,24 @@ i#3 = (0 | ???*0*) ...@@ -135,40 +135,24 @@ i#3 = (0 | ???*0*)
- *0* updated with update expression - *0* updated with update expression
⚠️ This value might have side effects ⚠️ This value might have side effects
i#5 = (???*0* | 0 | ((???*1* | 0 | ???*2*) + 8)) i#5 = (???*0* | 0 | (???*1* + 8))
- *0* i - *0* i
⚠️ pattern without value ⚠️ pattern without value
- *1* i - *1* i
⚠️ pattern without value
- *2* (???*3* + 8)
⚠️ nested operation
- *3* i
⚠️ circular variable reference ⚠️ circular variable reference
i#7 = (???*0* | 0 | ((???*1* | 0 | ???*2*) + 16)) i#7 = (???*0* | 0 | (???*1* + 16))
- *0* i - *0* i
⚠️ pattern without value ⚠️ pattern without value
- *1* i - *1* i
⚠️ pattern without value
- *2* (???*3* + 16)
⚠️ nested operation
- *3* i
⚠️ circular variable reference ⚠️ circular variable reference
i#9 = (???*0* | 0 | ((???*1* | 0 | ???*2*) + 1) | ((???*4* | 0 | ???*5*) + 8)) i#9 = (???*0* | 0 | (???*1* + 1) | (???*2* + 8))
- *0* i - *0* i
⚠️ pattern without value ⚠️ pattern without value
- *1* i - *1* i
⚠️ pattern without value
- *2* (???*3* + 1)
⚠️ nested operation
- *3* i
⚠️ circular variable reference ⚠️ circular variable reference
- *4* i - *2* i
⚠️ pattern without value
- *5* (???*6* + 1)
⚠️ nested operation
- *6* i
⚠️ circular variable reference ⚠️ circular variable reference
input#5 = ???*0* input#5 = ???*0*
......
...@@ -3095,9 +3095,15 @@ ...@@ -3095,9 +3095,15 @@
- *14* unsupported expression - *14* unsupported expression
⚠️ This value might have side effects ⚠️ This value might have side effects
0 -> 178 member call = module<crypt, {}>["endian"](???*0*) 0 -> 178 member call = module<crypt, {}>["endian"]([???*0*, ???*1*, ???*2*, ???*3*])
- *0* max number of linking steps reached - *0* max number of linking steps reached
⚠️ This value might have side effects ⚠️ This value might have side effects
- *1* max number of linking steps reached
⚠️ This value might have side effects
- *2* max number of linking steps reached
⚠️ This value might have side effects
- *3* max number of linking steps reached
⚠️ This value might have side effects
0 -> 179 unreachable = ???*0* 0 -> 179 unreachable = ???*0*
- *0* unreachable - *0* unreachable
......
...@@ -130,14 +130,10 @@ digestbytes = ???*0* ...@@ -130,14 +130,10 @@ digestbytes = ???*0*
- *0* max number of linking steps reached - *0* max number of linking steps reached
⚠️ This value might have side effects ⚠️ This value might have side effects
i = (0 | ???*0* | ((0 | ???*1* | ???*2*) + 16)) i = (0 | ???*0* | (???*1* + 16))
- *0* updated with update expression - *0* updated with update expression
⚠️ This value might have side effects ⚠️ This value might have side effects
- *1* updated with update expression - *1* i
⚠️ This value might have side effects
- *2* (???*3* + 16)
⚠️ nested operation
- *3* i
⚠️ circular variable reference ⚠️ circular variable reference
isBuffer = module<is-buffer, {}> isBuffer = module<is-buffer, {}>
...@@ -174,81 +170,33 @@ message#11 = ???*0* ...@@ -174,81 +170,33 @@ message#11 = ???*0*
message#4 = ( message#4 = (
| ???*0* | ???*0*
| module<charenc, {}>["bin"]["stringToBytes"]((???*1* | ???*2* | ???*4*)) | module<charenc, {}>["bin"]["stringToBytes"](???*1*)
| module<charenc, {}>["utf8"]["stringToBytes"]((???*8* | ???*9* | ???*11*)) | module<charenc, {}>["utf8"]["stringToBytes"](???*2*)
| ???*15* | ???*3*
| ???*19*() | ???*7*()
| ???*21*()
) )
- *0* arguments[0] - *0* arguments[0]
⚠️ function calls are not analysed yet ⚠️ function calls are not analysed yet
- *1* arguments[0] - *1* message
⚠️ function calls are not analysed yet
- *2* module<charenc, {}>["bin"]["stringToBytes"](???*3*)
⚠️ nested operation
- *3* message
⚠️ circular variable reference ⚠️ circular variable reference
- *4* ???*5*["call"](message, 0) - *2* message
⚠️ unknown callee object
⚠️ This value might have side effects
- *5* ???*6*["slice"]
⚠️ unknown object
⚠️ This value might have side effects
- *6* ???*7*["prototype"]
⚠️ unknown object
⚠️ This value might have side effects
- *7* FreeVar(Array)
⚠️ unknown global
⚠️ This value might have side effects
- *8* arguments[0]
⚠️ function calls are not analysed yet
- *9* module<charenc, {}>["bin"]["stringToBytes"](???*10*)
⚠️ nested operation
- *10* message
⚠️ circular variable reference ⚠️ circular variable reference
- *11* ???*12*["call"](message, 0) - *3* ???*4*["call"](message, 0)
⚠️ unknown callee object
⚠️ This value might have side effects
- *12* ???*13*["slice"]
⚠️ unknown object
⚠️ This value might have side effects
- *13* ???*14*["prototype"]
⚠️ unknown object
⚠️ This value might have side effects
- *14* FreeVar(Array)
⚠️ unknown global
⚠️ This value might have side effects
- *15* ???*16*["call"](message, 0)
⚠️ unknown callee object ⚠️ unknown callee object
⚠️ This value might have side effects ⚠️ This value might have side effects
- *16* ???*17*["slice"] - *4* ???*5*["slice"]
⚠️ unknown object ⚠️ unknown object
⚠️ This value might have side effects ⚠️ This value might have side effects
- *17* ???*18*["prototype"] - *5* ???*6*["prototype"]
⚠️ unknown object ⚠️ unknown object
⚠️ This value might have side effects ⚠️ This value might have side effects
- *18* FreeVar(Array) - *6* FreeVar(Array)
⚠️ unknown global ⚠️ unknown global
⚠️ This value might have side effects ⚠️ This value might have side effects
- *19* ???*20*["toString"] - *7* ???*8*["toString"]
⚠️ unknown object ⚠️ unknown object
- *20* arguments[0] - *8* message
⚠️ function calls are not analysed yet ⚠️ circular variable reference
- *21* ???*22*["toString"]
⚠️ unknown object
⚠️ This value might have side effects
- *22* ???*23*["call"](message, 0)
⚠️ unknown callee object
⚠️ This value might have side effects
- *23* ???*24*["slice"]
⚠️ unknown object
⚠️ This value might have side effects
- *24* ???*25*["prototype"]
⚠️ unknown object
⚠️ This value might have side effects
- *25* FreeVar(Array)
⚠️ unknown global
⚠️ This value might have side effects
n#10 = (???*0* + ???*1* + ???*2* + ???*3*) n#10 = (???*0* + ???*1* + ???*2* + ???*3*)
- *0* arguments[0] - *0* arguments[0]
......
...@@ -10,14 +10,10 @@ args = ???*0* ...@@ -10,14 +10,10 @@ args = ???*0*
- *0* args - *0* args
⚠️ pattern without value ⚠️ pattern without value
clientComponentLoadTimes = (0 | ((0 | ???*0*) + ???*3*)) clientComponentLoadTimes = (0 | (???*0* + ???*1*))
- *0* (???*1* + ???*2*) - *0* clientComponentLoadTimes
⚠️ nested operation
- *1* clientComponentLoadTimes
⚠️ circular variable reference ⚠️ circular variable reference
- *2* unsupported expression - *1* unsupported expression
⚠️ This value might have side effects
- *3* unsupported expression
⚠️ This value might have side effects ⚠️ This value might have side effects
getClientComponentLoaderMetrics = (...) => metrics getClientComponentLoaderMetrics = (...) => metrics
......
...@@ -326,31 +326,19 @@ descriptions = new ???*0*(???*1*) ...@@ -326,31 +326,19 @@ descriptions = new ???*0*(???*1*)
- *2* arguments[0] - *2* arguments[0]
⚠️ function calls are not analysed yet ⚠️ function calls are not analysed yet
details = ( details = ({"line": 1, "column": 1} | ???*0* | {"line": ???*2*, "column": ???*4*})
| {"line": 1, "column": 1}
| ???*0*
| {"line": (1 | ???*2* | ???*3*), "column": (1 | ???*6* | ???*7*)}
)
- *0* [][???*1*] - *0* [][???*1*]
⚠️ unknown array prototype methods or values ⚠️ unknown array prototype methods or values
- *1* arguments[0] - *1* arguments[0]
⚠️ function calls are not analysed yet ⚠️ function calls are not analysed yet
- *2* unknown mutation - *2* ???*3*["line"]
⚠️ This value might have side effects
- *3* ???*4*["line"]
⚠️ unknown object ⚠️ unknown object
- *4* [][???*5*] - *3* details
⚠️ unknown array prototype methods or values ⚠️ circular variable reference
- *5* arguments[0] - *4* ???*5*["column"]
⚠️ function calls are not analysed yet
- *6* unknown mutation
⚠️ This value might have side effects
- *7* ???*8*["column"]
⚠️ unknown object ⚠️ unknown object
- *8* [][???*9*] - *5* details
⚠️ unknown array prototype methods or values ⚠️ circular variable reference
- *9* arguments[0]
⚠️ function calls are not analysed yet
digits = ???*0* digits = ???*0*
- *0* arguments[0] - *0* arguments[0]
...@@ -384,56 +372,34 @@ endPosDetails = (undefined | {"line": 1, "column": 1} | ???*0* | {"line": ???*2* ...@@ -384,56 +372,34 @@ endPosDetails = (undefined | {"line": 1, "column": 1} | ???*0* | {"line": ???*2*
error = (...) => undefined error = (...) => undefined
escapedParts = ("" | (("" | ???*0*) + ???*12*)) escapedParts = ("" | (???*0* + ???*1*))
- *0* (???*1* + ???*2*) - *0* escapedParts
⚠️ nested operation
- *1* escapedParts
⚠️ circular variable reference ⚠️ circular variable reference
- *2* (???*3* ? ???*4* : ???*9*) - *1* (???*2* ? ???*3* : ???*10*)
⚠️ nested operation ⚠️ nested operation
- *3* unsupported expression - *2* unsupported expression
⚠️ This value might have side effects ⚠️ This value might have side effects
- *4* `${???*5*}-${???*7*}` - *3* `${???*4*}-${???*7*}`
⚠️ nested operation ⚠️ nested operation
- *5* ???*6*["replace"](/[\x10-\x1F\x7F-\x9F]/g, *anonymous function 2385*) - *4* ???*5*["replace"](/[\x10-\x1F\x7F-\x9F]/g, *anonymous function 2385*)
⚠️ unknown callee object
- *6* ???["replace"](/[\x00-\x0F]/g, *anonymous function 2287*)
⚠️ unknown callee object
- *7* ???*8*["replace"](/[\x10-\x1F\x7F-\x9F]/g, *anonymous function 2385*)
⚠️ unknown callee object ⚠️ unknown callee object
- *8* ???["replace"](/[\x00-\x0F]/g, *anonymous function 2287*) - *5* ???*6*["replace"](/[\x00-\x0F]/g, *anonymous function 2287*)
⚠️ unknown callee object ⚠️ unknown callee object
- *9* ???*10*["replace"](/[\x10-\x1F\x7F-\x9F]/g, *anonymous function 2385*) - *6* ???["replace"](/\r/g, "\\r")
⚠️ unknown callee object ⚠️ unknown callee object
- *10* ???*11*["replace"](/[\x00-\x0F]/g, *anonymous function 2287*) - *7* ???*8*["replace"](/[\x10-\x1F\x7F-\x9F]/g, *anonymous function 2385*)
⚠️ unknown callee object
- *11* ???["replace"](/\r/g, "\\r")
⚠️ unknown callee object
- *12* (???*13* ? ???*14* : ???*21*)
⚠️ nested operation
- *13* unsupported expression
⚠️ This value might have side effects
- *14* `${???*15*}-${???*18*}`
⚠️ nested operation
- *15* ???*16*["replace"](/[\x10-\x1F\x7F-\x9F]/g, *anonymous function 2385*)
⚠️ unknown callee object
- *16* ???*17*["replace"](/[\x00-\x0F]/g, *anonymous function 2287*)
⚠️ unknown callee object
- *17* ???["replace"](/\r/g, "\\r")
⚠️ unknown callee object
- *18* ???*19*["replace"](/[\x10-\x1F\x7F-\x9F]/g, *anonymous function 2385*)
⚠️ unknown callee object ⚠️ unknown callee object
- *19* ???*20*["replace"](/[\x00-\x0F]/g, *anonymous function 2287*) - *8* ???*9*["replace"](/[\x00-\x0F]/g, *anonymous function 2287*)
⚠️ unknown callee object ⚠️ unknown callee object
- *20* ???["replace"](/\r/g, "\\r") - *9* ???["replace"](/\r/g, "\\r")
⚠️ unknown callee object ⚠️ unknown callee object
- *21* ???*22*["replace"](/[\x10-\x1F\x7F-\x9F]/g, *anonymous function 2385*) - *10* ???*11*["replace"](/[\x10-\x1F\x7F-\x9F]/g, *anonymous function 2385*)
⚠️ unknown callee object ⚠️ unknown callee object
- *22* ???*23*["replace"](/[\x00-\x0F]/g, *anonymous function 2287*) - *11* ???*12*["replace"](/[\x00-\x0F]/g, *anonymous function 2287*)
⚠️ unknown callee object ⚠️ unknown callee object
- *23* ???*24*["replace"](/\r/g, "\\r") - *12* ???*13*["replace"](/\r/g, "\\r")
⚠️ unknown callee object ⚠️ unknown callee object
- *24* ???["replace"](/\n/g, "\\n") - *13* ???["replace"](/\n/g, "\\n")
⚠️ unknown callee object ⚠️ unknown callee object
expectation#11 = ???*0* expectation#11 = ???*0*
...@@ -728,36 +694,16 @@ operator#87 = ???*0* ...@@ -728,36 +694,16 @@ operator#87 = ???*0*
- *0* arguments[0] - *0* arguments[0]
⚠️ function calls are not analysed yet ⚠️ function calls are not analysed yet
options = (???*0* | (???*1* ? (???*9* | ???*10*) : {})) options = (???*0* | (???*1* ? ???*4* : {}))
- *0* arguments[1] - *0* arguments[1]
⚠️ function calls are not analysed yet ⚠️ function calls are not analysed yet
- *1* ((???*2* | ???*3*) !== ???*8*) - *1* (???*2* !== ???*3*)
⚠️ nested operation
- *2* arguments[1]
⚠️ function calls are not analysed yet
- *3* (???*4* ? ???*7* : {})
⚠️ nested operation
- *4* (???*5* !== ???*6*)
⚠️ nested operation
- *5* options
⚠️ circular variable reference
- *6* unsupported expression
⚠️ This value might have side effects
- *7* options
⚠️ circular variable reference
- *8* unsupported expression
⚠️ This value might have side effects
- *9* arguments[1]
⚠️ function calls are not analysed yet
- *10* (???*11* ? ???*14* : {})
⚠️ nested operation ⚠️ nested operation
- *11* (???*12* !== ???*13*) - *2* options
⚠️ nested operation
- *12* options
⚠️ circular variable reference ⚠️ circular variable reference
- *13* unsupported expression - *3* unsupported expression
⚠️ This value might have side effects ⚠️ This value might have side effects
- *14* options - *4* options
⚠️ circular variable reference ⚠️ circular variable reference
order = ???*0* order = ???*0*
...@@ -2177,21 +2123,12 @@ s1#609 = ???*0* ...@@ -2177,21 +2123,12 @@ s1#609 = ???*0*
- *0* max number of linking steps reached - *0* max number of linking steps reached
⚠️ This value might have side effects ⚠️ This value might have side effects
s1#617 = ( s1#617 = (???*0* | "--" | {} | [???*1*, (???*2* | [])])
| ???*0*
| "--"
| {}
| [(???*1* | "--" | {} | [???*2*, (???*3* | [])]), (???*4* | [])]
)
- *0* s1 - *0* s1
⚠️ pattern without value ⚠️ pattern without value
- *1* s1 - *1* s1
⚠️ pattern without value
- *2* s1
⚠️ circular variable reference ⚠️ circular variable reference
- *3* s2 - *2* s2
⚠️ pattern without value
- *4* s2
⚠️ pattern without value ⚠️ pattern without value
s1#644 = ???*0* s1#644 = ???*0*
...@@ -2306,12 +2243,7 @@ s1#886 = ???*0* ...@@ -2306,12 +2243,7 @@ s1#886 = ???*0*
- *0* max number of linking steps reached - *0* max number of linking steps reached
⚠️ This value might have side effects ⚠️ This value might have side effects
s1#897 = ( s1#897 = (???*0* | ???*1* | {} | (???*3* + (???*4* | ???*6*)))
| ???*0*
| ???*1*
| {}
| ((???*3* | ???*4* | {} | ???*6*) + (???*12* | ???*14*))
)
- *0* s1 - *0* s1
⚠️ pattern without value ⚠️ pattern without value
- *1* ???*2*["charAt"](peg$currPos) - *1* ???*2*["charAt"](peg$currPos)
...@@ -2319,30 +2251,14 @@ s1#897 = ( ...@@ -2319,30 +2251,14 @@ s1#897 = (
- *2* arguments[0] - *2* arguments[0]
⚠️ function calls are not analysed yet ⚠️ function calls are not analysed yet
- *3* s1 - *3* s1
⚠️ pattern without value
- *4* ???*5*["charAt"](peg$currPos)
⚠️ unknown callee object
- *5* arguments[0]
⚠️ function calls are not analysed yet
- *6* (???*7* + (???*8* | ???*10*))
⚠️ nested operation
- *7* s1
⚠️ circular variable reference ⚠️ circular variable reference
- *8* ???*9*["join"]("") - *4* ???*5*["join"]("")
⚠️ unknown callee object
- *9* s2
⚠️ pattern without value
- *10* ???*11*("")
⚠️ unknown callee
- *11* []["join"]
⚠️ non-num constant property on array
- *12* ???*13*["join"]("")
⚠️ unknown callee object ⚠️ unknown callee object
- *13* s2 - *5* s2
⚠️ pattern without value ⚠️ pattern without value
- *14* ???*15*("") - *6* ???*7*("")
⚠️ unknown callee ⚠️ unknown callee
- *15* []["join"] - *7* []["join"]
⚠️ non-num constant property on array ⚠️ non-num constant property on array
s1#909 = (???*0* | "@" | {} | {"type": "parameter_name", "name": ???*1*}) s1#909 = (???*0* | "@" | {} | {"type": "parameter_name", "name": ???*1*})
...@@ -3037,17 +2953,7 @@ s4#1031 = ( ...@@ -3037,17 +2953,7 @@ s4#1031 = (
| ???*0* | ???*0*
| ???*1* | ???*1*
| {} | {}
| [ | [???*3*, (???*4* | ???*5* | {}), (???*7* | ???*8* | {}), (???*10* | ???*11* | {})]
(
| ???*3*
| ???*4*
| {}
| [???*6*, (???*7* | ???*8* | {}), (???*10* | ???*11* | {}), (???*13* | ???*14* | {})]
),
(???*16* | ???*17* | {}),
(???*19* | ???*20* | {}),
(???*22* | ???*23* | {})
]
) )
- *0* s4 - *0* s4
⚠️ pattern without value ⚠️ pattern without value
...@@ -3056,49 +2962,25 @@ s4#1031 = ( ...@@ -3056,49 +2962,25 @@ s4#1031 = (
- *2* arguments[0] - *2* arguments[0]
⚠️ function calls are not analysed yet ⚠️ function calls are not analysed yet
- *3* s4 - *3* s4
⚠️ circular variable reference
- *4* s5
⚠️ pattern without value ⚠️ pattern without value
- *4* ???*5*["charAt"](peg$currPos) - *5* ???*6*["charAt"](peg$currPos)
⚠️ unknown callee object ⚠️ unknown callee object
- *5* arguments[0] - *6* arguments[0]
⚠️ function calls are not analysed yet ⚠️ function calls are not analysed yet
- *6* s4 - *7* s6
⚠️ circular variable reference
- *7* s5
⚠️ pattern without value ⚠️ pattern without value
- *8* ???*9*["charAt"](peg$currPos) - *8* ???*9*["charAt"](peg$currPos)
⚠️ unknown callee object ⚠️ unknown callee object
- *9* arguments[0] - *9* arguments[0]
⚠️ function calls are not analysed yet ⚠️ function calls are not analysed yet
- *10* s6 - *10* s7
⚠️ pattern without value ⚠️ pattern without value
- *11* ???*12*["charAt"](peg$currPos) - *11* ???*12*["charAt"](peg$currPos)
⚠️ unknown callee object ⚠️ unknown callee object
- *12* arguments[0] - *12* arguments[0]
⚠️ function calls are not analysed yet ⚠️ function calls are not analysed yet
- *13* s7
⚠️ pattern without value
- *14* ???*15*["charAt"](peg$currPos)
⚠️ unknown callee object
- *15* arguments[0]
⚠️ function calls are not analysed yet
- *16* s5
⚠️ pattern without value
- *17* ???*18*["charAt"](peg$currPos)
⚠️ unknown callee object
- *18* arguments[0]
⚠️ function calls are not analysed yet
- *19* s6
⚠️ pattern without value
- *20* ???*21*["charAt"](peg$currPos)
⚠️ unknown callee object
- *21* arguments[0]
⚠️ function calls are not analysed yet
- *22* s7
⚠️ pattern without value
- *23* ???*24*["charAt"](peg$currPos)
⚠️ unknown callee object
- *24* arguments[0]
⚠️ function calls are not analysed yet
s4#1053 = ???*0* s4#1053 = ???*0*
- *0* max number of linking steps reached - *0* max number of linking steps reached
...@@ -3360,21 +3242,12 @@ s5#419 = (???*0* | "]" | {}) ...@@ -3360,21 +3242,12 @@ s5#419 = (???*0* | "]" | {})
- *0* s5 - *0* s5
⚠️ pattern without value ⚠️ pattern without value
s5#454 = ( s5#454 = (???*0* | "." | {} | [???*1*, (???*2* | [] | {})])
| ???*0*
| "."
| {}
| [(???*1* | "." | {} | [???*2*, (???*3* | [] | {})]), (???*4* | [] | {})]
)
- *0* s5 - *0* s5
⚠️ pattern without value ⚠️ pattern without value
- *1* s5 - *1* s5
⚠️ pattern without value
- *2* s5
⚠️ circular variable reference ⚠️ circular variable reference
- *3* s6 - *2* s6
⚠️ pattern without value
- *4* s6
⚠️ pattern without value ⚠️ pattern without value
s5#525 = ???*0* s5#525 = ???*0*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment