| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -42,7 +42,6 @@ | |||
| 42 | 42 | # Flags from YCM's default config. | |
| 43 | 43 | flags = [ | |
| 44 | 44 | '-DUSE_CLANG_COMPLETER', | |
| 45 | - '-std=gnu++14', | ||
| 46 | 45 | '-x', | |
| 47 | 46 | 'c++', | |
| 48 | 47 | ] | |
@@ -143,25 +142,27 @@ def GetClangCommandFromNinjaForFilename(v8_root, filename): | |||
| 143 | 142 | # Parse flags that are important for YCM's purposes. | |
| 144 | 143 | for flag in clang_line.split(' '): | |
| 145 | 144 | if flag.startswith('-I'): | |
| 146 | - # Relative paths need to be resolved, because they're relative to the | ||
| 147 | - # output dir, not the source. | ||
| 148 | - if flag[2] == '/': | ||
| 149 | - v8_flags.append(flag) | ||
| 150 | - else: | ||
| 151 | - abs_path = os.path.normpath(os.path.join(out_dir, flag[2:])) | ||
| 152 | - v8_flags.append('-I' + abs_path) | ||
| 153 | - elif flag.startswith('-std'): | ||
| 145 | + v8_flags.append(MakeIncludePathAbsolute(flag, "-I", out_dir)) | ||
| 146 | + elif flag.startswith('-isystem'): | ||
| 147 | + v8_flags.append(MakeIncludePathAbsolute(flag, "-isystem", out_dir)) | ||
| 148 | + elif flag.startswith('-std') or flag.startswith( | ||
| 149 | + '-pthread') or flag.startswith('-no'): | ||
| 154 | 150 | v8_flags.append(flag) | |
| 155 | - elif flag.startswith('-') and flag[1] in 'DWFfmO': | ||
| 156 | - if flag == '-Wno-deprecated-register' or flag == '-Wno-header-guard': | ||
| 157 | - # These flags causes libclang (3.3) to crash. Remove it until things | ||
| 158 | - # are fixed. | ||
| 159 | - continue | ||
| 151 | + elif flag.startswith('-') and flag[1] in 'DWFfmgOX': | ||
| 160 | 152 | v8_flags.append(flag) | |
| 161 | - | ||
| 162 | 153 | return v8_flags | |
| 163 | 154 | ||
| 164 | 155 | ||
| 156 | + def MakeIncludePathAbsolute(flag, prefix, out_dir): | ||
| 157 | + # Relative paths need to be resolved, because they're relative to the | ||
| 158 | + # output dir, not the source. | ||
| 159 | + if flag[len(prefix)] == '/': | ||
| 160 | + return flag | ||
| 161 | + else: | ||
| 162 | + abs_path = os.path.normpath(os.path.join(out_dir, flag[len(prefix):])) | ||
| 163 | + return prefix + abs_path | ||
| 164 | + | ||
| 165 | + | ||
| 165 | 166 | def FlagsForFile(filename): | |
| 166 | 167 | """This is the main entry point for YCM. Its interface is fixed. | |
| 167 | 168 | ||
@@ -180,3 +181,9 @@ def FlagsForFile(filename): | |||
| 180 | 181 | 'flags': final_flags, | |
| 181 | 182 | 'do_cache': True | |
| 182 | 183 | } | |
| 184 | + | ||
| 185 | + | ||
| 186 | + def Settings(**kwargs): | ||
| 187 | + if kwargs['language'] == 'cfamily': | ||
| 188 | + return FlagsForFile(kwargs['filename']) | ||
| 189 | + return {} | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -114,6 +114,7 @@ Fedor Indutny <fedor@indutny.com> | |||
| 114 | 114 | Felix Geisendörfer <haimuiba@gmail.com> | |
| 115 | 115 | Feng Yu <f3n67u@gmail.com> | |
| 116 | 116 | Filipe David Manana <fdmanana@gmail.com> | |
| 117 | + Frank Lemanschik <frank@dspeed.eu> | ||
| 117 | 118 | Franziska Hinkelmann <franziska.hinkelmann@gmail.com> | |
| 118 | 119 | Gao Sheng <gaosheng08@meituan.com> | |
| 119 | 120 | Geoffrey Garside <ggarside@gmail.com> | |
@@ -152,6 +153,7 @@ Jiaxun Yang <jiaxun.yang@flygoat.com> | |||
| 152 | 153 | Joel Stanley <joel@jms.id.au> | |
| 153 | 154 | Johan Bergström <johan@bergstroem.nu> | |
| 154 | 155 | Jonathan Liu <net147@gmail.com> | |
| 156 | + Juan Arboleda <soyjuanarbol@gmail.com> | ||
| 155 | 157 | Julien Brianceau <jbriance@cisco.com> | |
| 156 | 158 | JunHo Seo <sejunho@gmail.com> | |
| 157 | 159 | Junha Park <jpark3@scu.edu> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -39,6 +39,7 @@ load(":bazel/v8-non-pointer-compression.bzl", "v8_binary_non_pointer_compression | |||
| 39 | 39 | # v8_enable_trace_baseline_exec | |
| 40 | 40 | # v8_enable_trace_feedback_updates | |
| 41 | 41 | # v8_enable_atomic_object_field_writes | |
| 42 | + # v8_enable_conservative_stack_scanning | ||
| 42 | 43 | # v8_enable_concurrent_marking | |
| 43 | 44 | # v8_enable_ignition_dispatch_counting | |
| 44 | 45 | # v8_enable_builtins_profiling | |
@@ -1381,6 +1382,8 @@ filegroup( | |||
| 1381 | 1382 | "src/handles/global-handles-inl.h", | |
| 1382 | 1383 | "src/handles/global-handles.cc", | |
| 1383 | 1384 | "src/handles/global-handles.h", | |
| 1385 | + "src/handles/traced-handles.cc", | ||
| 1386 | + "src/handles/traced-handles.h", | ||
| 1384 | 1387 | "src/handles/handles-inl.h", | |
| 1385 | 1388 | "src/handles/handles.cc", | |
| 1386 | 1389 | "src/handles/handles.h", | |
@@ -1963,6 +1966,7 @@ filegroup( | |||
| 1963 | 1966 | "src/profiler/heap-snapshot-generator-inl.h", | |
| 1964 | 1967 | "src/profiler/heap-snapshot-generator.cc", | |
| 1965 | 1968 | "src/profiler/heap-snapshot-generator.h", | |
| 1969 | + "src/profiler/output-stream-writer.h", | ||
| 1966 | 1970 | "src/profiler/profile-generator-inl.h", | |
| 1967 | 1971 | "src/profiler/profile-generator.cc", | |
| 1968 | 1972 | "src/profiler/profile-generator.h", | |
@@ -2664,6 +2668,8 @@ filegroup( | |||
| 2664 | 2668 | "src/compiler/all-nodes.h", | |
| 2665 | 2669 | "src/compiler/allocation-builder.h", | |
| 2666 | 2670 | "src/compiler/allocation-builder-inl.h", | |
| 2671 | + "src/compiler/backend/bitcast-elider.cc", | ||
| 2672 | + "src/compiler/backend/bitcast-elider.h", | ||
| 2667 | 2673 | "src/compiler/backend/code-generator.cc", | |
| 2668 | 2674 | "src/compiler/backend/code-generator.h", | |
| 2669 | 2675 | "src/compiler/backend/code-generator-impl.h", | |
@@ -2887,7 +2893,7 @@ filegroup( | |||
| 2887 | 2893 | "src/compiler/turboshaft/graph.h", | |
| 2888 | 2894 | "src/compiler/turboshaft/graph-visualizer.cc", | |
| 2889 | 2895 | "src/compiler/turboshaft/graph-visualizer.h", | |
| 2890 | - "src/compiler/turboshaft/machine-optimization-assembler.h", | ||
| 2896 | + "src/compiler/turboshaft/machine-optimization-reducer.h", | ||
| 2891 | 2897 | "src/compiler/turboshaft/operations.cc", | |
| 2892 | 2898 | "src/compiler/turboshaft/operations.h", | |
| 2893 | 2899 | "src/compiler/turboshaft/operation-matching.h", | |
@@ -2897,12 +2903,14 @@ filegroup( | |||
| 2897 | 2903 | "src/compiler/turboshaft/recreate-schedule.h", | |
| 2898 | 2904 | "src/compiler/turboshaft/representations.cc", | |
| 2899 | 2905 | "src/compiler/turboshaft/representations.h", | |
| 2906 | + "src/compiler/turboshaft/select-lowering-reducer.h", | ||
| 2900 | 2907 | "src/compiler/turboshaft/sidetable.h", | |
| 2901 | 2908 | "src/compiler/turboshaft/simplify-tf-loops.cc", | |
| 2902 | 2909 | "src/compiler/turboshaft/simplify-tf-loops.h", | |
| 2910 | + "src/compiler/turboshaft/snapshot-table.h", | ||
| 2903 | 2911 | "src/compiler/turboshaft/utils.cc", | |
| 2904 | 2912 | "src/compiler/turboshaft/utils.h", | |
| 2905 | - "src/compiler/turboshaft/value-numbering-assembler.h", | ||
| 2913 | + "src/compiler/turboshaft/value-numbering-reducer.h", | ||
| 2906 | 2914 | "src/compiler/type-cache.cc", | |
| 2907 | 2915 | "src/compiler/type-cache.h", | |
| 2908 | 2916 | "src/compiler/type-narrowing-reducer.cc", | |
@@ -3152,16 +3160,16 @@ filegroup( | |||
| 3152 | 3160 | # Note these cannot be v8_target_is_* selects because these contain | |
| 3153 | 3161 | # inline assembly that runs inside the executable. Since these are | |
| 3154 | 3162 | # linked directly into mksnapshot, they must use the actual target cpu. | |
| 3155 | - "@v8//bazel/config:is_inline_asm_ia32": ["src/heap/base/asm/ia32/push_registers_asm.cc"], | ||
| 3156 | - "@v8//bazel/config:is_inline_asm_x64": ["src/heap/base/asm/x64/push_registers_asm.cc"], | ||
| 3157 | - "@v8//bazel/config:is_inline_asm_arm": ["src/heap/base/asm/arm/push_registers_asm.cc"], | ||
| 3158 | - "@v8//bazel/config:is_inline_asm_arm64": ["src/heap/base/asm/arm64/push_registers_asm.cc"], | ||
| 3159 | - "@v8//bazel/config:is_inline_asm_s390x": ["src/heap/base/asm/s390/push_registers_asm.cc"], | ||
| 3160 | - "@v8//bazel/config:is_inline_asm_riscv64": ["src/heap/base/asm/riscv64/push_registers_asm.cc"], | ||
| 3161 | - "@v8//bazel/config:is_inline_asm_ppc64le": ["src/heap/base/asm/ppc/push_registers_asm.cc"], | ||
| 3162 | - "@v8//bazel/config:is_msvc_asm_ia32": ["src/heap/base/asm/ia32/push_registers_masm.asm"], | ||
| 3163 | - "@v8//bazel/config:is_msvc_asm_x64": ["src/heap/base/asm/x64/push_registers_masm.asm"], | ||
| 3164 | - "@v8//bazel/config:is_msvc_asm_arm64": ["src/heap/base/asm/arm64/push_registers_masm.S"], | ||
| 3163 | + "@v8//bazel/config:is_inline_asm_ia32": ["src/heap/base/asm/ia32/save_registers_asm.cc"], | ||
| 3164 | + "@v8//bazel/config:is_inline_asm_x64": ["src/heap/base/asm/x64/save_registers_asm.cc"], | ||
| 3165 | + "@v8//bazel/config:is_inline_asm_arm": ["src/heap/base/asm/arm/save_registers_asm.cc"], | ||
| 3166 | + "@v8//bazel/config:is_inline_asm_arm64": ["src/heap/base/asm/arm64/save_registers_asm.cc"], | ||
| 3167 | + "@v8//bazel/config:is_inline_asm_s390x": ["src/heap/base/asm/s390/save_registers_asm.cc"], | ||
| 3168 | + "@v8//bazel/config:is_inline_asm_riscv64": ["src/heap/base/asm/riscv64/save_registers_asm.cc"], | ||
| 3169 | + "@v8//bazel/config:is_inline_asm_ppc64le": ["src/heap/base/asm/ppc/save_registers_asm.cc"], | ||
| 3170 | + "@v8//bazel/config:is_msvc_asm_ia32": ["src/heap/base/asm/ia32/save_registers_masm.asm"], | ||
| 3171 | + "@v8//bazel/config:is_msvc_asm_x64": ["src/heap/base/asm/x64/save_registers_masm.asm"], | ||
| 3172 | + "@v8//bazel/config:is_msvc_asm_arm64": ["src/heap/base/asm/arm64/save_registers_masm.S"], | ||
| 3165 | 3173 | }), | |
| 3166 | 3174 | ) | |
| 3167 | 3175 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1460,6 +1460,10 @@ config("toolchain") { | |||
| 1460 | 1460 | "/wd4715", # 'function' : not all control paths return a value' | |
| 1461 | 1461 | # MSVC does not analyze switch (enum) for completeness. | |
| 1462 | 1462 | ] | |
| 1463 | + | ||
| 1464 | + # TODO(https://crbug.com/1377771): Keep MSVC on C++17 until source code is | ||
| 1465 | + # made compatible with C++20. | ||
| 1466 | + cflags_cc = [ "/std:c++17" ] | ||
| 1463 | 1467 | } | |
| 1464 | 1468 | ||
| 1465 | 1469 | if (!is_clang && !is_win) { | |
@@ -1476,6 +1480,11 @@ config("toolchain") { | |||
| 1476 | 1480 | # Disable gcc warnings for using enum constant in boolean context. | |
| 1477 | 1481 | # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97266 | |
| 1478 | 1482 | "-Wno-int-in-bool-context", | |
| 1483 | + | ||
| 1484 | + # Disable gcc deprecation warnings, which are firing on implicit capture | ||
| 1485 | + # of `this` in capture-by-value lambdas and preventing a build roll which | ||
| 1486 | + # enables C++20 (see https://crbug.com/1374227). | ||
| 1487 | + "-Wno-deprecated", | ||
| 1479 | 1488 | ] | |
| 1480 | 1489 | } | |
| 1481 | 1490 | ||
@@ -2268,6 +2277,8 @@ action("v8_dump_build_config") { | |||
| 2268 | 2277 | "v8_current_cpu=\"$v8_current_cpu\"", | |
| 2269 | 2278 | "v8_enable_atomic_object_field_writes=" + | |
| 2270 | 2279 | "$v8_enable_atomic_object_field_writes", | |
| 2280 | + "v8_enable_conservative_stack_scanning=" + | ||
| 2281 | + "$v8_enable_conservative_stack_scanning", | ||
| 2271 | 2282 | "v8_enable_concurrent_marking=$v8_enable_concurrent_marking", | |
| 2272 | 2283 | "v8_enable_single_generation=$v8_enable_single_generation", | |
| 2273 | 2284 | "v8_enable_i18n_support=$v8_enable_i18n_support", | |
@@ -2803,6 +2814,7 @@ v8_header_set("v8_internal_headers") { | |||
| 2803 | 2814 | "src/compiler/all-nodes.h", | |
| 2804 | 2815 | "src/compiler/allocation-builder-inl.h", | |
| 2805 | 2816 | "src/compiler/allocation-builder.h", | |
| 2817 | + "src/compiler/backend/bitcast-elider.h", | ||
| 2806 | 2818 | "src/compiler/backend/code-generator-impl.h", | |
| 2807 | 2819 | "src/compiler/backend/code-generator.h", | |
| 2808 | 2820 | "src/compiler/backend/frame-elider.h", | |
@@ -2923,16 +2935,18 @@ v8_header_set("v8_internal_headers") { | |||
| 2923 | 2935 | "src/compiler/turboshaft/graph-builder.h", | |
| 2924 | 2936 | "src/compiler/turboshaft/graph-visualizer.h", | |
| 2925 | 2937 | "src/compiler/turboshaft/graph.h", | |
| 2926 | - "src/compiler/turboshaft/machine-optimization-assembler.h", | ||
| 2938 | + "src/compiler/turboshaft/machine-optimization-reducer.h", | ||
| 2927 | 2939 | "src/compiler/turboshaft/operation-matching.h", | |
| 2928 | 2940 | "src/compiler/turboshaft/operations.h", | |
| 2929 | 2941 | "src/compiler/turboshaft/optimization-phase.h", | |
| 2930 | 2942 | "src/compiler/turboshaft/recreate-schedule.h", | |
| 2931 | 2943 | "src/compiler/turboshaft/representations.h", | |
| 2944 | + "src/compiler/turboshaft/select-lowering-reducer.h", | ||
| 2932 | 2945 | "src/compiler/turboshaft/sidetable.h", | |
| 2933 | 2946 | "src/compiler/turboshaft/simplify-tf-loops.h", | |
| 2947 | + "src/compiler/turboshaft/snapshot-table.h", | ||
| 2934 | 2948 | "src/compiler/turboshaft/utils.h", | |
| 2935 | - "src/compiler/turboshaft/value-numbering-assembler.h", | ||
| 2949 | + "src/compiler/turboshaft/value-numbering-reducer.h", | ||
| 2936 | 2950 | "src/compiler/type-cache.h", | |
| 2937 | 2951 | "src/compiler/type-narrowing-reducer.h", | |
| 2938 | 2952 | "src/compiler/typed-optimization.h", | |
@@ -3024,6 +3038,7 @@ v8_header_set("v8_internal_headers") { | |||
| 3024 | 3038 | "src/handles/maybe-handles.h", | |
| 3025 | 3039 | "src/handles/persistent-handles.h", | |
| 3026 | 3040 | "src/handles/shared-object-conveyor-handles.h", | |
| 3041 | + "src/handles/traced-handles.h", | ||
| 3027 | 3042 | "src/heap/allocation-observer.h", | |
| 3028 | 3043 | "src/heap/allocation-result.h", | |
| 3029 | 3044 | "src/heap/allocation-stats.h", | |
@@ -3422,6 +3437,7 @@ v8_header_set("v8_internal_headers") { | |||
| 3422 | 3437 | "src/profiler/heap-profiler.h", | |
| 3423 | 3438 | "src/profiler/heap-snapshot-generator-inl.h", | |
| 3424 | 3439 | "src/profiler/heap-snapshot-generator.h", | |
| 3440 | + "src/profiler/output-stream-writer.h", | ||
| 3425 | 3441 | "src/profiler/profile-generator-inl.h", | |
| 3426 | 3442 | "src/profiler/profile-generator.h", | |
| 3427 | 3443 | "src/profiler/profiler-listener.h", | |
@@ -4041,6 +4057,7 @@ v8_compiler_sources = [ | |||
| 4041 | 4057 | "src/compiler/access-info.cc", | |
| 4042 | 4058 | "src/compiler/add-type-assertions-reducer.cc", | |
| 4043 | 4059 | "src/compiler/all-nodes.cc", | |
| 4060 | + "src/compiler/backend/bitcast-elider.cc", | ||
| 4044 | 4061 | "src/compiler/backend/code-generator.cc", | |
| 4045 | 4062 | "src/compiler/backend/frame-elider.cc", | |
| 4046 | 4063 | "src/compiler/backend/gap-resolver.cc", | |
@@ -4429,6 +4446,7 @@ v8_source_set("v8_base_without_compiler") { | |||
| 4429 | 4446 | "src/handles/local-handles.cc", | |
| 4430 | 4447 | "src/handles/persistent-handles.cc", | |
| 4431 | 4448 | "src/handles/shared-object-conveyor-handles.cc", | |
| 4449 | + "src/handles/traced-handles.cc", | ||
| 4432 | 4450 | "src/heap/allocation-observer.cc", | |
| 4433 | 4451 | "src/heap/array-buffer-sweeper.cc", | |
| 4434 | 4452 | "src/heap/base-space.cc", | |
@@ -4737,6 +4755,7 @@ v8_source_set("v8_base_without_compiler") { | |||
| 4737 | 4755 | ||
| 4738 | 4756 | if (v8_enable_maglev) { | |
| 4739 | 4757 | sources += [ | |
| 4758 | + "src/maglev/maglev-assembler.cc", | ||
| 4740 | 4759 | "src/maglev/maglev-code-generator.cc", | |
| 4741 | 4760 | "src/maglev/maglev-compilation-info.cc", | |
| 4742 | 4761 | "src/maglev/maglev-compilation-unit.cc", | |
@@ -5745,31 +5764,31 @@ v8_source_set("v8_heap_base") { | |||
| 5745 | 5764 | ||
| 5746 | 5765 | if (is_clang || !is_win) { | |
| 5747 | 5766 | if (current_cpu == "x64") { | |
| 5748 | - sources += [ "src/heap/base/asm/x64/push_registers_asm.cc" ] | ||
| 5767 | + sources += [ "src/heap/base/asm/x64/save_registers_asm.cc" ] | ||
| 5749 | 5768 | } else if (current_cpu == "x86") { | |
| 5750 | - sources += [ "src/heap/base/asm/ia32/push_registers_asm.cc" ] | ||
| 5769 | + sources += [ "src/heap/base/asm/ia32/save_registers_asm.cc" ] | ||
| 5751 | 5770 | } else if (current_cpu == "arm") { | |
| 5752 | - sources += [ "src/heap/base/asm/arm/push_registers_asm.cc" ] | ||
| 5771 | + sources += [ "src/heap/base/asm/arm/save_registers_asm.cc" ] | ||
| 5753 | 5772 | } else if (current_cpu == "arm64") { | |
| 5754 | - sources += [ "src/heap/base/asm/arm64/push_registers_asm.cc" ] | ||
| 5773 | + sources += [ "src/heap/base/asm/arm64/save_registers_asm.cc" ] | ||
| 5755 | 5774 | } else if (current_cpu == "ppc64") { | |
| 5756 | - sources += [ "src/heap/base/asm/ppc/push_registers_asm.cc" ] | ||
| 5775 | + sources += [ "src/heap/base/asm/ppc/save_registers_asm.cc" ] | ||
| 5757 | 5776 | } else if (current_cpu == "s390x") { | |
| 5758 | - sources += [ "src/heap/base/asm/s390/push_registers_asm.cc" ] | ||
| 5777 | + sources += [ "src/heap/base/asm/s390/save_registers_asm.cc" ] | ||
| 5759 | 5778 | } else if (current_cpu == "mips64el") { | |
| 5760 | - sources += [ "src/heap/base/asm/mips64/push_registers_asm.cc" ] | ||
| 5779 | + sources += [ "src/heap/base/asm/mips64/save_registers_asm.cc" ] | ||
| 5761 | 5780 | } else if (current_cpu == "loong64") { | |
| 5762 | - sources += [ "src/heap/base/asm/loong64/push_registers_asm.cc" ] | ||
| 5781 | + sources += [ "src/heap/base/asm/loong64/save_registers_asm.cc" ] | ||
| 5763 | 5782 | } else if (current_cpu == "riscv64" || current_cpu == "riscv32") { | |
| 5764 | - sources += [ "src/heap/base/asm/riscv/push_registers_asm.cc" ] | ||
| 5783 | + sources += [ "src/heap/base/asm/riscv/save_registers_asm.cc" ] | ||
| 5765 | 5784 | } | |
| 5766 | 5785 | } else if (is_win) { | |
| 5767 | 5786 | if (current_cpu == "x64") { | |
| 5768 | - sources += [ "src/heap/base/asm/x64/push_registers_masm.asm" ] | ||
| 5787 | + sources += [ "src/heap/base/asm/x64/save_registers_masm.asm" ] | ||
| 5769 | 5788 | } else if (current_cpu == "x86") { | |
| 5770 | - sources += [ "src/heap/base/asm/ia32/push_registers_masm.asm" ] | ||
| 5789 | + sources += [ "src/heap/base/asm/ia32/save_registers_masm.asm" ] | ||
| 5771 | 5790 | } else if (current_cpu == "arm64") { | |
| 5772 | - sources += [ "src/heap/base/asm/arm64/push_registers_masm.S" ] | ||
| 5791 | + sources += [ "src/heap/base/asm/arm64/save_registers_masm.S" ] | ||
| 5773 | 5792 | } | |
| 5774 | 5793 | } | |
| 5775 | 5794 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments