/arkcompiler/runtime_core/compiler/optimizer/analysis/ |
D | rpo.h | 50 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()
|
D | rpo.cpp | 50 ASSERT_PRINT(marker_ != UNDEF_MARKER, "There are no free markers. Please erase unused markers"); in RunImpl()
|
/arkcompiler/runtime_core/compiler/optimizer/ir/ |
D | graph_checker.cpp | 108 ASSERT_PRINT(block->GetGraph() == GetGraph(), "Block linked to incorrect graph"); in Check() 109 … ASSERT_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() 169 … ASSERT_PRINT(CheckBlockHasSuccessor(pred, block), "Block is not a successor to its predecessor"); in CheckControlFlow() 172 …ASSERT_PRINT(CheckBlockHasPredecessor(succ, block), "Block is not a predecessor to its successor"); in CheckControlFlow() 176 …ASSERT_PRINT(block->GetSuccessor(0) != block->GetSuccessor(1), "Wrong CFG - block with two same su… in CheckControlFlow() 197 … ASSERT_PRINT(*block->AllInsts().begin() == inst, "First block instruction isn't correct"); in CheckDataFlow() 200 …ASSERT_PRINT(*block->AllInstsSafeReverse().begin() == inst, "Last block instruction isn't correct"… in CheckDataFlow() 267 …ASSERT_PRINT(GetGraph()->GetStartBlock()->GetPredsBlocks().empty(), "Start block can't have predec… in CheckStartBlock() [all …]
|
D | basicblock.cpp | 86 …ASSERT_PRINT(it == succs_.end() || can_add_empty_block, "Uncovered case where empty block needed t… in AddSucc() 100 …ASSERT_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() 425 …ASSERT_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 …]
|
D | graph_cloner.h | 128 …ASSERT_PRINT(IsLoopSingleBackEdgeExitPoint(loop), "Cloning blocks doesn't have single entry/exit p… in UnrollLoopBody() 187 … ASSERT_PRINT(block->GetGraph() == GetGraph(), "GraphCloner probably caught disconnected block"); in GetClone() 204 ASSERT_PRINT(inst->GetBasicBlock()->GetGraph() == GetGraph(), in GetClone()
|
/arkcompiler/ets_runtime/ecmascript/ |
D | ecma_runtime_call_info.h | 99 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()
|
D | js_object.cpp | 367 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() 639 …ASSERT_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() 660 …ASSERT_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() 671 …ASSERT_PRINT(!(obj->IsUndefined() || obj->IsNull() || obj->IsHole()), "Obj is not a valid object"); in SetProperty() [all …]
|
D | ecma_string-inl.h | 67 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() 199 …ASSERT_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()
|
D | js_weak_container.cpp | 67 …ASSERT_PRINT(entry >= 0 && entry < GetSize(), "entry must be non-negative integer less than capaci… in GetKey() 73 …ASSERT_PRINT(entry >= 0 && entry < GetSize(), "entry must be non-negative integer less than capaci… in GetValue() 113 …ASSERT_PRINT(entry >= 0 && entry < GetSize(), "entry must be non-negative integer less than capaci… in GetValue()
|
D | global_dictionary-inl.h | 102 ASSERT_PRINT(offset + EntriesCount() <= static_cast<int>(keyArray->GetLength()), in GetAllKeys() 127 …ASSERT_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()
|
D | js_map.cpp | 71 …ASSERT_PRINT(entry >= 0 && entry < GetSize(), "entry must be non-negative integer less than capaci… in GetKey() 77 …ASSERT_PRINT(entry >= 0 && entry < GetSize(), "entry must be non-negative integer less than capaci… in GetValue()
|
D | linked_hash_table.h | 109 …ASSERT_PRINT(entry >= 0 && entry < Capacity(), "entry must be a non-negative integer less than cap… in RemoveEntry() 136 … ASSERT_PRINT(newCapacity > atLeastSpaceFor, "new capacity must greater than atLeastSpaceFor"); in ComputeCapacityWithShrink() 203 ASSERT_PRINT(!GetNextTable().IsUndefined(), "function only execute after rehash"); in GetDeletedElementsAt() 219 …ASSERT_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()
|
D | js_tagged_value.h | 165 ASSERT_PRINT(!IsImpureNaN(v), "pureNaN will break the encoding of tagged double: " in JSTaggedValue() 187 ASSERT_PRINT(IsHeapObject() && ((value_ & TAG_WEAK) == 0U), in CreateWeakRef() 194 …ASSERT_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() 255 … ASSERT_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() 273 …ASSERT_PRINT(IsHeapObject(), "can not convert JSTaggedValue to HeapObject :" << std::hex << value_… in GetRawHeapObject() 279 …ASSERT_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()
|
D | layout_info.cpp | 62 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()
|
D | js_generator_object.cpp | 61 ASSERT_PRINT(state == JSGeneratorState::SUSPENDED_START || in GeneratorResume() 117 ASSERT_PRINT(state == JSGeneratorState::SUSPENDED_YIELD, "state is not suspendedYield"); in GeneratorResumeAbrupt()
|
D | js_function.cpp | 218 …ASSERT_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 …]
|
D | js_promise.cpp | 67 …ASSERT_PRINT(promise->GetPromiseState() == PromiseState::PENDING, "FulfillPromise: state must be p… in FulfillPromise() 144 …ASSERT_PRINT(promise->GetPromiseState() == PromiseState::PENDING, "RejectPromise: state must be pe… in RejectPromise()
|
/arkcompiler/runtime_core/libpandabase/utils/ |
D | logger.cpp | 47 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/ |
D | property_box.cpp | 23 ASSERT_PRINT(!GetValue().IsHole(), "value must not be hole"); in Clear()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_arraybuffer.cpp | 465 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() 532 …ASSERT_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 …]
|
D | builtins_promise_handler.cpp | 42 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() 282 …ASSERT_PRINT(thenFinallyConstructor->IsConstructor(), "thenFinallyConstructor is not constructor"); in ThenFinally() 312 ASSERT_PRINT(onFinally->IsCallable(), "thenOnFinally is not callable"); in CatchFinally() 323 …ASSERT_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/ |
D | error_helper.cpp | 167 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/ |
D | ts_obj_layout_info.cpp | 45 …ASSERT_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/ |
D | macros.h | 194 #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/ |
D | js_api_tree_map.cpp | 56 ASSERT_PRINT(entry < GetSize(), "entry must less than capacity"); in GetKey() 63 ASSERT_PRINT(entry < GetSize(), "entry must less than capacity"); in GetValue()
|