/arkcompiler/ets_runtime/ecmascript/tests/ |
D | js_handle_test.cpp | 7 * http://www.apache.org/licenses/LICENSE-2.0 16 #include "ecmascript/ecma_string-inl.h" 55 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() 60 auto string1 = factory->NewFromASCII("test1"); in HWTEST_F_L0() 61 globalString = thread->NewGlobalHandle(string1.GetTaggedType()); in HWTEST_F_L0() 64 thread->GetEcmaVM()->CollectGarbage(TriggerGCType::FULL_GC); in HWTEST_F_L0() 68 factory->NewFromASCII("test1"), in HWTEST_F_L0() 75 ObjectFactory *factory = thread->GetEcmaVM()->GetFactory(); in HWTEST_F_L0() 82 auto string1 = factory->NewFromUtf8(test.c_str()); in HWTEST_F_L0() 83 globalString[i] = thread->NewGlobalHandle(string1.GetTaggedType()); in HWTEST_F_L0() [all …]
|
D | js_array_iterator_test.cpp | 7 * http://www.apache.org/licenses/LICENSE-2.0 61 EcmaVM *ecmaVMPtr = thread->GetEcmaVM(); in HWTEST_F_L0() 62 ObjectFactory *factory = ecmaVMPtr->GetFactory(); in HWTEST_F_L0() 64 int32_t arrayFrom1[10] = {0, 6, 8, 99, 200, 1, -1, -199, 33, 100}; in HWTEST_F_L0() 68 JSHandle<TaggedArray> handleTaggedArrayFrom1(factory->NewTaggedArray(numArrayFrom1)); in HWTEST_F_L0() 69 JSHandle<TaggedArray> handleTaggedArrayFrom2(factory->NewTaggedArray(numArrayFrom2)); in HWTEST_F_L0() 71 handleTaggedArrayFrom1->Set(thread, i, JSTaggedValue(arrayFrom1[i])); in HWTEST_F_L0() 74 handleTaggedArrayFrom2->Set(thread, i, JSTaggedValue(arrayFrom2[i])); in HWTEST_F_L0() 80 …JSHandle<JSArrayIterator> handleJSArrayIter = factory->NewJSArrayIterator(handleJSObjectTaggedArra… in HWTEST_F_L0() 83 …JSHandle<JSArray> handleJSArrayTo1(thread, JSArray::Cast(handleJSArrayIter->GetIteratedArray().Get… in HWTEST_F_L0() [all …]
|
/arkcompiler/ets_runtime/test/quickfix/multi_patch/ |
D | module_modify.js | 7 * http://www.apache.org/licenses/LICENSE-2.0 16 export var a = 200 18 var b = 200
|
D | expect_output.txt | 6 # http://www.apache.org/licenses/LICENSE-2.0 17 print patch:100 - 200 22 print base:100 - 100 25 print patch1:100 - 300 30 print base:100 - 100 33 print patch2: 100 - 400 38 print base:100 - 100
|
/arkcompiler/toolchain/tooling/test/ |
D | pt_json_test.cpp | 7 * http://www.apache.org/licenses/LICENSE-2.0 47 ASSERT_TRUE(json->IsBool()); in HWTEST_F_L0() 48 EXPECT_FALSE(json->GetBool()); in HWTEST_F_L0() 49 EXPECT_EQ(json->Stringify(), str); in HWTEST_F_L0() 50 json->ReleaseRoot(); in HWTEST_F_L0() 57 ASSERT_TRUE(json->IsBool()); in HWTEST_F_L0() 58 EXPECT_TRUE(json->GetBool()); in HWTEST_F_L0() 59 EXPECT_EQ(json->Stringify(), str); in HWTEST_F_L0() 60 json->ReleaseRoot(); in HWTEST_F_L0() 67 ASSERT_TRUE(json->IsNumber()); in HWTEST_F_L0() [all …]
|
D | debugger_script_test.cpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 25 #include "ecmascript/js_tagged_value-inl.h" 64 script->SetScriptId(100); in HWTEST_F_L0() 65 ASSERT_EQ(script->GetScriptId(), 100); in HWTEST_F_L0() 71 script->SetFileName("xx"); in HWTEST_F_L0() 72 ASSERT_EQ(script->GetFileName(), "xx"); in HWTEST_F_L0() 78 script->SetUrl("121"); in HWTEST_F_L0() 79 ASSERT_EQ(script->GetUrl(), "121"); in HWTEST_F_L0() 85 script->SetHash("111"); in HWTEST_F_L0() 86 ASSERT_EQ(script->GetHash(), "111"); in HWTEST_F_L0() [all …]
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/contextualOverloadListFromArrayUnion/ |
D | three.ts | 8 * http://www.apache.org/licenses/LICENSE-2.0 80 …(error, null) } else { // must use postfix-!, since `error` and … 82 …(error, null) } else { // must use postfix-!, since `error` and … 96 // must use postfix-!, since `error` and `result` don't have a 117 …setTimeout(() => cb(null, 1), 300), cb => setTimeout(() => cb(null, 2), 200), cb => setTimeo… 119 …setTimeout(() => cb(null, 1), 300), cb => setTimeout(() => cb(null, 2), 200), cb => setTimeo… 133 cb => setTimeout(() => cb(null, 2), 200), 134 AssertType(cb => setTimeout(() => cb(null, 2), 200), "(Callback<unknown>) => number"); 136 AssertType(setTimeout(() => cb(null, 2), 200), "number"); 143 AssertType(200, "int");
|
/arkcompiler/ets_runtime/test/aottest/stobjbyvalue/ |
D | expect_output.txt | 6 # http://www.apache.org/licenses/LICENSE-2.0 17 200
|
D | stobjbyvalue.ts | 7 * http://www.apache.org/licenses/LICENSE-2.0 27 array[second] = 200;
|
/arkcompiler/ets_runtime/test/aottest/stobjbyindex/ |
D | expect_output.txt | 6 # http://www.apache.org/licenses/LICENSE-2.0 17 200
|
D | stobjbyindex.ts | 7 * http://www.apache.org/licenses/LICENSE-2.0 23 array[1] = 200;
|
/arkcompiler/ets_runtime/test/quickfix/import_export/ |
D | module_modify.js | 7 * http://www.apache.org/licenses/LICENSE-2.0 16 export var a = 200
|
/arkcompiler/ets_runtime/tools/circuit_viewer/src/ |
D | MainEditor.js | 7 * http://www.apache.org/licenses/LICENSE-2.0 76 … X2DFast.gi().drawText("拖入log文件", 30, Scr.logicw / 2, Scr.logich / 2, 1, 1, 0, -2, -2, 0xff000000); 86 this.selectFile_.move(Scr.logicw - 200 - 10, 10, 200, 20); 89 X2DFast.gi().fillRect(0, Scr.logich - 5, XTools.PROC_TO * Scr.logicw / 100, 5, 0xffff0000);
|
/arkcompiler/ets_frontend/arkguard/test/grammar/function_validation/ |
D | function_outer_variable.ts | 7 * http://www.apache.org/licenses/LICENSE-2.0 24 assert(addToZ(100, 200) === 400, 'success');
|
/arkcompiler/ets_frontend/es2panda/test/compiler/ts/cases/conformance/classes/ |
D | test-ts-class-super-1.ts | 7 * http://www.apache.org/licenses/LICENSE-2.0 22 return 200;
|
/arkcompiler/ets_runtime/test/quickfix/global_var/ |
D | base_modify.js | 7 * http://www.apache.org/licenses/LICENSE-2.0 16 globalThis.a = 200
|
/arkcompiler/ets_runtime/test/moduletest/storeicbyname/ |
D | storeicbyname.js | 7 * http://www.apache.org/licenses/LICENSE-2.0 24 for (let i = 0; i < 200; i++) {
|
/arkcompiler/runtime_core/ |
D | .clang-format | 1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 13 --- 16 AccessModifierOffset: -4 71 - foreach 72 - Q_FOREACH 73 - BOOST_FOREACH 76 - Regex: '^<ext/.*\.h>' 78 - Regex: '^<.*\.h>' 80 - Regex: '^<.*' [all …]
|
D | .clang-tidy | 1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd. 6 # http://www.apache.org/licenses/LICENSE-2.0 13 --- 20 - key: google-readability-braces-around-statements.ShortStatementLines 22 - key: google-readability-function-size.StatementThreshold 24 - key: google-readability-namespace-comments.ShortNamespaceLines 26 - key: google-readability-namespace-comments.SpacesBeforeComments 28 - key: modernize-loop-convert.MaxCopySize 30 - key: modernize-loop-convert.MinConfidence 32 - key: modernize-loop-convert.NamingStyle [all …]
|
/arkcompiler/ets_runtime/tools/circuit_viewer/src/engine/ |
D | XTools.js | 2 * Copyright (c) 2022-2023 Shenzhen Kaihong Digital Industry Development Co., Ltd. 7 * http://www.apache.org/licenses/LICENSE-2.0 35 if (xhr.status === 200) { 56 return (Math.atan2(-y, x) * 180) / Math.PI; 73 return Math.floor(Math.random() * (max - min)) + min; 78 return 'https://7465-testegg-19e3c9-1301193145.tcb.qcloud.la/';
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | destructuringVariableDeclaration1ES6.ts | 8 * http://www.apache.org/licenses/LICENSE-2.0 123 // Otherwise, if S is a tuple- like type (section 3.3.3): 124 // Let N be the zero-based index of the binding element in the array binding pattern. 134 // Otherwise, if S is a tuple- like type (section 3.3.3): 153 let {e: [e1, e2, e3 = { b1: 1000, b4: 200 }]} = { e: [1, 2, { b1: 4, b4: 0 }] }; 158 AssertType({ b1: 1000, b4: 200 }, "{ b1: number; b4: number; }"); 162 AssertType(200, "int");
|
D | destructuringVariableDeclaration1ES5iterable.ts | 8 * http://www.apache.org/licenses/LICENSE-2.0 123 // Otherwise, if S is a tuple- like type (section 3.3.3): 124 // Let N be the zero-based index of the binding element in the array binding pattern. 134 // Otherwise, if S is a tuple- like type (section 3.3.3): 153 let {e: [e1, e2, e3 = { b1: 1000, b4: 200 }]} = { e: [1, 2, { b1: 4, b4: 0 }] }; 158 AssertType({ b1: 1000, b4: 200 }, "{ b1: number; b4: number; }"); 162 AssertType(200, "int");
|
D | destructuringVariableDeclaration1ES5.ts | 8 * http://www.apache.org/licenses/LICENSE-2.0 123 // Otherwise, if S is a tuple- like type (section 3.3.3): 124 // Let N be the zero-based index of the binding element in the array binding pattern. 134 // Otherwise, if S is a tuple- like type (section 3.3.3): 153 let {e: [e1, e2, e3 = { b1: 1000, b4: 200 }]} = { e: [1, 2, { b1: 4, b4: 0 }] }; 158 AssertType({ b1: 1000, b4: 200 }, "{ b1: number; b4: number; }"); 162 AssertType(200, "int");
|
D | tailRecursiveConditionalTypes.ts | 8 * http://www.apache.org/licenses/LICENSE-2.0 47 type T40 = TupleOf<any, 200>;
|
/arkcompiler/ets_runtime/ecmascript/mem/ |
D | incremental_marker.h | 7 * http://www.apache.org/licenses/LICENSE-2.0 107 uint32_t markingSpeed_ {200_KB};
|