���� JFIF �� � ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /home/real/node-v13.0.1/deps/v8/src/codegen/ |
// 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_CODEGEN_REGLIST_H_ #define V8_CODEGEN_REGLIST_H_ #include <cstdint> #include "src/base/bits.h" #include "src/base/template-utils.h" namespace v8 { namespace internal { // Register configurations. #if V8_TARGET_ARCH_ARM64 using RegList = uint64_t; #else using RegList = uint32_t; #endif // Get the number of registers in a given register list. constexpr int NumRegs(RegList list) { return base::bits::CountPopulation(list); } // Combine two RegLists by building the union of the contained registers. // Implemented as a Functor to pass it to base::fold even on gcc < 5 (see // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52892). // TODO(clemensh): Remove this once we require gcc >= 5.0. struct CombineRegListsFunctor { constexpr RegList operator()(RegList list1, RegList list2) const { return list1 | list2; } }; // Combine several RegLists by building the union of the contained registers. template <typename... RegLists> constexpr RegList CombineRegLists(RegLists... lists) { return base::fold(CombineRegListsFunctor{}, 0, lists...); } } // namespace internal } // namespace v8 #endif // V8_CODEGEN_REGLIST_H_