/ark/ts2abc/ts2panda/scripts/ |
D | run_tests.py | 65 def __init__(self, args): argument 66 self.args = args 67 self.src_dir = TS2PANDA_DIR 68 self.dist_dir = DEFAULT_TARGET_DIR 69 self.node_modules = DEFAULT_NODE_MODULE 70 self.platform = "linux" 72 def proce_parameters(self): argument 73 if self.args.src_dir: 74 self.src_dir = self.args.src_dir 76 if self.args.dist_dir: [all …]
|
/ark/ts2abc/test262/ |
D | run_sunspider.py | 132 def __init__(self, args): argument 133 self.args = args 134 self.ark_tool = ARK_TOOL 135 self.ark_frontend_tool = ARK_FRONTEND_TOOL 136 self.libs_dir = LIBS_DIR 137 self.ark_frontend = ARK_FRONTEND 138 self.js_file = "" 139 self.arch = ARK_ARCH 140 self.arch_root = "" 142 def proce_parameters(self): argument [all …]
|
D | run_test262.py | 162 def __init__(self, args): argument 163 self.args = args 164 self.out_dir = BASE_OUT_DIR 167 def prepare_test262_code(self): argument 186 def prepare_clean_data(self): argument 190 def patching_the_plugin(self): argument 199 def prepare_args_es51_es2015(self): argument 200 if self.args.dir: 201 if TEST_ES5_DIR in self.args.dir: 202 self.args.es51 = True [all …]
|
D | utils.py | 40 def __init__(self): argument 41 self.is_logging = True 43 def debug(self, info): argument 44 if self.is_logging: 48 def info(self, info): argument 49 if self.is_logging: 60 def __init__(self, cmd): argument 61 self.cmd = cmd 63 def run(self): argument 64 LOGGING.debug("command: " + self.cmd) [all …]
|
/ark/runtime_core/scripts/ |
D | memusage.py | 38 def __init__(self, name): argument 39 self.name = name 40 self.size = 0 41 self.rss = 0 42 self.pss = 0 95 def __init__(self): argument 96 self.stack = MemInfo("Stack") 97 self.heap = MemInfo("Heap") 98 self.so_files = MemInfo(".so files") 99 self.abc_files = MemInfo(".abc files") [all …]
|
D | memdump.py | 62 def __init__(self, stacktrace): argument 63 self.stacktrace = stacktrace 64 self.allocated_size = 0 65 self.sizes = [] 67 def alloc(self, size): argument 70 self.allocated_size += size 71 self.sizes.append(size) 73 def free(self, size): argument 76 self.allocated_size -= size 83 def __init__(self, space, strfilter): argument [all …]
|
/ark/js_runtime/ecmascript/containers/ |
D | containers_arraylist.cpp | 56 JSHandle<JSTaggedValue> self = GetThis(argv); in Add() local 58 if (!self->IsJSAPIArrayList()) { in Add() 63 … return GetTaggedBoolean(JSAPIArrayList::Add(thread, JSHandle<JSAPIArrayList>::Cast(self), value)); in Add() 72 JSHandle<JSTaggedValue> self = GetThis(argv); in Insert() local 74 if (!self->IsJSAPIArrayList()) { in Insert() 83 …JSAPIArrayList::Insert(thread, JSHandle<JSAPIArrayList>::Cast(self), value, JSTaggedValue::ToUint3… in Insert() 94 JSHandle<JSTaggedValue> self = GetThis(argv); in Clear() local 96 if (!self->IsJSAPIArrayList()) { in Clear() 100 JSAPIArrayList::Clear(thread, JSHandle<JSAPIArrayList>::Cast(self)); in Clear() 111 JSHandle<JSTaggedValue> self = GetThis(argv); in Clone() local [all …]
|
D | containers_treeset.cpp | 68 JSHandle<JSTaggedValue> self = GetThis(argv); in Add() local 69 if (!self->IsJSAPITreeSet()) { in Add() 74 JSHandle<JSAPITreeSet> set = JSHandle<JSAPITreeSet>::Cast(self); in Add() 86 JSHandle<JSTaggedValue> self = GetThis(argv); in Remove() local 87 if (!self->IsJSAPITreeSet()) { in Remove() 91 JSHandle<JSAPITreeSet> set = JSHandle<JSAPITreeSet>::Cast(self); in Remove() 102 JSHandle<JSTaggedValue> self(GetThis(argv)); in Has() local 103 if (!self->IsJSAPITreeSet()) { in Has() 108 JSHandle<JSAPITreeSet> set = JSHandle<JSAPITreeSet>::Cast(self); in Has() 121 JSHandle<JSTaggedValue> self(GetThis(argv)); in GetFirstValue() local [all …]
|
D | containers_treemap.cpp | 68 JSHandle<JSTaggedValue> self = GetThis(argv); in Set() local 70 if (!self->IsJSAPITreeMap()) { in Set() 77 JSHandle<JSAPITreeMap> map = JSHandle<JSAPITreeMap>::Cast(self); in Set() 90 JSHandle<JSTaggedValue> self(GetThis(argv)); in Get() local 91 if (!self->IsJSAPITreeMap()) { in Get() 95 JSHandle<JSAPITreeMap> map = JSHandle<JSAPITreeMap>::Cast(self); in Get() 105 JSHandle<JSTaggedValue> self = GetThis(argv); in Remove() local 107 if (!self->IsJSAPITreeMap()) { in Remove() 111 JSHandle<JSAPITreeMap> map = JSHandle<JSAPITreeMap>::Cast(self); in Remove() 122 JSHandle<JSTaggedValue> self(GetThis(argv)); in HasKey() local [all …]
|
/ark/js_runtime/ecmascript/builtins/ |
D | builtins_set.cpp | 110 JSHandle<JSTaggedValue> self = GetThis(argv); in Add() local 114 if (!self->IsJSSet()) { in Add() 119 JSHandle<JSSet> set(JSTaggedValue::ToObject(thread, self)); in Add() 131 JSHandle<JSTaggedValue> self = GetThis(argv); in Clear() local 135 if (!self->IsJSSet()) { in Clear() 138 JSHandle<JSSet> set(thread, JSSet::Cast(*JSTaggedValue::ToObject(thread, self))); in Clear() 149 JSHandle<JSTaggedValue> self = GetThis(argv); in Delete() local 152 if (!self->IsJSSet()) { in Delete() 156 JSHandle<JSSet> set(thread, JSSet::Cast(*JSTaggedValue::ToObject(thread, self))); in Delete() 168 JSHandle<JSTaggedValue> self = GetThis(argv); in Has() local [all …]
|
D | builtins_map.cpp | 131 JSHandle<JSTaggedValue> self = GetThis(argv); in Set() local 135 if (!self->IsJSMap()) { in Set() 142 JSHandle<JSMap> map(self); in Set() 153 JSHandle<JSTaggedValue> self = GetThis(argv); in Clear() local 157 if (!self->IsJSMap()) { in Clear() 160 JSHandle<JSMap> map(self); in Clear() 170 JSHandle<JSTaggedValue> self = GetThis(argv); in Delete() local 173 if (!self->IsJSMap()) { in Delete() 177 JSHandle<JSMap> map(self); in Delete() 188 JSHandle<JSTaggedValue> self(GetThis(argv)); in Has() local [all …]
|
D | builtins_weak_map.cpp | 135 JSHandle<JSTaggedValue> self = GetThis(argv); in Delete() local 138 if (!self->IsJSWeakMap()) { in Delete() 142 JSHandle<JSWeakMap> weakMap(self); in Delete() 157 JSHandle<JSTaggedValue> self(GetThis(argv)); in Has() local 160 if (!self->IsJSWeakMap()) { in Has() 163 JSWeakMap *jsWeakMap = JSWeakMap::Cast(*JSTaggedValue::ToObject(thread, self)); in Has() 178 JSHandle<JSTaggedValue> self(GetThis(argv)); in Get() local 181 if (!self->IsJSWeakMap()) { in Get() 184 JSWeakMap *jsWeakMap = JSWeakMap::Cast(*JSTaggedValue::ToObject(thread, self)); in Get() 198 JSHandle<JSTaggedValue> self = GetThis(argv); in Set() local [all …]
|
D | builtins_weak_set.cpp | 112 JSHandle<JSTaggedValue> self = GetThis(argv); in Add() local 116 if (!self->IsJSWeakSet()) { in Add() 128 JSHandle<JSWeakSet> weakSet(thread, JSWeakSet::Cast(*JSTaggedValue::ToObject(thread, self))); in Add() 140 JSHandle<JSTaggedValue> self = GetThis(argv); in Delete() local 143 if (!self->IsJSWeakSet()) { in Delete() 147 JSHandle<JSWeakSet> weakSet(thread, JSWeakSet::Cast(*JSTaggedValue::ToObject(thread, self))); in Delete() 161 JSHandle<JSTaggedValue> self = GetThis(argv); in Has() local 164 if (!self->IsJSWeakSet()) { in Has() 167 JSWeakSet *jsWeakSet = JSWeakSet::Cast(*JSTaggedValue::ToObject(thread, self)); in Has()
|
D | builtins_typedarray.cpp | 422 JSHandle<JSObject> self(thisHandle); in Entries() local 425 JSHandle<JSArrayIterator> iter(factory->NewJSArrayIterator(self, IterationKind::KEY_AND_VALUE)); in Entries() 780 JSHandle<JSObject> self(thisHandle); in Keys() local 783 JSHandle<JSArrayIterator> iter(factory->NewJSArrayIterator(self, IterationKind::KEY)); in Keys() 1408 JSHandle<JSObject> self(thisHandle); in Values() local 1411 JSHandle<JSArrayIterator> iter(factory->NewJSArrayIterator(self, IterationKind::VALUE)); in Values()
|
D | builtins_array.cpp | 650 JSHandle<JSObject> self = JSTaggedValue::ToObject(thread, GetThis(argv)); in Entries() local 653 JSHandle<JSArrayIterator> iter(factory->NewJSArrayIterator(self, IterationKind::KEY_AND_VALUE)); in Entries() 1244 JSHandle<JSObject> self = JSTaggedValue::ToObject(thread, GetThis(argv)); in Keys() local 1247 JSHandle<JSArrayIterator> iter(factory->NewJSArrayIterator(self, IterationKind::KEY)); in Keys() 2591 JSHandle<JSObject> self = JSTaggedValue::ToObject(thread, GetThis(argv)); in Values() local 2594 JSHandle<JSArrayIterator> iter(factory->NewJSArrayIterator(self, IterationKind::VALUE)); in Values()
|
/ark/js_runtime/ecmascript/ |
D | js_function.cpp | 113 JSTaggedValue JSFunction::PrototypeGetter(JSThread *thread, const JSHandle<JSObject> &self) in PrototypeGetter() argument 115 JSHandle<JSFunction> func = JSHandle<JSFunction>::Cast(self); in PrototypeGetter() 120 return JSFunction::Cast(*self)->GetFunctionPrototype(); in PrototypeGetter() 123 bool JSFunction::PrototypeSetter(JSThread *thread, const JSHandle<JSObject> &self, const JSHandle<J… in PrototypeSetter() argument 126 JSHandle<JSFunction> func(self); in PrototypeSetter() 142 JSTaggedValue JSFunction::NameGetter(JSThread *thread, const JSHandle<JSObject> &self) in NameGetter() argument 144 JSMethod *target = JSHandle<JSFunction>::Cast(self)->GetCallTarget(); in NameGetter() 152 if (JSHandle<JSFunction>::Cast(self)->GetFunctionKind() == FunctionKind::GETTER_FUNCTION) { in NameGetter() 155 if (JSHandle<JSFunction>::Cast(self)->GetFunctionKind() == FunctionKind::SETTER_FUNCTION) { in NameGetter() 484 …ntlBoundFunction::IntlNameGetter(JSThread *thread, [[maybe_unused]] const JSHandle<JSObject> &self) in IntlNameGetter() argument [all …]
|
D | js_array.cpp | 27 …aggedValue JSArray::LengthGetter([[maybe_unused]] JSThread *thread, const JSHandle<JSObject> &self) in LengthGetter() argument 29 return JSArray::Cast(*self)->GetLength(); in LengthGetter() 32 bool JSArray::LengthSetter(JSThread *thread, const JSHandle<JSObject> &self, const JSHandle<JSTagge… in LengthSetter() argument 40 if (!IsArrayLengthWritable(thread, self)) { in LengthSetter() 47 uint32_t oldLen = JSArray::Cast(*self)->GetArrayLength(); in LengthSetter() 48 JSArray::SetCapacity(thread, self, oldLen, newLen); in LengthSetter()
|
D | js_array.h | 73 static JSTaggedValue LengthGetter(JSThread *thread, const JSHandle<JSObject> &self); 75 …static bool LengthSetter(JSThread *thread, const JSHandle<JSObject> &self, const JSHandle<JSTagged…
|
D | js_function.h | 106 static JSTaggedValue PrototypeGetter(JSThread *thread, const JSHandle<JSObject> &self); 107 …static bool PrototypeSetter(JSThread *thread, const JSHandle<JSObject> &self, const JSHandle<JSTag… 109 static JSTaggedValue NameGetter(JSThread *thread, const JSHandle<JSObject> &self); 110 …static bool NameSetter(JSThread *thread, const JSHandle<JSObject> &self, const JSHandle<JSTaggedVa… 344 static JSTaggedValue IntlNameGetter(JSThread *thread, const JSHandle<JSObject> &self);
|
/ark/runtime_core/runtime/ |
D | thread_manager.h | 95 MTManagedThread *self = MTManagedThread::GetCurrent(); in EnumerateThreadsForDump() local 99 if (self != nullptr) { in EnumerateThreadsForDump() 104 cb(self, os); in EnumerateThreadsForDump() 106 if (thread != self) { in EnumerateThreadsForDump()
|
/ark/runtime_core/docs/diagrams/ |
D | stacktrace.pusequence | 23 StackPrinter -> "~/proc~/self~/maps": ReadVma (read used libraries and associated addresses) 24 "~/proc~/self~/maps" -> StackPrinter: Array of VMA (virtual memory area)
|
/ark/ts2abc/testTs/ |
D | run_testTs.py | 33 def __init__(self, name): argument 34 self.name = name
|
D | test-case.patch | 6542 +import * as self from "package"; 6543 +self; 6546 +import * as self from "package"; 6547 +self; 6550 +import * as self from "package"; 6551 +self; 9443 +import * as self from "package"; 9444 +self; 9447 +import * as self from "package"; 9448 +self; [all …]
|
/ark/runtime_core/docs/ |
D | design-of-interpreter.md | 64 Besides, the machine-readable form naturally sets up the framework for self-testing (e.g.
|
/ark/js_runtime/ecmascript/compiler/ |
D | llvm_ir_builder.cpp | 794 llvm::BasicBlock *self = llvm::unwrap(EnsureBasicBlock(bbIdMapBb_[block].get())); in VisitGoto() local 796 llvm::BranchInst::Create(out, self); in VisitGoto()
|