Home
last modified time | relevance | path

Searched refs:ASSERT_PRINT (Results 1 – 25 of 72) sorted by relevance

123

/arkcompiler/runtime_core/compiler/optimizer/analysis/
Drpo.h50 ASSERT_PRINT(IsValid(), "RPO is invalid"); in RemoveBasicBlock()
59 ASSERT_PRINT(IsValid(), "RPO is invalid"); in AddBasicBlockAfter()
66 ASSERT_PRINT(IsValid(), "RPO is invalid"); in AddBasicBlockBefore()
73 ASSERT_PRINT(IsValid(), "RPO is invalid"); in AddVectorAfter()
Drpo.cpp50 ASSERT_PRINT(marker_ != UNDEF_MARKER, "There are no free markers. Please erase unused markers"); in RunImpl()
/arkcompiler/runtime_core/compiler/optimizer/ir/
Dgraph_checker.cpp108 ASSERT_PRINT(block->GetGraph() == GetGraph(), "Block linked to incorrect graph"); in Check()
109ASSERT_PRINT(block->GetId() == blocks_id, "Block ID must be equal to its ID in graph vector"); in Check()
113 ASSERT_PRINT(blocks_count == GetGraph()->GetBlocksRPO().size(), "There is disconnected block"); in Check()
164 ASSERT_PRINT(block->IsEndBlock() || block->IsTryBegin() || block->IsTryEnd() || in CheckControlFlow()
169ASSERT_PRINT(CheckBlockHasSuccessor(pred, block), "Block is not a successor to its predecessor"); in CheckControlFlow()
172ASSERT_PRINT(CheckBlockHasPredecessor(succ, block), "Block is not a predecessor to its successor"); in CheckControlFlow()
176ASSERT_PRINT(block->GetSuccessor(0) != block->GetSuccessor(1), "Wrong CFG - block with two same su… in CheckControlFlow()
197ASSERT_PRINT(*block->AllInsts().begin() == inst, "First block instruction isn't correct"); in CheckDataFlow()
200ASSERT_PRINT(*block->AllInstsSafeReverse().begin() == inst, "Last block instruction isn't correct"… in CheckDataFlow()
267ASSERT_PRINT(GetGraph()->GetStartBlock()->GetPredsBlocks().empty(), "Start block can't have predec… in CheckStartBlock()
[all …]
Dbasicblock.cpp86ASSERT_PRINT(it == succs_.end() || can_add_empty_block, "Uncovered case where empty block needed t… in AddSucc()
100ASSERT_PRINT(it == succs_.end() || can_add_empty_block, "Uncovered case where empty block needed t… in ReplaceSucc()
353 ASSERT_PRINT(inst->IsPhi(), "Instruction must be phi"); in AppendPhi()
367 ASSERT_PRINT(prev && prev->IsPhi(), "There is no phi in the block"); in AppendPhi()
373 ASSERT_PRINT(last_inst_ && last_inst_->IsPhi(), in AppendPhi()
385 ASSERT_PRINT(!inst->IsPhi(), "Instruction mustn't be phi"); in AddInst()
398 ASSERT_PRINT(last_inst_, "Last instruction is undefined"); in AddInst()
424 ASSERT_PRINT(!inst_db->IsPhi(), "Instruction mustn't be phi"); in AppendRangeInst()
425ASSERT_PRINT(inst_db->GetBasicBlock() == this, "Inst::SetBasicBlock() should be called beforehand"… in AppendRangeInst()
428 ASSERT_PRINT(!inst_db->IsPhi(), "Instruction mustn't be phi"); in AppendRangeInst()
[all …]
Dgraph_cloner.h128ASSERT_PRINT(IsLoopSingleBackEdgeExitPoint(loop), "Cloning blocks doesn't have single entry/exit p… in UnrollLoopBody()
187ASSERT_PRINT(block->GetGraph() == GetGraph(), "GraphCloner probably caught disconnected block"); in GetClone()
204 ASSERT_PRINT(inst->GetBasicBlock()->GetGraph() == GetGraph(), in GetClone()
/arkcompiler/ets_runtime/ecmascript/
Decma_runtime_call_info.h99 ASSERT_PRINT(idx < GetArgsNumber(), "Can not set values out of index range"); in SetCallArg()
105 ASSERT_PRINT(GetArgsNumber() == 1, "args number is not 1"); in SetCallArg()
111 ASSERT_PRINT(GetArgsNumber() == 2, "args number is not 2"); // 2: args number in SetCallArg()
118 ASSERT_PRINT(GetArgsNumber() == 3, "args number is not 3"); // 3: args number in SetCallArg()
127 ASSERT_PRINT(GetArgsNumber() == 4, "args number is not 4"); // 4: args number in SetCallArg()
137 ASSERT_PRINT(GetArgsNumber() == 5, "args number is not 5"); // 5: args number in SetCallArg()
Djs_object.cpp367 ASSERT_PRINT(!obj->IsJSGlobalObject(), "Do not support get key of JSGlobal Object"); in GetAllKeys()
474 ASSERT_PRINT(obj->IsECMAObject(), "obj is not object"); in GetAllElementKeysByFilter()
602 ASSERT_PRINT(JSTaggedValue::IsPropertyKey(key), "Key is not a property key"); in GlobalSetProperty()
639ASSERT_PRINT(!(obj->IsUndefined() || obj->IsNull() || obj->IsHole()), "Obj is not a valid object"); in SetProperty()
640 ASSERT_PRINT(JSTaggedValue::IsPropertyKey(key), "Key is not a property key"); in SetProperty()
650 ASSERT_PRINT(obj->IsECMAObject(), "Obj is not a valid JSObject"); in SetProperty()
651 ASSERT_PRINT(JSTaggedValue::IsPropertyKey(key), "Key is not a property key"); in SetProperty()
660ASSERT_PRINT(!(obj->IsUndefined() || obj->IsNull() || obj->IsHole()), "Obj is not a valid object"); in SetProperty()
661 ASSERT_PRINT(JSTaggedValue::IsPropertyKey(key), "Key is not a property key"); in SetProperty()
671ASSERT_PRINT(!(obj->IsUndefined() || obj->IsNull() || obj->IsHole()), "Obj is not a valid object"); in SetProperty()
[all …]
Decma_string-inl.h67 ASSERT_PRINT(canBeCompress == CanBeCompressed(string), "Bad input canBeCompress!"); in CreateFromUtf8()
90 ASSERT_PRINT(canBeCompress == CanBeCompressed(string), "Bad input canBeCompress!"); in CreateFromUtf16()
178 ASSERT_PRINT(CanBeCompressed(string), "canBeCompresse does not match the real value!"); in FastSubUtf8String()
199ASSERT_PRINT(canBeCompressed == CanBeCompressed(string), "canBeCompresse does not match the real v… in FastSubUtf16String()
205 ASSERT_PRINT(IsLineString(), "EcmaString: Read data from not LineString"); in GetData()
211 ASSERT_PRINT(IsUtf8(), "EcmaString: Read data as utf8 for utf16 string"); in GetDataUtf8()
226 ASSERT_PRINT(IsUtf8(), "EcmaString: Read data as utf8 for utf16 string"); in GetDataUtf8Writable()
Djs_weak_container.cpp67ASSERT_PRINT(entry >= 0 && entry < GetSize(), "entry must be non-negative integer less than capaci… in GetKey()
73ASSERT_PRINT(entry >= 0 && entry < GetSize(), "entry must be non-negative integer less than capaci… in GetValue()
113ASSERT_PRINT(entry >= 0 && entry < GetSize(), "entry must be non-negative integer less than capaci… in GetValue()
Dglobal_dictionary-inl.h102 ASSERT_PRINT(offset + EntriesCount() <= static_cast<int>(keyArray->GetLength()), in GetAllKeys()
127ASSERT_PRINT(keyArrayEffectivelength + static_cast<uint32_t>(EntriesCount()) <= keyArray->GetLengt… in GetAllKeysByFilter()
161 ASSERT_PRINT(offset + EntriesCount() <= static_cast<int>(keyArray->GetLength()), in GetEnumAllKeys()
219 ASSERT_PRINT(attr.IsConfigurable(), "property must be configurable"); in InvalidateAndReplaceEntry()
220 ASSERT_PRINT(!box->GetValue().IsHole(), "value must not be hole"); in InvalidateAndReplaceEntry()
Djs_map.cpp71ASSERT_PRINT(entry >= 0 && entry < GetSize(), "entry must be non-negative integer less than capaci… in GetKey()
77ASSERT_PRINT(entry >= 0 && entry < GetSize(), "entry must be non-negative integer less than capaci… in GetValue()
Dlinked_hash_table.h109ASSERT_PRINT(entry >= 0 && entry < Capacity(), "entry must be a non-negative integer less than cap… in RemoveEntry()
136ASSERT_PRINT(newCapacity > atLeastSpaceFor, "new capacity must greater than atLeastSpaceFor"); in ComputeCapacityWithShrink()
203 ASSERT_PRINT(!GetNextTable().IsUndefined(), "function only execute after rehash"); in GetDeletedElementsAt()
219ASSERT_PRINT(newTable != nullptr && newTable->Capacity() > NumberOfElements(), "can not rehash to … in Rehash()
315 ASSERT_PRINT(!GetNextTable().IsUndefined(), "function only execute after rehash"); in GetDeletedNum()
321 ASSERT_PRINT(!GetNextTable().IsUndefined(), "function only execute after rehash"); in SetDeletedNum()
Djs_tagged_value.h165 ASSERT_PRINT(!IsImpureNaN(v), "pureNaN will break the encoding of tagged double: " in JSTaggedValue()
187 ASSERT_PRINT(IsHeapObject() && ((value_ & TAG_WEAK) == 0U), in CreateWeakRef()
194ASSERT_PRINT(IsHeapObject() && ((value_ & TAG_WEAK) == TAG_WEAK), "The tagged value is not a weak … in RemoveWeakTag()
200 ASSERT_PRINT(IsHeapObject() && ((value_ & TAG_WEAK) == 0U), in CreateAndGetWeakRef()
255ASSERT_PRINT(IsDouble(), "can not convert JSTaggedValue to Double : " << std::hex << value_); in GetDouble()
261 ASSERT_PRINT(IsInt(), "can not convert JSTaggedValue to Int :" << std::hex << value_); in GetInt()
273ASSERT_PRINT(IsHeapObject(), "can not convert JSTaggedValue to HeapObject :" << std::hex << value_… in GetRawHeapObject()
279ASSERT_PRINT(IsWeak(), "can not convert JSTaggedValue to WeakRef HeapObject :" << std::hex << valu… in GetWeakReferent()
285 ASSERT_PRINT(sizeof(void *) == TaggedTypeSize(), "32bit platform is not support yet"); in Cast()
382 ASSERT_PRINT(IsHeapObject() && ((value_ & TAG_WEAK) == 0U), in GetTaggedObject()
Dlayout_info.cpp62 ASSERT_PRINT(offset + end <= static_cast<int>(keyArray->GetLength()), in GetAllKeys()
92 ASSERT_PRINT(keyArrayEffectivelength + numberOfProps <= keyArray->GetLength(), in GetAllKeysByFilter()
148 ASSERT_PRINT(offset + end <= static_cast<int>(keyArray->GetLength()), in GetAllEnumKeys()
Djs_generator_object.cpp61 ASSERT_PRINT(state == JSGeneratorState::SUSPENDED_START || in GeneratorResume()
117 ASSERT_PRINT(state == JSGeneratorState::SUSPENDED_YIELD, "state is not suspendedYield"); in GeneratorResumeAbrupt()
Djs_function.cpp218ASSERT_PRINT(proto->IsHeapObject() || proto->IsUndefined(), "proto must be JSObject or Undefined"); in MakeConstructor()
219 ASSERT_PRINT(func->IsConstructor(), "func must be Constructor type"); in MakeConstructor()
224 ASSERT_PRINT(func->GetProtoOrHClass().IsHole() && func->IsExtensible(), in MakeConstructor()
226 ASSERT_PRINT(JSObject::HasProperty(thread, JSHandle<JSObject>(func), constructorKey), in MakeConstructor()
242 ASSERT_PRINT(status, "DefineProperty construct failed"); in MakeConstructor()
248 ASSERT_PRINT(status, "DefineProperty proto_type failed"); in MakeConstructor()
488 ASSERT_PRINT(func->IsExtensible(), "Function must be extensible"); in SetFunctionName()
489 ASSERT_PRINT(name->IsStringOrSymbol(), "name must be string or symbol"); in SetFunctionName()
494 ASSERT_PRINT(prefix->IsString(), "prefix must be string"); in SetFunctionName()
534 ASSERT_PRINT(func->IsExtensible(), "Function must be extensible"); in SetFunctionLength()
[all …]
Djs_promise.cpp67ASSERT_PRINT(promise->GetPromiseState() == PromiseState::PENDING, "FulfillPromise: state must be p… in FulfillPromise()
144ASSERT_PRINT(promise->GetPromiseState() == PromiseState::PENDING, "RejectPromise: state must be pe… in RejectPromise()
/arkcompiler/runtime_core/libpandabase/utils/
Dlogger.cpp47 ASSERT_PRINT(level == Level::LAST, "There are conflicting logger options"); in Initialize()
51 ASSERT_PRINT(level == Level::LAST, "There are conflicting logger options"); in Initialize()
55 ASSERT_PRINT(level == Level::LAST, "There are conflicting logger options"); in Initialize()
59 ASSERT_PRINT(level == Level::LAST, "There are conflicting logger options"); in Initialize()
63 ASSERT_PRINT(level == Level::LAST, "There are conflicting logger options"); in Initialize()
67 ASSERT_PRINT(level == Level::LAST, "There are conflicting logger options"); in Initialize()
/arkcompiler/ets_runtime/ecmascript/ic/
Dproperty_box.cpp23 ASSERT_PRINT(!GetValue().IsHole(), "value must not be hole"); in Clear()
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_arraybuffer.cpp465 ASSERT_PRINT(std::is_integral_v<T>, "T must be integral"); in GetValueFromBufferForInteger()
466 ASSERT_PRINT(sizeof(T) == size, "Invalid number size"); in GetValueFromBufferForInteger()
467 ASSERT_PRINT(sizeof(T) >= sizeof(uint16_t), "T must have a size more than uint8"); in GetValueFromBufferForInteger()
489 ASSERT_PRINT((std::is_same_v<T, float> || std::is_same_v<T, double>), "T must be correct type"); in GetValueFromBufferForFloat()
490 ASSERT_PRINT(sizeof(T) == size, "Invalid number size"); in GetValueFromBufferForFloat()
532ASSERT_PRINT((std::is_same_v<T, uint64_t> || std::is_same_v<T, int64_t>), "T must be uint64_t/int6… in GetValueFromBufferForBigInt()
547 ASSERT_PRINT((std::is_same_v<T, uint8_t> || std::is_same_v<T, int8_t>), "T must be int8/uint8"); in SetValueInBufferForByte()
578 ASSERT_PRINT(std::is_integral_v<T>, "T must be integral"); in SetValueInBufferForInteger()
579 ASSERT_PRINT(sizeof(T) >= sizeof(uint16_t), "T must have a size more than uint8"); in SetValueInBufferForInteger()
606 ASSERT_PRINT((std::is_same_v<T, float> || std::is_same_v<T, double>), "T must be float type"); in SetValueInBufferForFloat()
[all …]
Dbuiltins_promise_handler.cpp42 ASSERT_PRINT(resolve->GetPromise().IsECMAObject(), "Resolve: promise must be js object"); in Resolve()
114 ASSERT_PRINT(reject->GetPromise().IsECMAObject(), "Reject: promise must be js object"); in Reject()
143 ASSERT_PRINT(executor->GetCapability().IsRecord(), in Executor()
271 ASSERT_PRINT(onFinally->IsCallable(), "onFinally is not callable"); in ThenFinally()
282ASSERT_PRINT(thenFinallyConstructor->IsConstructor(), "thenFinallyConstructor is not constructor"); in ThenFinally()
312 ASSERT_PRINT(onFinally->IsCallable(), "thenOnFinally is not callable"); in CatchFinally()
323ASSERT_PRINT(catchFinallyConstructor->IsConstructor(), "catchFinallyConstructor is not constructor… in CatchFinally()
349 ASSERT_PRINT(constructor->IsECMAObject(), "PromiseResolve : is not callable"); in PromiseResolve()
/arkcompiler/ets_runtime/ecmascript/base/
Derror_helper.cpp167 ASSERT_PRINT(status == true, "return result exception!"); in ErrorCommonConstructor()
183 ASSERT_PRINT(status == true, "return result exception!"); in ErrorCommonConstructor()
192 ASSERT_PRINT(status == true, "return result exception!"); in ErrorCommonConstructor()
200 ASSERT_PRINT(status == true, "return result exception!"); in ErrorCommonConstructor()
/arkcompiler/ets_runtime/ecmascript/ts_types/
Dts_obj_layout_info.cpp45ASSERT_PRINT(EcmaStringAccessor(str).IsInternString(), "TS class field key is not an intern string… in GetElementIndexByKey()
50 ASSERT_PRINT(keyVal.IsString(), "TS class field key is not a string"); in GetElementIndexByKey()
/arkcompiler/runtime_core/libpandabase/
Dmacros.h194 #define ASSERT_PRINT(cond, message) \ macro
206 ASSERT_PRINT(false, "This line should be unreachable"); /* NOLINT(misc-static-assert) */ \
212 #define ASSERT_PRINT(cond, message) static_cast<void>(0) // NOLINT(cppcoreguidelines-macro-usage) macro
/arkcompiler/ets_runtime/ecmascript/js_api/
Djs_api_tree_map.cpp56 ASSERT_PRINT(entry < GetSize(), "entry must less than capacity"); in GetKey()
63 ASSERT_PRINT(entry < GetSize(), "entry must less than capacity"); in GetValue()

123