���� 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 : /proc/self/root/home/real/node-v13.0.1/deps/v8/src/ic/ |
// 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_IC_BINARY_OP_ASSEMBLER_H_ #define V8_IC_BINARY_OP_ASSEMBLER_H_ #include <functional> #include "src/codegen/code-stub-assembler.h" namespace v8 { namespace internal { namespace compiler { class CodeAssemblerState; } class BinaryOpAssembler : public CodeStubAssembler { public: using Node = compiler::Node; explicit BinaryOpAssembler(compiler::CodeAssemblerState* state) : CodeStubAssembler(state) {} Node* Generate_AddWithFeedback(Node* context, Node* lhs, Node* rhs, Node* slot_id, Node* feedback_vector, bool rhs_is_smi); Node* Generate_SubtractWithFeedback(Node* context, Node* lhs, Node* rhs, Node* slot_id, Node* feedback_vector, bool rhs_is_smi); Node* Generate_MultiplyWithFeedback(Node* context, Node* lhs, Node* rhs, Node* slot_id, Node* feedback_vector, bool rhs_is_smi); Node* Generate_DivideWithFeedback(Node* context, Node* dividend, Node* divisor, Node* slot_id, Node* feedback_vector, bool rhs_is_smi); Node* Generate_ModulusWithFeedback(Node* context, Node* dividend, Node* divisor, Node* slot_id, Node* feedback_vector, bool rhs_is_smi); Node* Generate_ExponentiateWithFeedback(Node* context, Node* dividend, Node* divisor, Node* slot_id, Node* feedback_vector, bool rhs_is_smi); private: using SmiOperation = std::function<Node*(Node*, Node*, Variable*)>; using FloatOperation = std::function<Node*(Node*, Node*)>; Node* Generate_BinaryOperationWithFeedback( Node* context, Node* lhs, Node* rhs, Node* slot_id, Node* feedback_vector, const SmiOperation& smiOperation, const FloatOperation& floatOperation, Operation op, bool rhs_is_smi); }; } // namespace internal } // namespace v8 #endif // V8_IC_BINARY_OP_ASSEMBLER_H_