Home
last modified time | relevance | path

Searched refs:arity (Results 1 – 25 of 92) sorted by relevance

1234

/external/apache-commons-math/src/main/java/org/apache/commons/math/genetics/
DTournamentSelection.java34 private int arity; field in TournamentSelection
42 public TournamentSelection(int arity) { in TournamentSelection() argument
43 this.arity = arity; in TournamentSelection()
73 if (population.getPopulationSize() < this.arity) in tournament()
76 ListPopulation tournamentPopulation = new ListPopulation(this.arity) { in tournament()
85 for (int i=0; i<this.arity; i++) { in tournament()
102 return arity; in getArity()
110 public void setArity(int arity) { in setArity() argument
111 this.arity = arity; in setArity()
/external/v8/src/compiler/
Djs-operator.h67 ConstructForwardVarargsParameters(size_t arity, uint32_t start_index) in ConstructForwardVarargsParameters() argument
68 : bit_field_(ArityField::encode(arity) | in ConstructForwardVarargsParameters()
71 size_t arity() const { return ArityField::decode(bit_field_); } in arity() function
102 ConstructParameters(uint32_t arity, CallFrequency frequency, in ConstructParameters() argument
104 : arity_(arity), frequency_(frequency), feedback_(feedback) {} in ConstructParameters()
106 uint32_t arity() const { return arity_; } in arity() function
129 CallForwardVarargsParameters(size_t arity, uint32_t start_index) in CallForwardVarargsParameters() argument
130 : bit_field_(ArityField::encode(arity) | in CallForwardVarargsParameters()
133 size_t arity() const { return ArityField::decode(bit_field_); } in arity() function
163 CallParameters(size_t arity, CallFrequency const& frequency, in CallParameters() argument
[all …]
Djs-operator.cc34 return os << p.arity() << ", " << p.start_index(); in operator <<()
45 return lhs.arity() == rhs.arity() && lhs.frequency() == rhs.frequency() && in operator ==()
55 return base::hash_combine(p.arity(), p.frequency(), p.feedback()); in hash_value()
59 return os << p.arity() << ", " << p.frequency(); in operator <<()
69 return os << p.arity() << ", " << p.frequency() << ", " << p.convert_mode(); in operator <<()
80 return os << p.arity() << ", " << p.start_index(); in operator <<()
92 return lhs.id() == rhs.id() && lhs.arity() == rhs.arity(); in operator ==()
103 return base::hash_combine(p.id(), p.arity()); in hash_value()
108 return os << p.id() << ", " << p.arity(); in operator <<()
365 return lhs.arity() == rhs.arity() && in operator ==()
[all …]
Djs-call-reducer.cc222 DCHECK_LE(2u, p.arity()); in ReduceArrayConstructor()
223 size_t const arity = p.arity() - 2; in ReduceArrayConstructor() local
227 node, javascript()->CreateArray(arity, MaybeHandle<AllocationSite>())); in ReduceArrayConstructor()
237 DCHECK_LE(2u, p.arity()); in ReduceBooleanConstructor()
238 Node* value = (p.arity() == 2) ? jsgraph()->UndefinedConstant() in ReduceBooleanConstructor()
249 if (p.arity() < 3) return NoChange(); in ReduceObjectConstructor()
250 Node* value = (p.arity() >= 3) ? NodeProperties::GetValueInput(node, 2) in ReduceObjectConstructor()
274 size_t arity = p.arity(); in ReduceFunctionPrototypeApply() local
275 DCHECK_LE(2u, arity); in ReduceFunctionPrototypeApply()
277 if (arity == 2) { in ReduceFunctionPrototypeApply()
[all …]
Djs-typed-lowering.cc1462 void ReduceBuiltin(JSGraph* jsgraph, Node* node, int builtin_index, int arity, in ReduceBuiltin() argument
1488 ? NodeProperties::GetValueInput(node, arity + 1) in ReduceBuiltin()
1504 node->RemoveInput(arity + 1); in ReduceBuiltin()
1508 const int argc = arity + BuiltinArguments::kNumExtraArgsWithReceiver; in ReduceBuiltin()
1512 int cursor = arity + kStubAndReceiver; in ReduceBuiltin()
1534 bool NeedsArgumentAdaptorFrame(SharedFunctionInfoRef shared, int arity) { in NeedsArgumentAdaptorFrame() argument
1537 return (num_decl_parms != arity && num_decl_parms != sentinel); in NeedsArgumentAdaptorFrame()
1546 DCHECK_LE(2u, p.arity()); in ReduceJSConstructForwardVarargs()
1547 int const arity = static_cast<int>(p.arity() - 2); in ReduceJSConstructForwardVarargs() local
1551 Node* new_target = NodeProperties::GetValueInput(node, arity + 1); in ReduceJSConstructForwardVarargs()
[all …]
Djs-generic-lowering.cc126 Node* arity = jsgraph()->Int32Constant(nargs); in ReplaceWithRuntimeCall() local
129 node->InsertInput(zone(), nargs + 2, arity); in ReplaceWithRuntimeCall()
361 int const arity = static_cast<int>(p.arity()); in LowerJSCreateArray() local
363 zone(), ArrayConstructorDescriptor{}, arity + 1, in LowerJSCreateArray()
366 Node* stub_arity = jsgraph()->Int32Constant(arity); in LowerJSCreateArray()
582 int const arg_count = static_cast<int>(p.arity() - 2); in LowerJSConstructForwardVarargs()
603 int const arg_count = static_cast<int>(p.arity() - 2); in LowerJSConstruct()
639 int const arg_count = static_cast<int>(p.arity() - 2); in LowerJSConstructWithSpread()
665 int const arg_count = static_cast<int>(p.arity() - 2); in LowerJSCallForwardVarargs()
681 int const arg_count = static_cast<int>(p.arity() - 2); in LowerJSCall()
[all …]
Descape-analysis.cc398 int arity = effect_phi->op()->EffectInputCount(); in MergeInputs() local
402 buffer_.reserve(arity + 1); in MergeInputs()
415 for (int i = 1; i < arity; ++i) { in MergeInputs()
441 for (int i = 0; i < arity; ++i) { in MergeInputs()
452 DCHECK_EQ(2, arity); in MergeInputs()
455 } else if (num_defined_inputs < arity) { in MergeInputs()
460 DCHECK_EQ(num_defined_inputs, arity); in MergeInputs()
468 graph_->common()->Phi(MachineRepresentation::kTagged, arity), in MergeInputs()
469 arity + 1, &buffer_.front()); in MergeInputs()
Djs-create-lowering.cc631 int const arity = static_cast<int>(p.arity()); in ReduceNewArrayToStubCall() local
652 if (arity == 0) { in ReduceNewArrayToStubCall()
656 graph()->zone(), callable.descriptor(), arity + 1, in ReduceNewArrayToStubCall()
660 node->InsertInput(graph()->zone(), 3, jsgraph()->Constant(arity)); in ReduceNewArrayToStubCall()
663 } else if (arity == 1) { in ReduceNewArrayToStubCall()
668 graph()->zone(), callable.descriptor(), arity + 1, in ReduceNewArrayToStubCall()
672 node->InsertInput(graph()->zone(), 3, jsgraph()->Constant(arity)); in ReduceNewArrayToStubCall()
676 DCHECK_GT(arity, 1); in ReduceNewArrayToStubCall()
679 graph()->zone(), ArrayNArgumentsConstructorDescriptor{}, arity + 1, in ReduceNewArrayToStubCall()
683 node->InsertInput(graph()->zone(), 3, jsgraph()->Constant(arity)); in ReduceNewArrayToStubCall()
[all …]
/external/tensorflow/tensorflow/compiler/xla/client/lib/
Dloops.cc30 int arity = initial_values.size(); in WhileLoopHelper() local
32 var_shapes.reserve(arity); in WhileLoopHelper()
40 auto unpack_tuple = [](XlaOp tuple, int arity, XlaBuilder* builder) { in WhileLoopHelper() argument
41 std::vector<XlaOp> elements(arity); in WhileLoopHelper()
42 for (int i = 0; i < arity; ++i) { in WhileLoopHelper()
55 condition_function(unpack_tuple(parameter, arity, cond_builder.get()), in WhileLoopHelper()
69 body_function(unpack_tuple(parameter, arity, body_builder.get()), in WhileLoopHelper()
79 return unpack_tuple(outputs, arity, builder); in WhileLoopHelper()
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_opcode.cc53 #define CASE_IS_VARIADIC(enum_name, opcode_name, arity, ...) \ in HloOpcodeIsVariadic() argument
55 return arity == kHloOpcodeIsVariadic; in HloOpcodeIsVariadic()
63 #define CASE_ARITY(enum_name, opcode_name, arity, ...) \ in HloOpcodeArity() argument
65 return arity == kHloOpcodeIsVariadic ? absl::nullopt \ in HloOpcodeArity()
66 : absl::make_optional(arity); in HloOpcodeArity()
/external/apache-xml/src/main/java/org/apache/xpath/jaxp/
DJAXPExtensionsProvider.java125 int arity = argVec.size(); in extFunction() local
128 resolver.resolveFunction ( myQName, arity ); in extFunction()
131 ArrayList argList = new ArrayList( arity); in extFunction()
132 for ( int i=0; i<arity; i++ ) { in extFunction()
166 int arity = extFunction.getArgCount(); in extFunction() local
180 resolver.resolveFunction( myQName, arity ); in extFunction()
182 ArrayList argList = new ArrayList( arity); in extFunction()
183 for ( int i=0; i<arity; i++ ) { in extFunction()
/external/owasp/sanitizer/empiricism/
Dhtml-containment.js27 var arity = makeHtmlString.length;
28 var nRuns = Math.pow(nElements, arity);
30 var paramIndices = new Array(arity);
31 var paramValues = new Array(arity);
32 for (var i = 0; i < arity; ++i) {
56 for (i = arity; --i >= 0;) {
95 paramValues.length = arity;
121 paramValues[arity] = iframe.contentDocument.body;
122 paramValues[arity + 1] = result;
124 paramValues.length = arity;
/external/mockito/src/main/java/org/mockito/internal/util/reflection/
DGenericMetadataSupport.java237 int arity = 0; in resolveGenericReturnType() local
239 arity++; in resolveGenericReturnType()
244 if (arity == 0) { in resolveGenericReturnType()
247 return new GenericArrayReturnType(genericMetadataSupport, arity); in resolveGenericReturnType()
469 private final int arity; field in GenericMetadataSupport.GenericArrayReturnType
471 public GenericArrayReturnType(GenericMetadataSupport genericArrayType, int arity) { in GenericArrayReturnType() argument
473 this.arity = arity; in GenericArrayReturnType()
480 for (int i = 0; i < arity; i++) { in rawType()
/external/tensorflow/tensorflow/stream_executor/gpu/
Dgpu_kernel.h49 void set_arity(unsigned arity) { arity_ = arity; } in set_arity() argument
/external/smali/baksmali/src/main/java/org/jf/baksmali/
DDisassembleCommand.java66 @Parameter(names = {"--debug-info", "--di"}, arity = 1,
76 @Parameter(names = {"--resolve-resources", "--rr"}, arity = 2,
96 @Parameter(names = {"--accessor-comments", "--ac"}, arity = 1,
112 @Parameter(names = {"--parameter-registers", "--preg", "--pr"}, arity = 1,
/external/jcommander/src/main/java/com/beust/jcommander/
DJCommander.java721 && pd.getParameter().arity() == -1) { in parseValues()
843 int arity = va.processVariableArity(pd.getParameter().names()[0], in processVariableArity() local
846 int result = processFixedArity(args, index, pd, List.class, arity); in processVariableArity()
854 int arity = pd.getParameter().arity(); in processFixedArity() local
855 int n = (arity != -1 ? arity : 1); in processFixedArity()
861 Class<?> fieldType, int arity) { in processFixedArity() argument
865 if (arity == 0 && in processFixedArity()
873 if (index + arity < args.length) { in processFixedArity()
874 for (int j = 1; j <= arity; j++) { in processFixedArity()
878 index += arity + offset; in processFixedArity()
[all …]
DWrappedParameter.java29 public int arity() { in arity() method in WrappedParameter
30 return m_parameter != null ? m_parameter.arity() : 1; in arity()
/external/v8/src/wasm/baseline/
Dliftoff-assembler.cc270 uint32_t arity) { in InitMerge() argument
273 stack_state.resize(stack_base + arity, VarState(kWasmStmt)); in InitMerge()
282 auto src_idx = range ? 0 : source.stack_state.size() - arity; in InitMerge()
284 auto dst_idx = range ? 0 : stack_state.size() - arity; in InitMerge()
396 void LiftoffAssembler::MergeStackWith(CacheState& target, uint32_t arity) { in MergeStackWith() argument
405 DCHECK_LE(arity, target_stack_height); in MergeStackWith()
406 uint32_t stack_base = stack_height - arity; in MergeStackWith()
407 uint32_t target_stack_base = target_stack_height - arity; in MergeStackWith()
412 for (uint32_t i = 0; i < arity; ++i) { in MergeStackWith()
/external/v8/src/wasm/
Dfunction-body-decoder-impl.h466 uint32_t arity; member
479 DCHECK_GT(arity, i);
480 return arity == 1 ? vals.first : vals.array[i];
1347 DCHECK_GT(merge->arity, i); in GetMergeValueFromStack()
1348 DCHECK_GE(stack_.size(), c->stack_depth + merge->arity); in GetMergeValueFromStack()
1349 return stack_[stack_.size() - merge->arity + i]; in GetMergeValueFromStack()
1674 uint32_t arity = c->br_merge()->arity; in DecodeFunctionBody() local
1676 br_arity = arity; in DecodeFunctionBody()
1677 } else if (!VALIDATE(br_arity == arity)) { in DecodeFunctionBody()
1681 i, br_arity, arity); in DecodeFunctionBody()
[all …]
Dwasm-interpreter.cc674 explicit CLabel(Zone* zone, uint32_t target_stack_height, uint32_t arity) in SideTable() argument
676 arity(arity), in SideTable()
687 const uint32_t arity; in SideTable() member in v8::internal::wasm::__anon49171a620111::SideTable::SideTable::CLabel
690 static CLabel* New(Zone* zone, uint32_t stack_height, uint32_t arity) { in SideTable() argument
691 return new (zone) CLabel(zone, stack_height, arity); in SideTable()
720 entry.target_arity = arity; in SideTable()
1241 unsigned arity; member
1280 size_t arity = code->function->sig->parameter_count(); in PushFrame() local
1282 DCHECK_GE(StackHeight(), arity); in PushFrame()
1283 frames_.push_back({code, 0, StackHeight() - arity}); in PushFrame()
[all …]
/external/llvm/test/CodeGen/X86/GC/
Derlang-gc.ll13 ; CHECK64-NEXT: .short 0 # stack arity
21 ; CHECK32-NEXT: .short 0 # stack arity
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/X86/GC/
Derlang-gc.ll13 ; CHECK64-NEXT: .short 0 # stack arity
21 ; CHECK32-NEXT: .short 0 # stack arity
/external/skia/src/utils/
DSkCallableTraits.h15 static constexpr std::size_t arity = sizeof...(Args); member
17 static_assert(N < arity, "");
/external/skqp/src/utils/
DSkCallableTraits.h15 static constexpr std::size_t arity = sizeof...(Args); member
17 static_assert(N < arity, "");
/external/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DRubyBuilder.java94 if (block.arity() == Arity.ONE_ARGUMENT) { in addMessage()
123 if (block.arity() == Arity.ONE_ARGUMENT) { in addEnum()

1234