-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Properly cache types for shared control flow nodes (#41665)
* Properly cache shared flow node types * Add test
- Loading branch information
1 parent
d5779c7
commit ec1490f
Showing
5 changed files
with
950 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
127 changes: 127 additions & 0 deletions
127
tests/baselines/reference/controlFlowManyCallExpressionStatementsPerf.js
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
//// [controlFlowManyCallExpressionStatementsPerf.ts] | ||
function test(x: boolean): boolean { return x; } | ||
|
||
let state = true; | ||
|
||
if (state) { | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
test(state as any && state); | ||
} | ||
|
||
|
||
//// [controlFlowManyCallExpressionStatementsPerf.js] | ||
"use strict"; | ||
function test(x) { return x; } | ||
var state = true; | ||
if (state) { | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
test(state && state); | ||
} |
Oops, something went wrong.