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 src/base.gypi:base, allocator_unittests and
432 # It can't depend on either and nothing else should depend on it - 432 # tcmalloc_unittests. It can't depend on either and nothing else should
433 # all other code should use the interfaced provided by libbase. 433 # depend on it - all other code should use the interfaced provided by
434 # base.
434 'target_name': 'allocator_extension_thunks', 435 'target_name': 'allocator_extension_thunks',
435 'type': 'static_library', 436 'type': 'static_library',
436 'sources': [ 437 'sources': [
437 'allocator_extension_thunks.cc', 438 'allocator_extension_thunks.cc',
438 'allocator_extension_thunks.h', 439 'allocator_extension_thunks.h',
439 ], 440 ],
440 'toolsets': ['host', 'target'], 441 'toolsets': ['host', 'target'],
441 'include_dirs': [ 442 'include_dirs': [
442 '../../' 443 '../../'
443 ], 444 ],
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 'toolsets': ['host', 'target'], 497 'toolsets': ['host', 'target'],
497 'include_dirs': [ 498 'include_dirs': [
498 '../../' 499 '../../'
499 ], 500 ],
500 'configurations': { 501 'configurations': {
501 'Common_Base': { 502 'Common_Base': {
502 'msvs_target_platform': 'x64', 503 'msvs_target_platform': 'x64',
503 }, 504 },
504 }, 505 },
505 }, 506 },
507 {
508 'target_name': 'tcmalloc_unittest',
509 'type': 'executable',
510 'sources': [
511 'tcmalloc_unittest.cc',
512
513 # Part of chromium code(instead of TCMalloc). We don't include the
gpike 2012/05/21 19:04:58 space before open paren
514 # TCMalloc version(atomicops-internals-x86.cc) in allocator library,
515 # so need this for replacement.
516 '../atomicops_internals_x86_gcc.cc',
gpike 2012/05/21 19:04:58 This is gcc specific? What happens on Windows/Mac
kaiwang 2012/05/21 22:21:42 This is removed since this is now depending on bas
517
518 # Code allocator_shim.cc depends on.
519 '../profiler/alternate_timer.cc',
520 '../profiler/alternate_timer.h',
521 ],
522 'include_dirs': [
523 # This is tricky.. We add this include dir so alternate_timer.cc will
gpike 2012/05/21 19:04:58 .. should be .
kaiwang 2012/05/21 22:21:42 ? which ..?
524 # use TCMalloc's logging.h, instead of the chromium base/logging.h as
525 # in other build targets.
526 '<(tcmalloc_dir)/src',
527
528 '../..',
529 ],
530 'dependencies': [
531 'allocator',
532 'allocator_extension_thunks',
533 '../../testing/gtest.gyp:gtest',
534 ],
535 },
506 ], 536 ],
507 }], 537 }],
508 ], 538 ],
509 } 539 }
OLDNEW
« no previous file with comments | « no previous file | base/allocator/allocator_extension_thunks.cc » ('j') | third_party/tcmalloc/chromium/src/tcmalloc.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698