Home
last modified time | relevance | path

Searched refs:cause (Results 1 - 25 of 27) sorted by relevance

12

/arkcompiler/ets_runtime/test/moduletest/errorcause/
H A Derrorcause.js18 * @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 Dbuiltins_gc.cpp105 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 Dbuiltins_gc.h73 static TriggerGCType StringToGcType(JSThread *thread, JSTaggedValue cause);
H A Dbuiltins_errors.cpp157 // 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 DnewTargetFunction_2.js21 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 Dets_error_options.h51 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 Dregressproxy.js34 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 DcheckContext.cpp20 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 DcheckContext.h43 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 Dstd_core_gc.cpp142 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 Dgc_task.cpp44 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 Dlanguage_context.cpp101 auto *cause = thread->GetException(); in WrapClassInitializerException() local
102 if (cause->IsInstanceOf(errorClass)) { in WrapClassInitializerException()
H A Dclass_linker_extension.cpp189 auto *cause = thread->GetException(); in WrapClassNotFoundExceptionIfNeeded() local
190 if (cause->IsInstanceOf(classNotFoundExceptionClass)) { in WrapClassNotFoundExceptionIfNeeded()
/arkcompiler/runtime_core/scripts/
H A Dgc_pause_stats.py80 """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 Dstw-gc.cpp52 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 Dstw-gc.h101 bool CheckGCCause(GCTaskCause cause) const override;
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/
H A Dets_exceptions.cpp67 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 Dheap_manager.cpp147 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 Dgc_pause_stats.py195 """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 Dg1_analytics.cpp156 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 Dcore_language_context.cpp55 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 Dgc_task.h99 std::ostream &operator<<(std::ostream &os, const GCTaskCause &cause);
/arkcompiler/ets_runtime/ecmascript/base/
H A Derror_helper.cpp166 // 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 Dgc_trigger.cpp350 void SchedGCOnNthAllocTrigger::ScheduleGc(GCTaskCause cause, uint32_t counter) in ScheduleGc() argument
353 cause_ = cause; in ScheduleGc()
H A Dgc_trigger.h282 void ScheduleGc(GCTaskCause cause, uint32_t counter);

Completed in 12 milliseconds

12