Home
last modified time | relevance | path

Searched refs:is_array (Results 1 – 25 of 83) sorted by relevance

1234

/external/libweave/third_party/chromium/base/
Dtemplate_util_unittest.cc21 using std::is_array;
34 static_assert(!is_array<int>::value, "IsArray");
35 static_assert(!is_array<int*>::value, "IsArray");
36 static_assert(!is_array<int (*)[3]>::value, "IsArray");
37 static_assert(is_array<int[]>::value, "IsArray");
38 static_assert(is_array<const int[]>::value, "IsArray");
39 static_assert(is_array<int[3]>::value, "IsArray");
/external/libchrome/base/
Dtemplate_util_unittest.cc26 static_assert(!is_array<int>::value, "IsArray");
27 static_assert(!is_array<int*>::value, "IsArray");
28 static_assert(!is_array<int (*)[3]>::value, "IsArray");
29 static_assert(is_array<int[]>::value, "IsArray");
30 static_assert(is_array<const int[]>::value, "IsArray");
31 static_assert(is_array<int[3]>::value, "IsArray");
Dtemplate_util.h45 template<class> struct is_array : public false_type {};
46 template<class T, size_t n> struct is_array<T[n]> : public true_type {};
47 template<class T> struct is_array<T[]> : public true_type {};
/external/mesa3d/src/glsl/
Dlink_uniforms.cpp53 } else if (type->is_array() && type->fields.array->is_sampler()) { in values_for_type()
66 if (t->is_record() || (t->is_array() && t->fields.array->is_record())) { in process()
95 } else if (t->is_array() && t->fields.array->is_record()) { in recursion()
158 assert(!(type->is_array() && type->fields.array->is_record())); in visit_field()
168 type->is_array() ? type->array_size() : 1; in visit_field()
262 assert(!(type->is_array() && type->fields.array->is_record())); in visit_field()
282 const unsigned shadow = (type->is_array()) in visit_field()
297 if (type->is_array()) { in visit_field()
341 if (type->is_array()) { in visit_field()
349 (type->is_array() && type->fields.array->is_matrix())) { in visit_field()
Dast.h320 ast_declaration(const char *identifier, int is_array, ast_expression *array_size,
326 int is_array; variable
475 is_array(false), array_size(NULL), precision(ast_precision_none), in ast_type_specifier()
484 is_array(false), array_size(NULL), precision(ast_precision_none), in ast_type_specifier()
501 int is_array; variable
553 this->is_array = false; in ast_parameter_declarator()
564 int is_array; variable
Dglsl_types.h212 return is_array() ? fields.array : NULL; in element_type()
383 bool is_array() const in is_array() function
467 return is_array() ? length : -1; in array_size()
Dglsl_parser_extras.cpp489 ast_opt_array_size_print(bool is_array, const ast_expression *array_size) in ast_opt_array_size_print() argument
491 if (is_array) { in ast_opt_array_size_print()
706 ast_opt_array_size_print(is_array, array_size); in print()
722 ast_opt_array_size_print(is_array, array_size); in print()
731 ast_declaration::ast_declaration(const char *identifier, int is_array, in ast_declaration() argument
736 this->is_array = is_array; in ast_declaration()
Dglsl_types.cpp117 if (this->is_array()) { in contains_sampler()
133 const glsl_type *const t = (this->is_array()) ? this->fields.array : this; in sampler_index()
676 if (this->is_array()) { in std140_base_alignment()
779 if (this->is_matrix() || (this->is_array() && in std140_size()
785 if (this->is_array()) { in std140_size()
818 if (this->is_array()) { in std140_size()
Dast_to_hir.cpp646 if (is_initializer && lhs_type->is_array() && rhs->type->is_array() in validate_assignment()
697 } else if (state->language_version <= 110 && lhs->type->is_array()) { in do_assignment()
1159 && (op[0]->type->is_array() || op[1]->type->is_array())) { in hir()
1427 if ((state->language_version <= 110) && type->is_array()) { in hir()
1543 if (!array->type->is_array() in hir()
1614 if (array->type->is_array()) { in hir()
1635 if (array->type->is_array()) { in hir()
1659 if (array->type->is_array() && in hir()
1846 if (base->is_array()) { in process_array_type()
1907 if (this->is_array) { in glsl_type()
[all …]
Dopt_array_splitting.cpp56 if (var->type->is_array()) in variable_entry()
125 if (!(var->type->is_array() || var->type->is_matrix())) in get_variable_entry()
131 if (var->type->is_array() && var->type->length == 0) in get_variable_entry()
Dir.cpp602 || type->is_record() || type->is_array()); in ir_constant()
604 if (type->is_array()) { in ir_constant()
736 || type->is_record() || type->is_array()); in zero()
742 if (type->is_array()) { in zero()
830 assert(this->type->is_array()); in get_array_element()
934 assert (!type->is_array() && !type->is_record()); in copy_masked_offset()
971 if (this->type->is_array()) { in has_value()
1229 if (vt->is_array()) { in set_array()
1665 } else if (constant->type->is_array()) { in steal_memory()
Dlink_uniform_initializers.cpp99 } else if (type->is_array() && type->fields.array->is_record()) { in set_uniform_initializer()
120 if (val->type->is_array()) { in set_uniform_initializer()
Dir_set_program_inouts.cpp112 if (ir->type->is_array()) { in visit()
139 if (deref_var->type->is_array() && in visit_enter()
Dlower_vec_index_to_cond_assign.cpp80 orig_deref->array->type->is_array()) in convert_vec_index_to_cond_assign()
178 orig_deref->array->type->is_array()) in visit_leave()
/external/v8/src/js/
Darray.js157 function UseSparseVariant(array, length, is_array, touched) { argument
161 if (!is_array || length < 1000 || %IsObserved(array) ||
178 var is_array = IS_ARRAY(array);
180 if (is_array) {
188 if (UseSparseVariant(array, length, is_array, length)) {
247 if (is_array) visited_arrays.length = visited_arrays.length - 1;
366 var is_array = IS_ARRAY(array);
369 if (HAS_INDEX(array, index, is_array)) {
378 var is_array = IS_ARRAY(array);
386 if (HAS_INDEX(array, from_index, is_array)) {
[all …]
/external/webrtc/webrtc/base/
Dtemplate_util.h40 template<class> struct is_array : public false_type {};
41 template<class T, size_t n> struct is_array<T[n]> : public true_type {};
42 template<class T> struct is_array<T[]> : public true_type {};
/external/libcxx/test/std/utilities/meta/meta.unary/meta.unary.cat/
Dlvalue_ref.pass.cpp25 static_assert(!std::is_array<T>::value, ""); in test_lvalue_ref()
Drvalue_ref.pass.cpp25 static_assert(!std::is_array<T>::value, ""); in test_rvalue_ref()
Dfloating_point.pass.cpp25 static_assert(!std::is_array<T>::value, ""); in test_floating_point_imp()
Dvoid.pass.cpp25 static_assert(!std::is_array<T>::value, ""); in test_void_imp()
Dmember_object_pointer.pass.cpp25 static_assert(!std::is_array<T>::value, ""); in test_member_object_pointer_imp()
Dclass.pass.cpp25 static_assert(!std::is_array<T>::value, ""); in test_class_imp()
Dnullptr.pass.cpp25 static_assert(!std::is_array<T>::value, ""); in test_nullptr_imp()
Denum.pass.cpp25 static_assert(!std::is_array<T>::value, ""); in test_enum_imp()
Dunion.pass.cpp25 static_assert(!std::is_array<T>::value, ""); in test_union_imp()

1234