1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/sandbox/chromium/base/debug/alias.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,21 @@ 1.4 +// Copyright (c) 2011 The Chromium Authors. All rights reserved. 1.5 +// Use of this source code is governed by a BSD-style license that can be 1.6 +// found in the LICENSE file. 1.7 + 1.8 +#ifndef BASE_DEBUG_ALIAS_H_ 1.9 +#define BASE_DEBUG_ALIAS_H_ 1.10 + 1.11 +#include "base/base_export.h" 1.12 + 1.13 +namespace base { 1.14 +namespace debug { 1.15 + 1.16 +// Make the optimizer think that var is aliased. This is to prevent it from 1.17 +// optimizing out variables that that would not otherwise be live at the point 1.18 +// of a potential crash. 1.19 +void BASE_EXPORT Alias(const void* var); 1.20 + 1.21 +} // namespace debug 1.22 +} // namespace base 1.23 + 1.24 +#endif // BASE_DEBUG_ALIAS_H_