[heap] Port concurrent marking flag to GYP.

This enables concurrent marking for x86 and x64 on GYP builds.

Bug: chromium:694255
Change-Id: I371b38e72ce0e8f7ad5b0eed4e29b223b9ed1cf4
Reviewed-on: https://chromium-review.googlesource.com/628836
Commit-Queue: Ulan Degenbaev <ulan@chromium.org>
Reviewed-by: Michael Lippautz <mlippautz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#47551}
This commit is contained in:
Ulan Degenbaev 2017-08-23 16:52:21 +02:00 committed by Commit Bot
parent a1e53d13fb
commit d8d47effe1
2 changed files with 20 additions and 0 deletions

View File

@ -63,6 +63,10 @@ endif
ifeq ($(tracemaps), on) ifeq ($(tracemaps), on)
GYPFLAGS += -Dv8_trace_maps=1 GYPFLAGS += -Dv8_trace_maps=1
endif endif
# concurrentmarking=on
ifeq ($(concurrentmarking), on)
GYPFLAGS += -Dv8_enable_concurrent_marking=1
endif
# backtrace=off # backtrace=off
ifeq ($(backtrace), off) ifeq ($(backtrace), off)
GYPFLAGS += -Dv8_enable_backtrace=0 GYPFLAGS += -Dv8_enable_backtrace=0

View File

@ -29,6 +29,10 @@
{ {
'variables': { 'variables': {
'variables': {
'v8_target_arch%': '<(target_arch)',
},
'v8_enable_disassembler%': 0, 'v8_enable_disassembler%': 0,
'v8_promise_internal_field_count%': 0, 'v8_promise_internal_field_count%': 0,
@ -76,6 +80,15 @@
# Temporary flag to allow embedders to update their microtasks scopes. # Temporary flag to allow embedders to update their microtasks scopes.
'v8_check_microtasks_scopes_consistency%': 'false', 'v8_check_microtasks_scopes_consistency%': 'false',
# Enable concurrent marking.
'conditions': [
['v8_target_arch=="x64" or v8_target_arch=="ia32"', {
'v8_enable_concurrent_marking%': 1,
},{
'v8_enable_concurrent_marking%': 0,
}]
],
}, },
'target_defaults': { 'target_defaults': {
'conditions': [ 'conditions': [
@ -124,6 +137,9 @@
['v8_check_microtasks_scopes_consistency=="true"', { ['v8_check_microtasks_scopes_consistency=="true"', {
'defines': ['V8_CHECK_MICROTASKS_SCOPES_CONSISTENCY',], 'defines': ['V8_CHECK_MICROTASKS_SCOPES_CONSISTENCY',],
}], }],
['v8_enable_concurrent_marking==1', {
'defines': ['V8_CONCURRENT_MARKING',],
}],
], # conditions ], # conditions
'configurations': { 'configurations': {
'DebugBaseCommon': { 'DebugBaseCommon': {