diff options
author | Michaël Zasso <targos@protonmail.com> | 2017-10-18 15:03:02 -0700 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2017-10-18 17:01:41 -0700 |
commit | 3d1b3df9486c0e7708065257f7311902f6b7b366 (patch) | |
tree | cb051bdeaead11e06dcd97725783e0f113afb1bf /deps/v8/src/reglist.h | |
parent | e2cddbb8ccdb7b3c4a40c8acc630f68703bc77b5 (diff) | |
download | android-node-v8-3d1b3df9486c0e7708065257f7311902f6b7b366.tar.gz android-node-v8-3d1b3df9486c0e7708065257f7311902f6b7b366.tar.bz2 android-node-v8-3d1b3df9486c0e7708065257f7311902f6b7b366.zip |
deps: update V8 to 6.2.414.32
PR-URL: https://github.com/nodejs/node/pull/15362
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'deps/v8/src/reglist.h')
-rw-r--r-- | deps/v8/src/reglist.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/deps/v8/src/reglist.h b/deps/v8/src/reglist.h new file mode 100644 index 0000000000..f23c76e4b9 --- /dev/null +++ b/deps/v8/src/reglist.h @@ -0,0 +1,24 @@ +// Copyright 2017 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef V8_REGLIST_H_ +#define V8_REGLIST_H_ + +namespace v8 { +namespace internal { + +// Register configurations. +#if V8_TARGET_ARCH_ARM64 +typedef uint64_t RegList; +#else +typedef uint32_t RegList; +#endif + +// Get the number of registers in a given register list. +inline int NumRegs(RegList list) { return base::bits::CountPopulation(list); } + +} // namespace internal +} // namespace v8 + +#endif // V8_REGLIST_H_ |