Commit 2ad665e
deps: V8: cherry-pick efb1133eb894
Original commit message:
[api] Add v8::ScriptCompiler::CachedData::CompatibilityCheck()
This patch adds a new API v8::ScriptCompiler::CachedData::CompatibilityCheck()
in order to allow embedders to check if the code cache can be used in
the current isolate without looking up for the source code. It also returns more detailed reasons about why the code cache cannot be used
when it's bound to be rejected. This makes it possible to enforce
portability checks in case code code becomes CPU-dependent in the
future.
Refs: #42566 (comment)
Change-Id: Ia1d677b949050add961af6fbf62c44342c061312
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4905290
Reviewed-by: Marja Hölttä <marja@chromium.org>
Reviewed-by: Toon Verwaest <verwaest@chromium.org>
Commit-Queue: Joyee Cheung <joyee@igalia.com>
Cr-Commit-Position: refs/heads/main@{#90833}
Refs: v8/v8@efb1133
PR-URL: #51551
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>1 parent 6603d32 commit 2ad665eCopy full SHA for 2ad665e
File tree
Expand file treeCollapse file tree
5 files changed
+109
-17
lines changedOpen diff view settings
Filter options
- deps/v8
- include
- src
- api
- snapshot
- test/cctest
Expand file treeCollapse file tree
5 files changed
+109
-17
lines changedOpen diff view settings
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
36 | 36 | |
37 | 37 | |
38 | 38 | |
39 | | - |
| 39 | + |
40 | 40 | |
41 | 41 | |
42 | 42 | |
|
Collapse file
deps/v8/include/v8-script.h
Copy file name to clipboardExpand all lines: deps/v8/include/v8-script.h+21Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
388 | 388 | |
389 | 389 | |
390 | 390 | |
| 391 | + |
| 392 | + |
| 393 | + |
| 394 | + |
| 395 | + |
| 396 | + |
| 397 | + |
| 398 | + |
| 399 | + |
| 400 | + |
| 401 | + |
| 402 | + |
| 403 | + |
| 404 | + |
| 405 | + |
| 406 | + |
| 407 | + |
| 408 | + |
| 409 | + |
| 410 | + |
| 411 | + |
391 | 412 | |
392 | 413 | |
393 | 414 | |
|
Collapse file
+12Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1950 | 1950 | |
1951 | 1951 | |
1952 | 1952 | |
| 1953 | + |
| 1954 | + |
| 1955 | + |
| 1956 | + |
| 1957 | + |
| 1958 | + |
| 1959 | + |
| 1960 | + |
| 1961 | + |
| 1962 | + |
| 1963 | + |
| 1964 | + |
1953 | 1965 | |
1954 | 1966 | |
1955 | 1967 | |
|
Collapse file
deps/v8/src/snapshot/code-serializer.h
Copy file name to clipboardExpand all lines: deps/v8/src/snapshot/code-serializer.h+3-16Lines changed: 3 additions & 16 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
49 | 49 | |
50 | 50 | |
51 | 51 | |
52 | | - |
53 | | - |
54 | | - |
55 | | - |
56 | | - |
57 | | - |
58 | | - |
59 | | - |
60 | | - |
61 | | - |
62 | | - |
63 | | - |
64 | | - |
65 | | - |
66 | | - |
67 | | - |
| 52 | + |
| 53 | + |
| 54 | + |
68 | 55 | |
69 | 56 | |
70 | 57 | |
|
Collapse file
deps/v8/test/cctest/test-serialize.cc
Copy file name to clipboardExpand all lines: deps/v8/test/cctest/test-serialize.cc+72Lines changed: 72 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2790 | 2790 | |
2791 | 2791 | |
2792 | 2792 | |
| 2793 | + |
| 2794 | + |
| 2795 | + |
| 2796 | + |
| 2797 | + |
| 2798 | + |
| 2799 | + |
| 2800 | + |
| 2801 | + |
| 2802 | + |
| 2803 | + |
| 2804 | + |
| 2805 | + |
| 2806 | + |
| 2807 | + |
| 2808 | + |
| 2809 | + |
| 2810 | + |
| 2811 | + |
| 2812 | + |
| 2813 | + |
| 2814 | + |
| 2815 | + |
| 2816 | + |
| 2817 | + |
| 2818 | + |
| 2819 | + |
| 2820 | + |
| 2821 | + |
| 2822 | + |
| 2823 | + |
| 2824 | + |
| 2825 | + |
| 2826 | + |
| 2827 | + |
| 2828 | + |
| 2829 | + |
| 2830 | + |
| 2831 | + |
| 2832 | + |
| 2833 | + |
| 2834 | + |
| 2835 | + |
| 2836 | + |
| 2837 | + |
| 2838 | + |
| 2839 | + |
| 2840 | + |
| 2841 | + |
| 2842 | + |
| 2843 | + |
| 2844 | + |
| 2845 | + |
| 2846 | + |
| 2847 | + |
| 2848 | + |
| 2849 | + |
| 2850 | + |
| 2851 | + |
| 2852 | + |
| 2853 | + |
| 2854 | + |
| 2855 | + |
| 2856 | + |
| 2857 | + |
| 2858 | + |
| 2859 | + |
| 2860 | + |
| 2861 | + |
| 2862 | + |
| 2863 | + |
| 2864 | + |
2793 | 2865 | |
2794 | 2866 | |
2795 | 2867 | |
|
0 commit comments