Repository: servo/servo
File: components/config/prefs.rs (Rust)

Code before:
            js_mem_gc_dynamic_heap_growth_enabled: true,
            js_mem_gc_dynamic_mark_slice_enabled: true,
            js_mem_gc_empty_chunk_count_min: 1,
            js_mem_gc_high_frequency_heap_growth_max: 300,
            js_mem_gc_high_frequency_heap_growth_min: 150,
            js_mem_gc_high_frequency_high_limit_mb: 500,
            js_mem_gc_high_frequency_low_limit_mb: 100,
            js_mem_gc_high_frequency_time_limit_ms: 1000,
            js_mem_gc_incremental_enabled: true,
            js_mem_gc_incremental_slice_ms: 10,
            js_mem_gc_low_frequency_heap_growth: 150,
            js_mem_gc_per_zone_enabled: false,
            js_mem_gc_zeal_frequency: 100,
            js_mem_gc_zeal_level: 0,
            js_mem_max: -1,
            js_native_regex_enabled: true,
            js_offthread_compilation_enabled: true,
            js_shared_memory: true,
            js_throw_on_asmjs_validation_failure: false,
            js_throw_on_debuggee_would_run: false,
            js_timers_minimum_duration: 1000,
            js_wasm_baseline_enabled: true,
            js_wasm_enabled: true,
            js_wasm_ion_enabled: true,
            js_werror_enabled: false,
            largest_contentful_paint_enabled: true,
            layout_animations_test_enabled: false,
            layout_columns_enabled: false,
            layout_container_queries_enabled: false,
            layout_css_transition_behavior_enabled: true,
            layout_flexbox_enabled: true,
            layout_grid_enabled: false,
            layout_style_sharing_cache_enabled: true,
            // TODO(mrobinson): This should likely be based on the number of processors.
            layout_threads: 3,
            layout_unimplemented: false,
            layout_variable_fonts_enabled: false,
            layout_writing_mode_enabled: false,
            media_glvideo_enabled: false,
            media_testing_enabled: false,
            network_connection_timeout: 15,
            network_enforce_tls_enabled: false,
            network_enforce_tls_localhost: false,
            network_enforce_tls_onion: false,
            network_http_cache_disabled: false,
            network_http_proxy_uri: String::new(),
            network_https_proxy_uri: String::new(),
            network_http_no_proxy: String::new(),
            network_http_cache_size: 5000,
            network_local_directory_listing_enabled: true,
            network_mime_sniff: false,

Review comment (suggestion):
This should happen in an `__dir__.ini` file in the metadata directory. For instance take a look at `tests/wpt/meta/WebCryptoAPI/__dir__.ini`.

Code after:
            gfx_subpixel_text_antialiasing_enabled: true,
            gfx_texture_swizzling_enabled: true,
            image_key_batch_size: 10,
            inspector_show_servo_internal_shadow_roots: false,
            intl_locale_override: String::new(),
            js_asmjs_enabled: true,
            js_asyncstack: false,
            js_baseline_interpreter_enabled: true,
            js_baseline_jit_enabled: true,
            js_baseline_jit_unsafe_eager_compilation_enabled: false,
            js_disable_jit: false,
            js_discard_system_source: false,
            js_dump_stack_on_debuggee_would_run: false,
            js_ion_enabled: true,
            js_ion_offthread_compilation_enabled: true,
            js_ion_unsafe_eager_compilation_enabled: false,
            js_mem_gc_allocation_threshold_avoid_interrupt_factor: 100,
            js_mem_gc_allocation_threshold_factor: 100,
            js_mem_gc_allocation_threshold_mb: 30,
            js_mem_gc_compacting_enabled: true,
            js_mem_gc_decommit_threshold_mb: 32,
            js_mem_gc_dynamic_heap_growth_enabled: true,
            js_mem_gc_dynamic_mark_slice_enabled: true,
            js_mem_gc_empty_chunk_count_min: 1,
            js_mem_gc_high_frequency_heap_growth_max: 300,
            js_mem_gc_high_frequency_heap_growth_min: 150,
            js_mem_gc_high_frequency_high_limit_mb: 500,
            js_mem_gc_high_frequency_low_limit_mb: 100,
            js_mem_gc_high_frequency_time_limit_ms: 1000,
            js_mem_gc_incremental_enabled: true,
            js_mem_gc_incremental_slice_ms: 10,
            js_mem_gc_low_frequency_heap_growth: 150,
            js_mem_gc_per_zone_enabled: false,
            js_mem_gc_zeal_frequency: 100,
            js_mem_gc_zeal_level: 0,
            js_mem_max: -1,
            js_native_regex_enabled: true,
            js_offthread_compilation_enabled: true,
            js_shared_memory: true,
            js_throw_on_asmjs_validation_failure: false,
            js_throw_on_debuggee_would_run: false,
            js_timers_minimum_duration: 1000,
            js_wasm_baseline_enabled: true,
            js_wasm_enabled: true,
            js_wasm_ion_enabled: true,
            js_werror_enabled: false,
            largest_contentful_paint_enabled: false,
            layout_animations_test_enabled: false,
            layout_columns_enabled: false,
            layout_container_queries_enabled: false,
            layout_css_attr_enabled: false,