OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
6 import("//build/config/arm.gni") | 6 import("//build/config/arm.gni") |
7 import("//build/config/dcheck_always_on.gni") | 7 import("//build/config/dcheck_always_on.gni") |
8 import("//build/config/mips.gni") | 8 import("//build/config/mips.gni") |
9 import("//build/config/sanitizers/sanitizers.gni") | 9 import("//build/config/sanitizers/sanitizers.gni") |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 | 24 |
25 # Enable compiler warnings when using V8_DEPRECATED apis. | 25 # Enable compiler warnings when using V8_DEPRECATED apis. |
26 v8_deprecation_warnings = false | 26 v8_deprecation_warnings = false |
27 | 27 |
28 # Enable compiler warnings when using V8_DEPRECATE_SOON apis. | 28 # Enable compiler warnings when using V8_DEPRECATE_SOON apis. |
29 v8_imminent_deprecation_warnings = false | 29 v8_imminent_deprecation_warnings = false |
30 | 30 |
31 # Embeds the given script into the snapshot. | 31 # Embeds the given script into the snapshot. |
32 v8_embed_script = "" | 32 v8_embed_script = "" |
33 | 33 |
| 34 # Support for backtrace_symbols on linux. |
| 35 v8_enable_backtrace = false |
| 36 |
34 # Sets -dENABLE_DISASSEMBLER. | 37 # Sets -dENABLE_DISASSEMBLER. |
35 v8_enable_disassembler = false | 38 v8_enable_disassembler = false |
36 | 39 |
37 # Sets -dENABLE_GDB_JIT_INTERFACE. | 40 # Sets -dENABLE_GDB_JIT_INTERFACE. |
38 v8_enable_gdbjit = false | 41 v8_enable_gdbjit = false |
39 | 42 |
40 # Sets -dENABLE_HANDLE_ZAPPING. | 43 # Sets -dENABLE_HANDLE_ZAPPING. |
41 v8_enable_handle_zapping = true | 44 v8_enable_handle_zapping = true |
42 | 45 |
43 # Enable ECMAScript Internationalization API. Enabling this feature will | 46 # Enable ECMAScript Internationalization API. Enabling this feature will |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 # applies only to executables and shared libraries produced by V8 since | 288 # applies only to executables and shared libraries produced by V8 since |
286 # ldflags are not pushed to dependants. | 289 # ldflags are not pushed to dependants. |
287 ldflags += [ "/STACK:2097152" ] | 290 ldflags += [ "/STACK:2097152" ] |
288 } | 291 } |
289 } | 292 } |
290 | 293 |
291 # TODO(jochen): Support v8_enable_prof on Windows. | 294 # TODO(jochen): Support v8_enable_prof on Windows. |
292 # TODO(jochen): Add support for compiling with simulators. | 295 # TODO(jochen): Add support for compiling with simulators. |
293 | 296 |
294 if (is_debug) { | 297 if (is_debug) { |
| 298 if (is_linux && v8_enable_backtrace) { |
| 299 ldflags += [ "-rdynamic" ] |
| 300 } |
| 301 |
295 # TODO(jochen): Add support for different debug optimization levels. | 302 # TODO(jochen): Add support for different debug optimization levels. |
296 defines += [ | 303 defines += [ |
297 "ENABLE_DISASSEMBLER", | 304 "ENABLE_DISASSEMBLER", |
298 "V8_ENABLE_CHECKS", | 305 "V8_ENABLE_CHECKS", |
299 "OBJECT_PRINT", | 306 "OBJECT_PRINT", |
300 "VERIFY_HEAP", | 307 "VERIFY_HEAP", |
301 "DEBUG", | 308 "DEBUG", |
302 "TRACE_MAPS", | 309 "TRACE_MAPS", |
303 ] | 310 ] |
304 if (v8_enable_slow_dchecks) { | 311 if (v8_enable_slow_dchecks) { |
(...skipping 2077 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2382 | 2389 |
2383 deps = [ | 2390 deps = [ |
2384 ":fuzzer_support", | 2391 ":fuzzer_support", |
2385 ] | 2392 ] |
2386 | 2393 |
2387 configs = [ ":internal_config" ] | 2394 configs = [ ":internal_config" ] |
2388 } | 2395 } |
2389 | 2396 |
2390 v8_fuzzer("wasm_asmjs_fuzzer") { | 2397 v8_fuzzer("wasm_asmjs_fuzzer") { |
2391 } | 2398 } |
OLD | NEW |