/arkcompiler/ets_runtime/test/moduletest/errorcause/ |
H A D | errorcause.js | 18 * @tc.desc:test Error Constructors with cause 40 let err = new ctor("message", { cause: "error cause" }); 43 if (e.cause == "error cause") { 51 let err2 = new AggregateError([], "message", { cause: "error cause" }); 55 if (e.cause == "error cause") {
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
H A D | builtins_gc.cpp | 105 auto cause = StringToGcType(thread, GetCallArg(info, 0).GetTaggedValue()); in StartGC() local 108 if (cause == GC_TYPE_LAST) { in StartGC() 112 switch (cause) { in StartGC() 128 if (cause != OLD_GC) { in StartGC() 130 heap->CollectGarbage(cause, GCReason::EXTERNAL_TRIGGER); in StartGC() 213 TriggerGCType BuiltinsGc::StringToGcType(JSThread *thread, JSTaggedValue cause) in StringToGcType() argument 216 if (JSTaggedValue::StrictEqual(thread->GlobalConstants()->GetEdenGcCause(), cause)) { in StringToGcType() 219 if (JSTaggedValue::StrictEqual(thread->GlobalConstants()->GetYoungGcCause(), cause)) { in StringToGcType() 222 if (JSTaggedValue::StrictEqual(thread->GlobalConstants()->GetOldGcCause(), cause)) { in StringToGcType() 225 if (JSTaggedValue::StrictEqual(thread->GlobalConstants()->GetFullGcCause(), cause)) { in StringToGcType() [all...] |
H A D | builtins_gc.h | 73 static TriggerGCType StringToGcType(JSThread *thread, JSTaggedValue cause);
|
H A D | builtins_errors.cpp | 157 // If options is an Object and ? HasProperty(options, "cause") is true, then in AggregateErrorConstructor() 158 // a. Let cause be ? Get(options, "cause"). in AggregateErrorConstructor() 159 // b. Perform CreateNonEnumerableDataPropertyOrThrow(O, "cause", cause). in AggregateErrorConstructor() 165 JSHandle<JSTaggedValue> cause = JSObject::GetProperty(thread, options, causeKey).GetValue(); in AggregateErrorConstructor() local 167 PropertyDescriptor causeDesc(thread, cause, true, false, true); in AggregateErrorConstructor()
|
/arkcompiler/ets_frontend/arkguard/test/grammar/target/ |
H A D | newTargetFunction_2.js | 21 constructor(message, cause) { 23 return new.target.new_kntr_k$(message, cause); 26 static new_kntr_k$(message, cause) {
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/ |
H A D | ets_error_options.h | 51 inline void SetCause(EtsObject *cause) in SetCause() argument 53 if (cause != nullptr) { in SetCause() 54 ObjectAccessor::SetObject(this, MEMBER_OFFSET(EtsErrorOptions, cause_), cause->GetCoreType()); in SetCause()
|
/arkcompiler/ets_runtime/test/moduletest/regressproxy/ |
H A D | regressproxy.js | 34 const options = { cause: 'a cause' };
35 const proxy = new Proxy(options, { get: () => 'proxied cause'});
37 print(err.cause);
|
/arkcompiler/ets_frontend/ets2panda/ast_verifier/ |
H A D | checkContext.cpp | 20 void CheckContext::AddCheckMessage(const std::string &cause, const ir::AstNode &node, const lexer::SourcePosition &from) in AddCheckMessage() argument 24 messages_.emplace_back(checkName_, cause.data(), dump.data(), loc); in AddCheckMessage()
|
H A D | checkContext.h | 43 explicit CheckMessage(util::StringView name, util::StringView cause, util::StringView message, size_t line) in CheckMessage() argument 44 : invariantName_ {name}, cause_ {cause}, message_ {message}, line_ {line} in CheckMessage() 64 body.AddProperty("cause", cause_); in DumpJSON() 85 void AddCheckMessage(const std::string &cause, const ir::AstNode &node, const lexer::SourcePosition &from);
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/ |
H A D | std_core_gc.cpp | 142 static GCTaskCause GCCauseFromInt(EtsInt cause) in GCCauseFromInt() argument 144 if (cause == 0_I) { in GCCauseFromInt() 147 if (cause == 1_I) { in GCCauseFromInt() 150 if (cause == 2_I) { in GCCauseFromInt() 153 if (cause == 3_I) { in GCCauseFromInt() 161 * @param cause - integer denotes type of GC. Possible values are: YOUNG_CAUSE = 0, THRESHOLD_CAUSE = 1, 168 extern "C" EtsLong StdGCStartGC(EtsInt cause, EtsObject *callback, EtsBoolean isRunGcInPlace) in StdGCStartGC() argument 174 GCTaskCause reason = GCCauseFromInt(cause); in StdGCStartGC() 177 "Invalid GC cause"); in StdGCStartGC() 183 eMsg << mem::GCStringFromType(gc->GetType()) << " does not support " << reason << " cause"; in StdGCStartGC() 423 StdGCScheduleGCAfterNthAlloc(EtsInt counter, EtsInt cause) StdGCScheduleGCAfterNthAlloc() argument [all...] |
/arkcompiler/runtime_core/static_core/runtime/ |
H A D | gc_task.cpp | 44 std::ostream &operator<<(std::ostream &os, const GCTaskCause &cause) in operator <<() argument 46 switch (cause) { in operator <<() 75 LOG(FATAL, GC) << "Unknown gc cause"; in operator <<()
|
H A D | language_context.cpp | 101 auto *cause = thread->GetException(); in WrapClassInitializerException() local 102 if (cause->IsInstanceOf(errorClass)) { in WrapClassInitializerException()
|
H A D | class_linker_extension.cpp | 189 auto *cause = thread->GetException(); in WrapClassNotFoundExceptionIfNeeded() local 190 if (cause->IsInstanceOf(classNotFoundExceptionClass)) { in WrapClassNotFoundExceptionIfNeeded()
|
/arkcompiler/runtime_core/scripts/ |
H A D | gc_pause_stats.py | 80 """Get gc type with cause""" 90 """Get gc type type and gc type with cause""" 91 for cause in GCPauseStats.GC_TYPES: 92 i = line.find(cause) 94 return cause, get_full_type(line, i, len(cause)) 95 raise ValueError("Unsupported gc cause")
|
/arkcompiler/runtime_core/static_core/runtime/mem/gc/stw-gc/ |
H A D | stw-gc.cpp | 52 bool StwGC<LanguageConfig>::CheckGCCause(GCTaskCause cause) const in CheckGCCause() 55 if (cause == GCTaskCause::YOUNG_GC_CAUSE || cause == GCTaskCause::MIXED) { in CheckGCCause() 58 return cause != GCTaskCause::INVALID_CAUSE; in CheckGCCause()
|
H A D | stw-gc.h | 101 bool CheckGCCause(GCTaskCause cause) const override;
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/ |
H A D | ets_exceptions.cpp | 67 EtsHandle<EtsObject> cause(coroutine, EtsObject::FromCoreType(coroutine->GetException())); in SetupEtsException() 70 errOptionHandle->SetCause(cause.GetPtr()); in SetupEtsException() 108 Value(isError ? errOptionHandle.GetPtr()->AsObject()->GetCoreType() : cause.GetPtr()->GetCoreType()) in SetupEtsException()
|
/arkcompiler/runtime_core/static_core/runtime/mem/ |
H A D | heap_manager.cpp | 147 GCTaskCause cause; in TryGCAndAlloc() local 150 cause = GCTaskCause::OOM_CAUSE; in TryGCAndAlloc() 152 cause = GCTaskCause::YOUNG_GC_CAUSE; in TryGCAndAlloc() 154 GetGC()->WaitForGCInManaged(GCTask(cause)); in TryGCAndAlloc() 212 GCTaskCause cause = GCTaskCause::OOM_CAUSE; in AllocateNonMovableObject() local 213 GetGC()->WaitForGCInManaged(GCTask(cause)); in AllocateNonMovableObject()
|
/arkcompiler/runtime_core/static_core/scripts/ |
H A D | gc_pause_stats.py | 195 """Get gc type with cause""" 205 """Get gc type type and gc type with cause""" 206 for cause in GCStatsCollector.GC_TYPES: 207 i = line.find(cause) 209 return cause, GCStatsCollector.get_full_type(line, i, len(cause)) 210 raise ValueError("Unsupported gc cause")
|
/arkcompiler/runtime_core/static_core/runtime/mem/gc/g1/ |
H A D | g1_analytics.cpp | 156 void G1Analytics::ReportCollectionEnd(GCTaskCause cause, uint64_t endTime, const CollectionSet &collectionSet, in ReportCollectionEnd() argument 164 if (dump && cause != GCTaskCause::HEAP_USAGE_THRESHOLD_CAUSE) { in ReportCollectionEnd() 170 if (cause != GCTaskCause::EXPLICIT_CAUSE && edenLength == collectionSet.size() && edenLength > 0) { in ReportCollectionEnd() 207 if (cause != GCTaskCause::HEAP_USAGE_THRESHOLD_CAUSE) { in ReportCollectionEnd()
|
/arkcompiler/runtime_core/static_core/runtime/core/ |
H A D | core_language_context.cpp | 55 VMHandle<ObjectHeader> cause(thread, thread->GetException()); in ThrowException() 95 std::array<Value, NARGS> args {Value(excHandle.GetPtr()), Value(msgHandle.GetPtr()), Value(cause.GetPtr())}; in ThrowException()
|
/arkcompiler/runtime_core/static_core/runtime/include/ |
H A D | gc_task.h | 99 std::ostream &operator<<(std::ostream &os, const GCTaskCause &cause);
|
/arkcompiler/ets_runtime/ecmascript/base/ |
H A D | error_helper.cpp | 166 // If options is an Object and ? HasProperty(options, "cause") is true, then in ErrorCommonConstructor() 167 // a. Let cause be ? Get(options, "cause"). in ErrorCommonConstructor() 168 // b. Perform CreateNonEnumerableDataPropertyOrThrow(O, "cause", cause). in ErrorCommonConstructor() 174 JSHandle<JSTaggedValue> cause = JSObject::GetProperty(thread, options, causeKey).GetValue(); in ErrorCommonConstructor() local 176 PropertyDescriptor causeDesc(thread, cause, true, false, true); in ErrorCommonConstructor()
|
/arkcompiler/runtime_core/static_core/runtime/mem/gc/ |
H A D | gc_trigger.cpp | 350 void SchedGCOnNthAllocTrigger::ScheduleGc(GCTaskCause cause, uint32_t counter) in ScheduleGc() argument 353 cause_ = cause; in ScheduleGc()
|
H A D | gc_trigger.h | 282 void ScheduleGc(GCTaskCause cause, uint32_t counter);
|