diff options
author | Michaël Zasso <targos@protonmail.com> | 2021-07-14 11:30:07 +0200 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2021-07-20 15:24:51 +0200 |
commit | 6cdd310275bb0f8056aa0ae6d95614e9ca5b70c7 (patch) | |
tree | 9ed37b19cd668894854b7f469010f7621e63ef81 /deps/v8/src/snapshot/serializer-deserializer.h | |
parent | c0f10006c82d2d9896a552de98ed146f9542720d (diff) | |
download | node-new-6cdd310275bb0f8056aa0ae6d95614e9ca5b70c7.tar.gz |
deps: update V8 to 9.2.230.21
PR-URL: https://github.com/nodejs/node/pull/38990
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'deps/v8/src/snapshot/serializer-deserializer.h')
-rw-r--r-- | deps/v8/src/snapshot/serializer-deserializer.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/deps/v8/src/snapshot/serializer-deserializer.h b/deps/v8/src/snapshot/serializer-deserializer.h index 0e156f75a0..82f3400106 100644 --- a/deps/v8/src/snapshot/serializer-deserializer.h +++ b/deps/v8/src/snapshot/serializer-deserializer.h @@ -187,14 +187,13 @@ class SerializerDeserializer : public RootVisitor { } static constexpr byte Encode(TValue value) { - CONSTEXPR_DCHECK(IsEncodable(value)); + DCHECK(IsEncodable(value)); return static_cast<byte>(kBytecode + static_cast<int>(value) - kMinValue); } static constexpr TValue Decode(byte bytecode) { - CONSTEXPR_DCHECK(base::IsInRange(bytecode, - Encode(static_cast<TValue>(kMinValue)), - Encode(static_cast<TValue>(kMaxValue)))); + DCHECK(base::IsInRange(bytecode, Encode(static_cast<TValue>(kMinValue)), + Encode(static_cast<TValue>(kMaxValue)))); return static_cast<TValue>(bytecode - kBytecode + kMinValue); } }; @@ -241,7 +240,7 @@ class SerializerDeserializer : public RootVisitor { } static constexpr int Encode(int repeat_count) { - CONSTEXPR_DCHECK(IsEncodable(repeat_count)); + DCHECK(IsEncodable(repeat_count)); return repeat_count - kFirstEncodableVariableRepeatCount; } |