Home
last modified time | relevance | path

Searched refs:STATIC_ASSERT (Results 1 – 25 of 319) sorted by relevance

12345678910>>...13

/external/virglrenderer/src/gallium/auxiliary/tgsi/
Dtgsi_strings.c229 STATIC_ASSERT(Elements(tgsi_semantic_names) == TGSI_SEMANTIC_COUNT); in tgsi_strings_check()
230 STATIC_ASSERT(Elements(tgsi_texture_names) == TGSI_TEXTURE_COUNT); in tgsi_strings_check()
231 STATIC_ASSERT(Elements(tgsi_property_names) == TGSI_PROPERTY_COUNT); in tgsi_strings_check()
232 STATIC_ASSERT(Elements(tgsi_primitive_names) == PIPE_PRIM_MAX); in tgsi_strings_check()
233 STATIC_ASSERT(Elements(tgsi_interpolate_names) == TGSI_INTERPOLATE_COUNT); in tgsi_strings_check()
234 STATIC_ASSERT(Elements(tgsi_return_type_names) == TGSI_RETURN_TYPE_COUNT); in tgsi_strings_check()
246 STATIC_ASSERT(Elements(tgsi_file_names) == TGSI_FILE_COUNT); in tgsi_file_name()
/external/mesa3d/src/gallium/auxiliary/tgsi/
Dtgsi_strings.c240 STATIC_ASSERT(ARRAY_SIZE(tgsi_semantic_names) == TGSI_SEMANTIC_COUNT); in tgsi_strings_check()
241 STATIC_ASSERT(ARRAY_SIZE(tgsi_texture_names) == TGSI_TEXTURE_COUNT); in tgsi_strings_check()
242 STATIC_ASSERT(ARRAY_SIZE(tgsi_property_names) == TGSI_PROPERTY_COUNT); in tgsi_strings_check()
243 STATIC_ASSERT(ARRAY_SIZE(tgsi_primitive_names) == PIPE_PRIM_MAX); in tgsi_strings_check()
244 STATIC_ASSERT(ARRAY_SIZE(tgsi_interpolate_names) == TGSI_INTERPOLATE_COUNT); in tgsi_strings_check()
245 STATIC_ASSERT(ARRAY_SIZE(tgsi_return_type_names) == TGSI_RETURN_TYPE_COUNT); in tgsi_strings_check()
257 STATIC_ASSERT(ARRAY_SIZE(tgsi_file_names) == TGSI_FILE_COUNT); in tgsi_file_name()
/external/v8/src/base/
Datomic-utils.h59 STATIC_ASSERT(sizeof(T) <= sizeof(base::AtomicWord));
88 STATIC_ASSERT(sizeof(T) <= sizeof(base::Atomic32));
94 STATIC_ASSERT(sizeof(T) <= sizeof(base::Atomic32));
101 STATIC_ASSERT(sizeof(T) <= sizeof(base::Atomic32));
108 STATIC_ASSERT(sizeof(T) <= sizeof(base::Atomic32));
116 STATIC_ASSERT(sizeof(T) <= sizeof(base::Atomic32));
126 STATIC_ASSERT(sizeof(T) <= sizeof(base::Atomic32));
161 STATIC_ASSERT(sizeof(T) <= sizeof(base::AtomicWord));
167 STATIC_ASSERT(sizeof(T) <= sizeof(base::AtomicWord));
174 STATIC_ASSERT(sizeof(T) <= sizeof(base::AtomicWord));
[all …]
/external/mesa3d/src/mesa/state_tracker/
Dst_atom_depth.c55 STATIC_ASSERT(PIPE_FUNC_NEVER == GL_NEVER - GL_NEVER); in st_compare_func_to_pipe()
56 STATIC_ASSERT(PIPE_FUNC_LESS == GL_LESS - GL_NEVER); in st_compare_func_to_pipe()
57 STATIC_ASSERT(PIPE_FUNC_EQUAL == GL_EQUAL - GL_NEVER); in st_compare_func_to_pipe()
58 STATIC_ASSERT(PIPE_FUNC_LEQUAL == GL_LEQUAL - GL_NEVER); in st_compare_func_to_pipe()
59 STATIC_ASSERT(PIPE_FUNC_GREATER == GL_GREATER - GL_NEVER); in st_compare_func_to_pipe()
60 STATIC_ASSERT(PIPE_FUNC_NOTEQUAL == GL_NOTEQUAL - GL_NEVER); in st_compare_func_to_pipe()
61 STATIC_ASSERT(PIPE_FUNC_GEQUAL == GL_GEQUAL - GL_NEVER); in st_compare_func_to_pipe()
62 STATIC_ASSERT(PIPE_FUNC_ALWAYS == GL_ALWAYS - GL_NEVER); in st_compare_func_to_pipe()
/external/v8/src/
Dproperty-details.h47 STATIC_ASSERT(ALL_PROPERTIES == static_cast<PropertyFilter>(NONE));
48 STATIC_ASSERT(ONLY_WRITABLE == static_cast<PropertyFilter>(READ_ONLY));
49 STATIC_ASSERT(ONLY_ENUMERABLE == static_cast<PropertyFilter>(DONT_ENUM));
50 STATIC_ASSERT(ONLY_CONFIGURABLE == static_cast<PropertyFilter>(DONT_DELETE));
51 STATIC_ASSERT(((SKIP_STRINGS | SKIP_SYMBOLS | ONLY_ALL_CAN_READ) &
53 STATIC_ASSERT(ALL_PROPERTIES ==
55 STATIC_ASSERT(ONLY_WRITABLE ==
57 STATIC_ASSERT(ONLY_ENUMERABLE ==
59 STATIC_ASSERT(ONLY_CONFIGURABLE == static_cast<PropertyFilter>(
61 STATIC_ASSERT(SKIP_STRINGS ==
[all …]
Delements-kind.cc56 STATIC_ASSERT(FixedArray::kHeaderSize == FixedDoubleArray::kHeaderSize); in GetDefaultHeaderSizeForElementsKind()
79 STATIC_ASSERT(PACKED_SMI_ELEMENTS == FIRST_FAST_ELEMENTS_KIND); in Construct()
88 STATIC_ASSERT(PACKED_SMI_ELEMENTS + kFastElementsKindPackedToHoley == in Construct()
90 STATIC_ASSERT(PACKED_DOUBLE_ELEMENTS + kFastElementsKindPackedToHoley == in Construct()
92 STATIC_ASSERT(PACKED_ELEMENTS + kFastElementsKindPackedToHoley == in Construct()
Dfeedback-vector.h125 STATIC_ASSERT(FeedbackSlotKind::kStoreGlobalSloppy <= in GetLanguageModeFromSlotKind()
127 STATIC_ASSERT(FeedbackSlotKind::kStoreKeyedSloppy <= in GetLanguageModeFromSlotKind()
129 STATIC_ASSERT(FeedbackSlotKind::kStoreNamedSloppy <= in GetLanguageModeFromSlotKind()
356 STATIC_ASSERT(LanguageModeSize == 2); in AddStoreICSlot()
367 STATIC_ASSERT(LanguageModeSize == 2); in AddStoreGlobalICSlot()
374 STATIC_ASSERT(LanguageModeSize == 2); in AddKeyedStoreICSlot()
492 STATIC_ASSERT(static_cast<int>(FeedbackSlotKind::kKindsNumber) <
506 STATIC_ASSERT((Name::kEmptyHashField & kHeapObjectTag) == kHeapObjectTag);
507 STATIC_ASSERT(Name::kEmptyHashField == 0x3);
509 STATIC_ASSERT(Name::kHashNotComputedMask == kHeapObjectTag);
[all …]
Dregister-configuration.cc58 STATIC_ASSERT(RegisterConfiguration::kMaxGeneralRegisters >=
60 STATIC_ASSERT(RegisterConfiguration::kMaxFPRegisters >=
62 STATIC_ASSERT(RegisterConfiguration::kMaxFPRegisters >=
64 STATIC_ASSERT(RegisterConfiguration::kMaxFPRegisters >=
381 STATIC_ASSERT(static_cast<int>(MachineRepresentation::kSimd128) ==
383 STATIC_ASSERT(static_cast<int>(MachineRepresentation::kFloat64) ==
/external/v8/src/objects/
Djs-list-format.h92 STATIC_ASSERT(Style::LONG <= StyleBits::kMax);
93 STATIC_ASSERT(Style::SHORT <= StyleBits::kMax);
94 STATIC_ASSERT(Style::NARROW <= StyleBits::kMax);
95 STATIC_ASSERT(Type::CONJUNCTION <= TypeBits::kMax);
96 STATIC_ASSERT(Type::DISJUNCTION <= TypeBits::kMax);
97 STATIC_ASSERT(Type::UNIT <= TypeBits::kMax);
Djs-relative-time-format.h86 STATIC_ASSERT(Style::LONG <= StyleBits::kMax);
87 STATIC_ASSERT(Style::SHORT <= StyleBits::kMax);
88 STATIC_ASSERT(Style::NARROW <= StyleBits::kMax);
89 STATIC_ASSERT(Numeric::AUTO <= NumericBits::kMax);
90 STATIC_ASSERT(Numeric::ALWAYS <= NumericBits::kMax);
Dstring-inl.h55 STATIC_ASSERT(kNotInternalizedTag != 0); in IsInternalized()
100 STATIC_ASSERT((kStringRepresentationMask | kStringEncodingMask) ==
103 STATIC_ASSERT(static_cast<uint32_t>(kStringEncodingMask) ==
118 STATIC_ASSERT((kExternalStringTag | kOneByteStringTag) ==
121 STATIC_ASSERT(v8::String::ONE_BYTE_ENCODING == kOneByteStringTag);
127 STATIC_ASSERT((kExternalStringTag | kTwoByteStringTag) ==
130 STATIC_ASSERT(v8::String::TWO_BYTE_ENCODING == kTwoByteStringTag);
144 STATIC_ASSERT(kIsIndirectStringTag != 0); in IsOneByteRepresentationUnderneath()
145 STATIC_ASSERT((kIsIndirectStringMask & kStringEncodingMask) == 0); in IsOneByteRepresentationUnderneath()
159 STATIC_ASSERT(kIsIndirectStringTag != 0); in IsTwoByteRepresentationUnderneath()
[all …]
Djs-promise.h87 STATIC_ASSERT(v8::Promise::kPending == 0);
88 STATIC_ASSERT(v8::Promise::kFulfilled == 1);
89 STATIC_ASSERT(v8::Promise::kRejected == 2);
/external/v8/src/arm64/
Dcode-stubs-arm64.cc359 STATIC_ASSERT(kCallApiFunctionSpillSpace == 4); in CallApiFunctionAndReturn()
478 STATIC_ASSERT(FCA::kArgsLength == 6); in Generate()
479 STATIC_ASSERT(FCA::kNewTargetIndex == 5); in Generate()
480 STATIC_ASSERT(FCA::kDataIndex == 4); in Generate()
481 STATIC_ASSERT(FCA::kReturnValueOffset == 3); in Generate()
482 STATIC_ASSERT(FCA::kReturnValueDefaultValueIndex == 2); in Generate()
483 STATIC_ASSERT(FCA::kIsolateIndex == 1); in Generate()
484 STATIC_ASSERT(FCA::kHolderIndex == 0); in Generate()
545 STATIC_ASSERT(PropertyCallbackArguments::kShouldThrowOnErrorIndex == 0); in Generate()
546 STATIC_ASSERT(PropertyCallbackArguments::kHolderIndex == 1); in Generate()
[all …]
/external/v8/src/ia32/
Dcode-stubs-ia32.cc362 STATIC_ASSERT(FCA::kArgsLength == 6); in Generate()
363 STATIC_ASSERT(FCA::kNewTargetIndex == 5); in Generate()
364 STATIC_ASSERT(FCA::kDataIndex == 4); in Generate()
365 STATIC_ASSERT(FCA::kReturnValueOffset == 3); in Generate()
366 STATIC_ASSERT(FCA::kReturnValueDefaultValueIndex == 2); in Generate()
367 STATIC_ASSERT(FCA::kIsolateIndex == 1); in Generate()
368 STATIC_ASSERT(FCA::kHolderIndex == 0); in Generate()
434 STATIC_ASSERT(PropertyCallbackArguments::kShouldThrowOnErrorIndex == 0); in Generate()
435 STATIC_ASSERT(PropertyCallbackArguments::kHolderIndex == 1); in Generate()
436 STATIC_ASSERT(PropertyCallbackArguments::kIsolateIndex == 2); in Generate()
[all …]
/external/mesa3d/src/intel/compiler/
Dbrw_compiler.c171 STATIC_ASSERT(MESA_SHADER_VERTEX == 0); in brw_prog_data_size()
172 STATIC_ASSERT(MESA_SHADER_TESS_CTRL == 1); in brw_prog_data_size()
173 STATIC_ASSERT(MESA_SHADER_TESS_EVAL == 2); in brw_prog_data_size()
174 STATIC_ASSERT(MESA_SHADER_GEOMETRY == 3); in brw_prog_data_size()
175 STATIC_ASSERT(MESA_SHADER_FRAGMENT == 4); in brw_prog_data_size()
176 STATIC_ASSERT(MESA_SHADER_COMPUTE == 5); in brw_prog_data_size()
/external/v8/src/arm/
Dcode-stubs-arm.cc463 STATIC_ASSERT(FCA::kArgsLength == 6); in Generate()
464 STATIC_ASSERT(FCA::kNewTargetIndex == 5); in Generate()
465 STATIC_ASSERT(FCA::kDataIndex == 4); in Generate()
466 STATIC_ASSERT(FCA::kReturnValueOffset == 3); in Generate()
467 STATIC_ASSERT(FCA::kReturnValueDefaultValueIndex == 2); in Generate()
468 STATIC_ASSERT(FCA::kIsolateIndex == 1); in Generate()
469 STATIC_ASSERT(FCA::kHolderIndex == 0); in Generate()
531 STATIC_ASSERT(PropertyCallbackArguments::kShouldThrowOnErrorIndex == 0); in Generate()
532 STATIC_ASSERT(PropertyCallbackArguments::kHolderIndex == 1); in Generate()
533 STATIC_ASSERT(PropertyCallbackArguments::kIsolateIndex == 2); in Generate()
[all …]
/external/v8/src/ppc/
Dcode-stubs-ppc.cc484 STATIC_ASSERT(FCA::kArgsLength == 6); in Generate()
485 STATIC_ASSERT(FCA::kNewTargetIndex == 5); in Generate()
486 STATIC_ASSERT(FCA::kDataIndex == 4); in Generate()
487 STATIC_ASSERT(FCA::kReturnValueOffset == 3); in Generate()
488 STATIC_ASSERT(FCA::kReturnValueDefaultValueIndex == 2); in Generate()
489 STATIC_ASSERT(FCA::kIsolateIndex == 1); in Generate()
490 STATIC_ASSERT(FCA::kHolderIndex == 0); in Generate()
559 STATIC_ASSERT(PropertyCallbackArguments::kShouldThrowOnErrorIndex == 0); in Generate()
560 STATIC_ASSERT(PropertyCallbackArguments::kHolderIndex == 1); in Generate()
561 STATIC_ASSERT(PropertyCallbackArguments::kIsolateIndex == 2); in Generate()
[all …]
/external/v8/src/mips/
Dcode-stubs-mips.cc460 STATIC_ASSERT(FCA::kArgsLength == 6); in Generate()
461 STATIC_ASSERT(FCA::kNewTargetIndex == 5); in Generate()
462 STATIC_ASSERT(FCA::kDataIndex == 4); in Generate()
463 STATIC_ASSERT(FCA::kReturnValueOffset == 3); in Generate()
464 STATIC_ASSERT(FCA::kReturnValueDefaultValueIndex == 2); in Generate()
465 STATIC_ASSERT(FCA::kIsolateIndex == 1); in Generate()
466 STATIC_ASSERT(FCA::kHolderIndex == 0); in Generate()
523 STATIC_ASSERT(PropertyCallbackArguments::kShouldThrowOnErrorIndex == 0); in Generate()
524 STATIC_ASSERT(PropertyCallbackArguments::kHolderIndex == 1); in Generate()
525 STATIC_ASSERT(PropertyCallbackArguments::kIsolateIndex == 2); in Generate()
[all …]
/external/v8/src/x64/
Dcode-stubs-x64.cc420 STATIC_ASSERT(FCA::kArgsLength == 6); in Generate()
421 STATIC_ASSERT(FCA::kNewTargetIndex == 5); in Generate()
422 STATIC_ASSERT(FCA::kDataIndex == 4); in Generate()
423 STATIC_ASSERT(FCA::kReturnValueOffset == 3); in Generate()
424 STATIC_ASSERT(FCA::kReturnValueDefaultValueIndex == 2); in Generate()
425 STATIC_ASSERT(FCA::kIsolateIndex == 1); in Generate()
426 STATIC_ASSERT(FCA::kHolderIndex == 0); in Generate()
516 STATIC_ASSERT(PropertyCallbackArguments::kShouldThrowOnErrorIndex == 0); in Generate()
517 STATIC_ASSERT(PropertyCallbackArguments::kHolderIndex == 1); in Generate()
518 STATIC_ASSERT(PropertyCallbackArguments::kIsolateIndex == 2); in Generate()
[all …]
/external/v8/src/mips64/
Dcode-stubs-mips64.cc463 STATIC_ASSERT(FCA::kArgsLength == 6); in Generate()
464 STATIC_ASSERT(FCA::kNewTargetIndex == 5); in Generate()
465 STATIC_ASSERT(FCA::kDataIndex == 4); in Generate()
466 STATIC_ASSERT(FCA::kReturnValueOffset == 3); in Generate()
467 STATIC_ASSERT(FCA::kReturnValueDefaultValueIndex == 2); in Generate()
468 STATIC_ASSERT(FCA::kIsolateIndex == 1); in Generate()
469 STATIC_ASSERT(FCA::kHolderIndex == 0); in Generate()
528 STATIC_ASSERT(PropertyCallbackArguments::kShouldThrowOnErrorIndex == 0); in Generate()
529 STATIC_ASSERT(PropertyCallbackArguments::kHolderIndex == 1); in Generate()
530 STATIC_ASSERT(PropertyCallbackArguments::kIsolateIndex == 2); in Generate()
[all …]
/external/v8/src/s390/
Dcode-stubs-s390.cc517 STATIC_ASSERT(FCA::kArgsLength == 6); in Generate()
518 STATIC_ASSERT(FCA::kNewTargetIndex == 5); in Generate()
519 STATIC_ASSERT(FCA::kDataIndex == 4); in Generate()
520 STATIC_ASSERT(FCA::kReturnValueOffset == 3); in Generate()
521 STATIC_ASSERT(FCA::kReturnValueDefaultValueIndex == 2); in Generate()
522 STATIC_ASSERT(FCA::kIsolateIndex == 1); in Generate()
523 STATIC_ASSERT(FCA::kHolderIndex == 0); in Generate()
591 STATIC_ASSERT(PropertyCallbackArguments::kShouldThrowOnErrorIndex == 0); in Generate()
592 STATIC_ASSERT(PropertyCallbackArguments::kHolderIndex == 1); in Generate()
593 STATIC_ASSERT(PropertyCallbackArguments::kIsolateIndex == 2); in Generate()
[all …]
/external/mesa3d/src/compiler/
Dshader_enums.c47 STATIC_ASSERT(ARRAY_SIZE(names) == MESA_SHADER_STAGES); in gl_shader_stage_name()
126 STATIC_ASSERT(ARRAY_SIZE(names) == VERT_ATTRIB_MAX); in gl_vert_attrib_name()
198 STATIC_ASSERT(ARRAY_SIZE(names) == VARYING_SLOT_MAX); in gl_varying_slot_name()
238 STATIC_ASSERT(ARRAY_SIZE(names) == SYSTEM_VALUE_MAX); in gl_system_value_name()
251 STATIC_ASSERT(ARRAY_SIZE(names) == INTERP_MODE_COUNT); in glsl_interp_mode_name()
272 STATIC_ASSERT(ARRAY_SIZE(names) == FRAG_RESULT_MAX); in gl_frag_result_name()
/external/v8/src/snapshot/
Dserializer-common.h108 STATIC_ASSERT(MAP_SPACE == CODE_SPACE + 1);
111 STATIC_ASSERT(LAST_SPACE == NEW_LO_SPACE);
112 STATIC_ASSERT(LAST_SPACE - 1 == LO_SPACE);
151 STATIC_ASSERT(6 == kNumberOfSpaces);
178 STATIC_ASSERT(kNumberOfSpaces <= kSpaceMask + 1);
266 STATIC_ASSERT(kNumberOfHotObjects == HotObjectsList::kSize);
Ddefault-serializer-allocator.cc122 STATIC_ASSERT(MAP_SPACE == kNumberOfPreallocatedSpaces); in EncodeReservations()
126 STATIC_ASSERT(LO_SPACE == MAP_SPACE + 1); in EncodeReservations()
149 STATIC_ASSERT(MAP_SPACE == kNumberOfPreallocatedSpaces); in OutputStatistics()
152 STATIC_ASSERT(LO_SPACE == MAP_SPACE + 1); in OutputStatistics()
/external/v8/src/ic/
Dhandler-configuration.h72 STATIC_ASSERT(DescriptorBits::kNext <= kSmiValueSize);
84 STATIC_ASSERT(FieldIndexBits::kNext <= kSmiValueSize);
101 STATIC_ASSERT(ElementsKindBits::kNext <= kSmiValueSize);
234 STATIC_ASSERT(DescriptorBits::kNext <= kSmiValueSize);
247 STATIC_ASSERT(FieldIndexBits::kNext <= kSmiValueSize);

12345678910>>...13