allocator: add use_experimental_allocator_shim build flag

This CL introduces a new GYP/GN build flag
use_experimental_allocator_shim (default: false).
After this CL, the only side-effect of that flag is that tcmalloc
does not override anymore the libc symbols (malloc, new etc.).
This is in preparation of a unified shim layer, which will come
separately in upcoming CLs, which will take care of overriding
those symbols in Chrome.

Design doc: http://bit.ly/allocator-shim

BUG=550886

Review URL: https://codereview.chromium.org/1678893002

Cr-Original-Commit-Position: refs/heads/master@{#374449}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 3217078aa86523fb341e0cf2b0c49d55434b534a
1 file changed
tree: 91f50d0d0f1800c838ed2e2d3c3ace0e7e257c98
  1. src/