Commit 583b81c
[types] Add enum type
Enums (called enumerations, to avoid a conflict with the swift keyword
"enum") are implemented as strings with a TypeExtension. The list of all
possible values of the enum are encoded in the "properties" field of the
TypeExtension.
Additionally, ProgramBuilder.findOrGenerateType is extended to only pick
the allowed values in case the requested type is an enumeration.
Change-Id: Ic9021314b9b884daffb6f47468032051755369fd
Reviewed-on: https://chrome-internal-review.googlesource.com/c/v8/fuzzilli/+/7970028
Reviewed-by: Carl Smith <[email protected]>
Commit-Queue: Andreas Haas <[email protected]>1 parent bb0b272 commit 583b81c
File tree
4 files changed
+62
-14
lines changed- Sources
- FuzzilliCli/Profiles
- Fuzzilli
- Base
- FuzzIL
- Tests/FuzzilliTests
4 files changed
+62
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
562 | 562 | | |
563 | 563 | | |
564 | 564 | | |
565 | | - | |
| 565 | + | |
566 | 566 | | |
567 | 567 | | |
568 | 568 | | |
| |||
581 | 581 | | |
582 | 582 | | |
583 | 583 | | |
584 | | - | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
585 | 589 | | |
586 | 590 | | |
587 | 591 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
154 | 160 | | |
155 | 161 | | |
156 | 162 | | |
| |||
369 | 375 | | |
370 | 376 | | |
371 | 377 | | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
372 | 382 | | |
373 | 383 | | |
374 | 384 | | |
| |||
425 | 435 | | |
426 | 436 | | |
427 | 437 | | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
428 | 442 | | |
429 | 443 | | |
430 | 444 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
107 | 103 | | |
108 | 104 | | |
109 | 105 | | |
| |||
427 | 423 | | |
428 | 424 | | |
429 | 425 | | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
430 | 429 | | |
431 | 430 | | |
432 | 431 | | |
| |||
438 | 437 | | |
439 | 438 | | |
440 | 439 | | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
441 | 447 | | |
442 | 448 | | |
443 | 449 | | |
| |||
733 | 739 | | |
734 | 740 | | |
735 | 741 | | |
736 | | - | |
| 742 | + | |
737 | 743 | | |
738 | 744 | | |
739 | 745 | | |
740 | 746 | | |
741 | | - | |
| 747 | + | |
742 | 748 | | |
743 | 749 | | |
744 | 750 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2605 | 2605 | | |
2606 | 2606 | | |
2607 | 2607 | | |
| 2608 | + | |
| 2609 | + | |
| 2610 | + | |
| 2611 | + | |
| 2612 | + | |
| 2613 | + | |
| 2614 | + | |
| 2615 | + | |
| 2616 | + | |
| 2617 | + | |
| 2618 | + | |
| 2619 | + | |
| 2620 | + | |
| 2621 | + | |
| 2622 | + | |
| 2623 | + | |
| 2624 | + | |
| 2625 | + | |
| 2626 | + | |
| 2627 | + | |
| 2628 | + | |
| 2629 | + | |
| 2630 | + | |
| 2631 | + | |
2608 | 2632 | | |
0 commit comments