summaryrefslogtreecommitdiff
path: root/deps/v8/src/trap-handler/handler-outside.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/trap-handler/handler-outside.cc')
-rw-r--r--deps/v8/src/trap-handler/handler-outside.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/deps/v8/src/trap-handler/handler-outside.cc b/deps/v8/src/trap-handler/handler-outside.cc
index 565289e18b..1efbc398d0 100644
--- a/deps/v8/src/trap-handler/handler-outside.cc
+++ b/deps/v8/src/trap-handler/handler-outside.cc
@@ -13,7 +13,7 @@
// should be as self-contained as possible to make it easy to audit the code.
//
// 2. Any changes must be reviewed by someone from the crash reporting
-// or security team. Se OWNERS for suggested reviewers.
+// or security team. See OWNERS for suggested reviewers.
//
// For more information, see https://goo.gl/yMeyUY.
//
@@ -33,10 +33,10 @@
namespace {
size_t gNextCodeObject = 0;
-#ifdef DEBUG
-constexpr bool kEnableDebug = true;
+#ifdef ENABLE_SLOW_DCHECKS
+constexpr bool kEnableSlowChecks = true;
#else
-constexpr bool kEnableDebug = false;
+constexpr bool kEnableSlowChecks = false;
#endif
}
@@ -143,7 +143,7 @@ int RegisterHandlerData(
MetadataLock lock;
- if (kEnableDebug) {
+ if (kEnableSlowChecks) {
VerifyCodeRangeIsDisjoint(data);
}
@@ -196,7 +196,7 @@ int RegisterHandlerData(
if (i <= int_max) {
gCodeObjects[i].code_info = data;
- if (kEnableDebug) {
+ if (kEnableSlowChecks) {
ValidateCodeObjects();
}
@@ -224,7 +224,7 @@ void ReleaseHandlerData(int index) {
gCodeObjects[index].next_free = gNextCodeObject;
gNextCodeObject = index;
- if (kEnableDebug) {
+ if (kEnableSlowChecks) {
ValidateCodeObjects();
}
}