Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: base/allocator/allocator.gyp

Issue 10391178: 1. Enable large object pointer offset check in release build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 { 5 {
6 'variables': { 6 'variables': {
7 'jemalloc_dir': '../../third_party/jemalloc/chromium', 7 'jemalloc_dir': '../../third_party/jemalloc/chromium',
8 'tcmalloc_dir': '../../third_party/tcmalloc/chromium', 8 'tcmalloc_dir': '../../third_party/tcmalloc/chromium',
9 }, 9 },
10 'targets': [ 10 'targets': [
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 # jemalloc files 194 # jemalloc files
195 '<(jemalloc_dir)/jemalloc.c', 195 '<(jemalloc_dir)/jemalloc.c',
196 '<(jemalloc_dir)/jemalloc.h', 196 '<(jemalloc_dir)/jemalloc.h',
197 '<(jemalloc_dir)/ql.h', 197 '<(jemalloc_dir)/ql.h',
198 '<(jemalloc_dir)/qr.h', 198 '<(jemalloc_dir)/qr.h',
199 '<(jemalloc_dir)/rb.h', 199 '<(jemalloc_dir)/rb.h',
200 200
201 'allocator_shim.cc', 201 'allocator_shim.cc',
202 'allocator_shim.h', 202 'allocator_shim.h',
203 'generic_allocators.cc', 203 'generic_allocators.cc',
204 'win_allocator.cc', 204 'win_allocator.cc',
205 ], 205 ],
206 # sources! means that these are not compiled directly. 206 # sources! means that these are not compiled directly.
207 'sources!': [ 207 'sources!': [
208 # Included by allocator_shim.cc for maximal inlining. 208 # Included by allocator_shim.cc for maximal inlining.
209 'generic_allocators.cc', 209 'generic_allocators.cc',
210 'win_allocator.cc', 210 'win_allocator.cc',
211 211
212 # We simply don't use these, but list them above so that IDE 212 # We simply don't use these, but list them above so that IDE
213 # users can view the full available source for reference, etc. 213 # users can view the full available source for reference, etc.
214 '<(tcmalloc_dir)/src/addressmap-inl.h', 214 '<(tcmalloc_dir)/src/addressmap-inl.h',
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 '<(tcmalloc_dir)/src/heap-checker.cc', 421 '<(tcmalloc_dir)/src/heap-checker.cc',
422 ], 422 ],
423 # Disable the heap checker in tcmalloc. 423 # Disable the heap checker in tcmalloc.
424 'defines': [ 424 'defines': [
425 'NO_HEAP_CHECK', 425 'NO_HEAP_CHECK',
426 ], 426 ],
427 }], 427 }],
428 ], 428 ],
429 }, 429 },
430 { 430 {
431 # This library is linked in to libbase and allocator_unittests. 431 # This library is linked in to libbase, allocator_unittests and TCMalloc
rvargas (doing something else) 2012/05/19 01:08:04 nit: libbase -> base
kaiwang 2012/05/21 18:11:42 Done.
432 # It can't depend on either and nothing else should depend on it - 432 # tests. It can't depend on either and nothing else should depend on it -
rvargas (doing something else) 2012/05/19 01:08:04 If you want to refer to this as tcmalloc tests, th
kaiwang 2012/05/21 18:11:42 Done, modified comment and renamed to tcmalloc_uni
433 # all other code should use the interfaced provided by libbase. 433 # all other code should use the interfaced provided by libbase.
434 'target_name': 'allocator_extension_thunks', 434 'target_name': 'allocator_extension_thunks',
435 'type': 'static_library', 435 'type': 'static_library',
436 'sources': [ 436 'sources': [
437 'allocator_extension_thunks.cc', 437 'allocator_extension_thunks.cc',
438 'allocator_extension_thunks.h', 438 'allocator_extension_thunks.h',
439 ], 439 ],
440 'toolsets': ['host', 'target'], 440 'toolsets': ['host', 'target'],
441 'include_dirs': [ 441 'include_dirs': [
442 '../../' 442 '../../'
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 'toolsets': ['host', 'target'], 496 'toolsets': ['host', 'target'],
497 'include_dirs': [ 497 'include_dirs': [
498 '../../' 498 '../../'
499 ], 499 ],
500 'configurations': { 500 'configurations': {
501 'Common_Base': { 501 'Common_Base': {
502 'msvs_target_platform': 'x64', 502 'msvs_target_platform': 'x64',
503 }, 503 },
504 }, 504 },
505 }, 505 },
506 {
507 'target_name': 'tcmalloc_free_check_test',
508 'type': 'executable',
509 'sources': [
510 'tcmalloc_free_check_test.cc',
511
512 # Part of chromium code(instead of TCMalloc). We don't include the
513 # TCMalloc version(atomicops-internals-x86.cc) in allocator library,
514 # so need this for replacement.
515 '../atomicops_internals_x86_gcc.cc',
516
517 # Code allocator_shim.cc depends on.
518 '../profiler/alternate_timer.cc',
519 '../profiler/alternate_timer.h',
520 ],
521 'include_dirs': [
522 # This is tricky.. We add this include dir so alternate_timer.cc will
523 # use TCMalloc's logging.h, instead of the chromium base/logging.h as
rvargas (doing something else) 2012/05/19 01:08:04 say that we don't want to depend on base. (why not
kaiwang 2012/05/21 18:11:42 Maybe I'm wrong. base is defined in base.gypi, I t
rvargas (doing something else) 2012/05/21 18:44:30 I'm not sure what you mean by "include it into thi
kaiwang 2012/05/21 22:21:42 You are right. This makes this target a lot more s
524 # in other build targets.
525 '<(tcmalloc_dir)/src',
526
rvargas (doing something else) 2012/05/19 01:08:04 remove line
kaiwang 2012/05/21 18:11:42 The above comment is only targeting one line of th
rvargas (doing something else) 2012/05/21 18:44:30 That's a good point, I missed that. But then, it i
kaiwang 2012/05/21 22:21:42 Putting tcmalloc/src before ../.. is because tcmal
527 '../..',
528 ],
529 'dependencies': [
530 'allocator',
531 'allocator_extension_thunks',
532 '../../testing/gtest.gyp:gtest',
533 ],
534 },
506 ], 535 ],
507 }], 536 }],
508 ], 537 ],
509 } 538 }
OLDNEW
« no previous file with comments | « no previous file | base/allocator/allocator_extension_thunks.cc » ('j') | base/allocator/allocator_extension_thunks.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698