Home
last modified time | relevance | path

Searched +full:input +full:- (Results 1 – 25 of 625) sorted by relevance

12345678910>>...25

/arkcompiler/ets_runtime/ecmascript/compiler/
Dcall_signature.cpp7 * http://www.apache.org/licenses/LICENSE-2.0
20 #pragma clang diagnostic ignored "-Wshadow"
21 #pragma clang diagnostic ignored "-Wunused-parameter"
24 #pragma GCC diagnostic ignored "-Wshadow"
25 #pragma GCC diagnostic ignored "-Wunused-parameter"
28 #include "llvm-c/Core.h"
39 /* 3 : 3 input parameters */ \
43 /* 3 : 3 input parameters */ \
49 callSign->SetParameters(params.data()); \
50 callSign->SetCallConv(CallSignature::CallConv::CCallConv);
[all …]
Dtest_stubs_signature.cpp7 * http://www.apache.org/licenses/LICENSE-2.0
21 // 7 : 7 input parameters in DEF_CALL_SIGNATURE()
25 std::array<VariableType, 8> params = { // 8 : 8 input parameters in DEF_CALL_SIGNATURE()
35 callSign->SetParameters(params.data()); in DEF_CALL_SIGNATURE()
36 callSign->SetCallConv(CallSignature::CallConv::WebKitJSCallConv); in DEF_CALL_SIGNATURE()
41 // 7 : 7 input parameters in DEF_CALL_SIGNATURE()
45 std::array<VariableType, 8> params = { // 8 : 8 input parameters in DEF_CALL_SIGNATURE()
55 callSign->SetParameters(params.data()); in DEF_CALL_SIGNATURE()
56 callSign->SetCallConv(CallSignature::CallConv::WebKitJSCallConv); in DEF_CALL_SIGNATURE()
61 // 7 : 7 input parameters in DEF_CALL_SIGNATURE()
[all …]
/arkcompiler/runtime_core/compiler/optimizer/optimizations/
Dlowering.cpp2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
25 ASSERT(inst->GetOpcode() == Opcode::IfImm); in VisitIfImm()
26 LowerIf(inst->CastToIfImm()); in VisitIfImm()
32 ASSERT(cst->GetOpcode() == Opcode::Constant); in ConstantFitsCompareImm()
33 if (DataType::IsFloatType(cst->GetType())) { in ConstantFitsCompareImm()
36 int64_t val = cst->CastToConstant()->GetRawValue(); in ConstantFitsCompareImm()
42 auto graph = inst->GetBasicBlock()->GetGraph(); in LowerCastValueToAnyTypeWithConst()
43 auto any_type = inst->CastToCastValueToAnyType()->GetAnyType(); in LowerCastValueToAnyTypeWithConst()
48 auto input_inst = inst->GetInput(0).GetInst(); in LowerCastValueToAnyTypeWithConst()
[all …]
/arkcompiler/ets_frontend/es2panda/
DREADME.md7 es2panda [OPTIONS] [input file] -- [arguments]
11 - `--debug-info`: Compile with debug info
12 - `--dump-assembly`: Dump pandasm
13 - `--dump-ast`: Dump the parsed AST
14 - `--dump-debug-info`: Dump debug info
15 - `--dump-size-stat`: Dump binary size statistics
16 - `--extension`: Parse the input as the given extension (options: js | ts | as)
17 - `--module`: Parse the input as module
18 - `--opt-level`: Compiler optimization level (options: 0 | 1 | 2)
19 - `--output`: Compiler binary output (.abc)
[all …]
Des2panda.cpp7 * http://www.apache.org/licenses/LICENSE-2.0
40 if (parser_->Extension() == ScriptExtension::TS) { in Compiler()
41 transformer_ = std::make_unique<parser::Transformer>(parser_->Allocator()); in Compiler()
55 return context.GetEmitter()->Finalize(false, nullptr); in CreateJsonContentProgram()
58 panda::pandasm::Program *Compiler::Compile(const SourceFile &input, const CompilerOptions &options, in Compile() argument
62 std::string fname(input.fileName); in Compile()
63 std::string src(input.source); in Compile()
64 std::string rname(input.recordName); in Compile()
65 std::string sourcefile(input.sourcefile); in Compile()
66 std::string pkgName(input.pkgName); in Compile()
[all …]
/arkcompiler/runtime_core/libpandabase/tests/
Dmutex_test.cpp2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
40 static void *TestThread1(void *input) in TestThread1() argument
42 ASSERT(input != nullptr); in TestThread1()
43 ThreadRWLockArgs *arg = reinterpret_cast<ThreadRWLockArgs *>(input); in TestThread1()
44 arg->rwlock->WriteLock(); in TestThread1()
45 (*(arg->index))++; in TestThread1()
47 arg->rwlock->Unlock(); in TestThread1()
51 static void *TestThread2(void *input) in TestThread2() argument
53 ASSERT(input != nullptr); in TestThread2()
[all …]
/arkcompiler/ets_runtime/ecmascript/regexp/tests/
Dregexp_test.cpp7 * http://www.apache.org/licenses/LICENSE-2.0
16 #include "ecmascript/ecma_string-inl.h"
42 chunk_ = thread->GetEcmaVM()->GetChunk(); in SetUp()
120 CString source("^[z-a]$"); in HWTEST_F_L0()
310 CString source("[b-ac-e]"); in HWTEST_F_L0()
320 CString source("[\\10b-G]"); in HWTEST_F_L0()
330 CString source("[\\0b-G]"); in HWTEST_F_L0()
440 CString source("[\\d-a]"); in HWTEST_F_L0()
450 CString source("[\\s-a]"); in HWTEST_F_L0()
460 CString source("[\\s-\\w]"); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/base/
Dmath_helper.h2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
22 #define panda_bit_utils_ctz __builtin_ctz // NOLINT(cppcoreguidelines-macro-usage)
23 #define panda_bit_utils_ctzll __builtin_ctzll // NOLINT(cppcoreguidelines-macro-usage)
38 static double Asinh(double input) in Asinh() argument
41 if (input == 0 && !std::signbit(input)) { in Asinh()
46 return std::asinh(input); in Asinh()
49 static inline double Atanh(double input) in Atanh() argument
52 if (input == 0 && std::signbit(input)) { in Atanh()
53 … // -0.0(double) is the special case for std::atanh() function compiled in linux for windows. in Atanh()
[all …]
/arkcompiler/runtime_core/compiler/optimizer/ir_builder/
Dinst_builder-inl.h2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
22 // NOLINTNEXTLINE(misc-definitions-in-headers)
23 Inst *InstBuilder::BuildAnyTypeCheckInst(size_t bc_addr, Inst *input, Inst *save_state, AnyBaseType… in BuildAnyTypeCheckInst() argument
25 auto any_check = graph_->CreateInstAnyTypeCheck(DataType::ANY, bc_addr); in BuildAnyTypeCheckInst()
26 any_check->SetInput(0, input); in BuildAnyTypeCheckInst()
27 any_check->SetInput(1, save_state); in BuildAnyTypeCheckInst()
28 any_check->SetAnyType(type); in BuildAnyTypeCheckInst()
34 // NOLINTNEXTLINE(misc-definitions-in-headers)
38 auto method = GetGraph()->GetMethod(); in BuildLoadFromPool()
[all …]
/arkcompiler/ets_runtime/test/fuzztest/containersdequecommon_fuzzer/
Dcontainersdequecommon_fuzzer.h7 * http://www.apache.org/licenses/LICENSE-2.0
21 #include "ecmascript/ecma_string-inl.h"
27 #include "ecmascript/js_tagged_value-inl.h"
41 EcmaVM *ecmaVM = thread->GetEcmaVM(); in JSObjectCreate()
42 JSHandle<GlobalEnv> globalEnv = ecmaVM->GetGlobalEnv(); in JSObjectCreate()
43 return globalEnv->GetObjectFunction().GetObject<JSFunction>(); in JSObjectCreate()
48 auto factory = thread->GetEcmaVM()->GetFactory(); in CreateEcmaRuntimeCallInfo()
50 …JSHandle<JSTaggedValue> callee(factory->NewJSObjectByConstructor(JSHandle<JSFunction>::Cast(hclass… in CreateEcmaRuntimeCallInfo()
51 JSHandle<JSTaggedValue> undefined = thread->GlobalConstants()->GetHandledUndefined(); in CreateEcmaRuntimeCallInfo()
59 auto factory = thread->GetEcmaVM()->GetFactory(); in CreateJSAPIDeque()
[all …]
/arkcompiler/ets_frontend/es2panda/aot/
Doptions.cpp2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
43 static std::vector<std::string> GetStringItems(std::string &input, const std::string &delimiter) in GetStringItems() argument
48 while ((pos = input.find(delimiter)) != std::string::npos) { in GetStringItems()
49 token = input.substr(0, pos); in GetStringItems()
53 input.erase(0, pos + delimiter.length()); in GetStringItems()
55 if (!input.empty()) { in GetStringItems()
56 items.push_back(input); in GetStringItems()
62 bool Options::CollectInputFilesFromFileList(const std::string &input) in CollectInputFilesFromFileList() argument
66 ifs.open(panda::os::file::File::GetExtendedFilePath(input)); in CollectInputFilesFromFileList()
[all …]
/arkcompiler/runtime_core/quickener/
Dquick.cpp2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
33 bool ProcessArgs(panda::PandArgParser &pa_parser, const panda::PandArg<std::string> &input, in ProcessArgs() argument
42 if (input.GetValue().empty() || output.GetValue().empty() || help.GetValue()) { in ProcessArgs()
57 panda::PandArg<std::string> input("INPUT", "", "Path to the input binary file"); in main() local
63 pa_parser.PushBackTail(&input); in main()
67 if (!ProcessArgs(pa_parser, input, output, help, argc, argv)) { in main()
71 auto input_file = panda::panda_file::File::Open(input.GetValue()); in main()
73 LOG(ERROR, QUICKENER) << "Cannot open file '" << input.GetValue() << "'"; in main()
89 if (!container->Write(&writer, false)) { in main()
/arkcompiler/runtime_core/bytecode_optimizer/
Dreg_acc_alloc.cpp2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
30 compiler::BasicBlock *block = src_inst->GetBasicBlock(); in IsAccWriteBetween()
31 compiler::Inst *inst = src_inst->GetNext(); in IsAccWriteBetween()
38 if (block->GetSuccsBlocks().size() > 1) { in IsAccWriteBetween()
42 ASSERT(block->GetSuccsBlocks().size() == 1); in IsAccWriteBetween()
43 block = block->GetSuccessor(0); in IsAccWriteBetween()
46 if (!dst_inst->IsPhi() && block->GetPredsBlocks().size() > 1) { in IsAccWriteBetween()
49 } while (block->IsEmpty() && !block->HasPhi()); in IsAccWriteBetween()
53 inst = *(block->AllInsts()); in IsAccWriteBetween()
[all …]
/arkcompiler/ets_runtime/test/fuzztest/daterefnew_fuzzer/
Ddaterefnew_fuzzer.cpp7 * http://www.apache.org/licenses/LICENSE-2.0
18 #include "ecmascript/ecma_string-inl.h"
34 double input = 0; in DateRefNewFuzzTest() local
38 if (memcpy_s(&input, MAXBYTELEN, data, size) != 0) { in DateRefNewFuzzTest()
42 if (std::isnan(input)) { in DateRefNewFuzzTest()
43 input = ecmascript::base::NAN_VALUE; in DateRefNewFuzzTest()
45 DateRef::New(vm, input); in DateRefNewFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/containerslightweightmapat_fuzzer/
Dcontainerslightweightmapat_fuzzer.cpp7 * http://www.apache.org/licenses/LICENSE-2.0
20 #include "ecmascript/ecma_string-inl.h"
35 EcmaVM *ecmaVM = thread->GetEcmaVM(); in JSObjectCreate()
36 JSHandle<GlobalEnv> globalEnv = ecmaVM->GetGlobalEnv(); in JSObjectCreate()
37 return globalEnv->GetObjectFunction().GetObject<JSFunction>(); in JSObjectCreate()
42 auto factory = thread->GetEcmaVM()->GetFactory(); in CreateEcmaRuntimeCallInfo()
44 …JSHandle<JSTaggedValue> callee(factory->NewJSObjectByConstructor(JSHandle<JSFunction>::Cast(hclass… in CreateEcmaRuntimeCallInfo()
45 JSHandle<JSTaggedValue> undefined = thread->GlobalConstants()->GetHandledUndefined(); in CreateEcmaRuntimeCallInfo()
53 auto factory = thread->GetEcmaVM()->GetFactory(); in InitializeLightWeightMapConstructor()
54 JSHandle<GlobalEnv> env = thread->GetEcmaVM()->GetGlobalEnv(); in InitializeLightWeightMapConstructor()
[all …]
/arkcompiler/runtime_core/compiler/optimizer/ir/
Dgraph_cloner.h2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
29 // NOLINTNEXTLINE(readability-redundant-declaration)
39 * Helper-class, provides methods to:
40 * - Clone the whole graph;
41 * - Clone loop;
42 * - Unroll loop;
43 * - Peel loop;
76 * /----[pre-loop]
79 * | [loop-body]<----\
[all …]
/arkcompiler/ets_runtime/test/fuzztest/biguint64arrayrefnew_fuzzer/
Dbiguint64arrayrefnew_fuzzer.cpp7 * http://www.apache.org/licenses/LICENSE-2.0
18 #include "ecmascript/ecma_string-inl.h"
31 int32_t input; in BigUint64ArrayRefNewFuzzTest() local
38 if (memcpy_s(&input, MAXBYTELEN, data, size) != 0) { in BigUint64ArrayRefNewFuzzTest()
43 if (input > MaxMenory) { in BigUint64ArrayRefNewFuzzTest()
44 input = MaxMenory; in BigUint64ArrayRefNewFuzzTest()
46 Local<ArrayBufferRef> ref = ArrayBufferRef::New(vm, input); in BigUint64ArrayRefNewFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/dataviewrefnew_fuzzer/
Ddataviewrefnew_fuzzer.cpp7 * http://www.apache.org/licenses/LICENSE-2.0
18 #include "ecmascript/ecma_string-inl.h"
32 int32_t input; in DataViewRefNewFuzzTest() local
39 if (memcpy_s(&input, MAXBYTELEN, data, size) != 0) { in DataViewRefNewFuzzTest()
44 if (input > MaxMenory) { in DataViewRefNewFuzzTest()
45 input = MaxMenory; in DataViewRefNewFuzzTest()
47 Local<ArrayBufferRef> ref = ArrayBufferRef::New(vm, input); in DataViewRefNewFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/uint8clampedarrayrefnew_fuzzer/
Duint8clampedarrayrefnew_fuzzer.cpp7 * http://www.apache.org/licenses/LICENSE-2.0
18 #include "ecmascript/ecma_string-inl.h"
32 int32_t input; in Uint8ClampedArrayRefNewFuzzTest() local
39 if (memcpy_s(&input, MAXBYTELEN, data, size) != 0) { in Uint8ClampedArrayRefNewFuzzTest()
44 if (input > MaxMenory) { in Uint8ClampedArrayRefNewFuzzTest()
45 input = MaxMenory; in Uint8ClampedArrayRefNewFuzzTest()
47 Local<ArrayBufferRef> ref = ArrayBufferRef::New(vm, input); in Uint8ClampedArrayRefNewFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/int16arrayrefnew_fuzzer/
Dint16arrayrefnew_fuzzer.cpp7 * http://www.apache.org/licenses/LICENSE-2.0
18 #include "ecmascript/ecma_string-inl.h"
32 int32_t input; in Int16ArrayRefNewFuzzTest() local
39 if (memcpy_s(&input, MAXBYTELEN, data, size) != 0) { in Int16ArrayRefNewFuzzTest()
44 if (input > MaxMenory) { in Int16ArrayRefNewFuzzTest()
45 input = MaxMenory; in Int16ArrayRefNewFuzzTest()
47 Local<ArrayBufferRef> ref = ArrayBufferRef::New(vm, input); in Int16ArrayRefNewFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/int32arrayrefnew_fuzzer/
Dint32arrayrefnew_fuzzer.cpp7 * http://www.apache.org/licenses/LICENSE-2.0
18 #include "ecmascript/ecma_string-inl.h"
32 int32_t input; in Int32ArrayRefNewFuzzTest() local
39 if (memcpy_s(&input, MAXBYTELEN, data, size) != 0) { in Int32ArrayRefNewFuzzTest()
44 if (input > MaxMenory) { in Int32ArrayRefNewFuzzTest()
45 input = MaxMenory; in Int32ArrayRefNewFuzzTest()
47 Local<ArrayBufferRef> ref = ArrayBufferRef::New(vm, input); in Int32ArrayRefNewFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/uint32arrayrefnew_fuzzer/
Duint32arrayrefnew_fuzzer.cpp7 * http://www.apache.org/licenses/LICENSE-2.0
18 #include "ecmascript/ecma_string-inl.h"
32 int32_t input; in Uint32ArrayRefNewFuzzTest() local
39 if (memcpy_s(&input, MAXBYTELEN, data, size) != 0) { in Uint32ArrayRefNewFuzzTest()
44 if (input > MaxMenory) { in Uint32ArrayRefNewFuzzTest()
45 input = MaxMenory; in Uint32ArrayRefNewFuzzTest()
47 Local<ArrayBufferRef> ref = ArrayBufferRef::New(vm, input); in Uint32ArrayRefNewFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/uint8arrayrefnew_fuzzer/
Duint8arrayrefnew_fuzzer.cpp7 * http://www.apache.org/licenses/LICENSE-2.0
18 #include "ecmascript/ecma_string-inl.h"
32 int32_t input; in Uint8ArrayRefNewFuzzTest() local
39 if (memcpy_s(&input, MAXBYTELEN, data, size) != 0) { in Uint8ArrayRefNewFuzzTest()
44 if (input > MaxMenory) { in Uint8ArrayRefNewFuzzTest()
45 input = MaxMenory; in Uint8ArrayRefNewFuzzTest()
47 Local<ArrayBufferRef> ref = ArrayBufferRef::New(vm, input); in Uint8ArrayRefNewFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/bigint64arrayrefnew_fuzzer/
Dbigint64arrayrefnew_fuzzer.cpp7 * http://www.apache.org/licenses/LICENSE-2.0
18 #include "ecmascript/ecma_string-inl.h"
32 int32_t input; in BigInt64ArrayRefNewFuzzTest() local
39 if (memcpy_s(&input, MAXBYTELEN, data, size) != 0) { in BigInt64ArrayRefNewFuzzTest()
44 if (input > MaxMenory) { in BigInt64ArrayRefNewFuzzTest()
45 input = MaxMenory; in BigInt64ArrayRefNewFuzzTest()
47 Local<ArrayBufferRef> ref = ArrayBufferRef::New(vm, input); in BigInt64ArrayRefNewFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/float32arrayrefnew_fuzzer/
Dfloat32arrayrefnew_fuzzer.cpp7 * http://www.apache.org/licenses/LICENSE-2.0
18 #include "ecmascript/ecma_string-inl.h"
33 int32_t input; in Float32ArrayRefNewFuzzTest() local
40 if (memcpy_s(&input, MAXBYTELEN, data, size) != 0) { in Float32ArrayRefNewFuzzTest()
45 if (input > MaxMenory) { in Float32ArrayRefNewFuzzTest()
46 input = MaxMenory; in Float32ArrayRefNewFuzzTest()
48 Local<ArrayBufferRef> ref = ArrayBufferRef::New(vm, input); in Float32ArrayRefNewFuzzTest()

12345678910>>...25