[build] Use shared libraries by default for debug builds
BUG=chromium:648864 Review-Url: https://codereview.chromium.org/2373743002 Cr-Commit-Position: refs/heads/master@{#39754}
This commit is contained in:
parent
245e5b323c
commit
f72b4a084a
@ -259,9 +259,7 @@
|
||||
|
||||
# GN debug configs for arm.
|
||||
'gn_debug_arm': [
|
||||
'gn', 'debug', 'arm',
|
||||
'shared', 'goma', 'v8_enable_slow_dchecks', 'v8_optimized_debug',
|
||||
'crosscompile', 'hard_float', 'swarming'],
|
||||
'gn', 'debug_bot', 'arm', 'crosscompile', 'hard_float', 'swarming'],
|
||||
|
||||
# GN release configs for arm.
|
||||
'gn_release_arm': [
|
||||
@ -457,7 +455,7 @@
|
||||
|
||||
'debug_bot': {
|
||||
'mixins': [
|
||||
'debug', 'static', 'goma', 'v8_enable_slow_dchecks',
|
||||
'debug', 'shared', 'goma', 'v8_enable_slow_dchecks',
|
||||
'v8_optimized_debug'],
|
||||
},
|
||||
|
||||
|
@ -7,6 +7,7 @@
|
||||
|
||||
#include "include/v8.h"
|
||||
#include "src/base/logging.h"
|
||||
#include "src/globals.h"
|
||||
|
||||
namespace v8 {
|
||||
|
||||
@ -17,10 +18,10 @@ namespace internal {
|
||||
#ifdef ENABLE_SLOW_DCHECKS
|
||||
#define SLOW_DCHECK(condition) \
|
||||
CHECK(!v8::internal::FLAG_enable_slow_asserts || (condition))
|
||||
extern bool FLAG_enable_slow_asserts;
|
||||
V8_EXPORT_PRIVATE extern bool FLAG_enable_slow_asserts;
|
||||
#else
|
||||
#define SLOW_DCHECK(condition) ((void) 0)
|
||||
const bool FLAG_enable_slow_asserts = false;
|
||||
static const bool FLAG_enable_slow_asserts = false;
|
||||
#endif
|
||||
|
||||
} // namespace internal
|
||||
|
@ -63,10 +63,12 @@ class HandleBase {
|
||||
|
||||
enum DereferenceCheckMode { INCLUDE_DEFERRED_CHECK, NO_DEFERRED_CHECK };
|
||||
#ifdef DEBUG
|
||||
bool IsDereferenceAllowed(DereferenceCheckMode mode) const;
|
||||
bool V8_EXPORT_PRIVATE IsDereferenceAllowed(DereferenceCheckMode mode) const;
|
||||
#else
|
||||
V8_INLINE
|
||||
bool IsDereferenceAllowed(DereferenceCheckMode mode) const { return true; }
|
||||
bool V8_EXPORT_PRIVATE IsDereferenceAllowed(DereferenceCheckMode mode) const {
|
||||
return true;
|
||||
}
|
||||
#endif // DEBUG
|
||||
|
||||
Object** location_;
|
||||
|
Loading…
Reference in New Issue
Block a user