Home
last modified time | relevance | path

Searched full:return (Results 1 – 25 of 4305) sorted by relevance

12345678910>>...173

/arkcompiler/ets_runtime/ecmascript/jspandafile/bytecode_inst/
Dold_instruction.h35 return static_cast<Opcode>((secondary << 8U) | primary); in GetOpcode()
37 return static_cast<Opcode>(primary); in GetOpcode()
42 return OldBytecodeInst(OldBytecodeInstBase::GetPointer(offset)); in JumpTo()
47 return JumpTo(GetSize()); in GetNext()
52 return OldBytecodeInstBase::GetAddress(); in GetAddress()
57 return Size(GetFormat(GetOpcode())); in GetSize()
64 return static_cast<uint32_t>(Read<8, 16>()); in GetId()
67 return static_cast<uint32_t>(Read<8, 32>()); in GetId()
70 return static_cast<uint32_t>(Read<16, 16>()); in GetId()
73 return static_cast<uint32_t>(Read<16, 16>()); in GetId()
[all …]
/arkcompiler/ets_frontend/es2panda/lexer/token/
Dtoken.cpp24 return (type_ == TokenType::LITERAL_IDENT && in IsAccessability()
32 return (type_ == TokenType::LITERAL_IDENT && keywordType_ == TokenType::KEYW_ASYNC && in IsAsyncModifier()
38 return (type_ == TokenType::LITERAL_IDENT && keywordType_ == TokenType::KEYW_STATIC && in IsStaticModifier()
44 return (type_ == TokenType::LITERAL_IDENT && keywordType_ == TokenType::KEYW_DECLARE && in IsDeclareModifier()
50 return (type_ == TokenType::LITERAL_IDENT && keywordType_ == TokenType::KEYW_READONLY && in IsReadonlyModifier()
56 return (type_ == TokenType::PUNCTUATOR_MINUS_MINUS || type_ == TokenType::PUNCTUATOR_PLUS_PLUS); in IsUpdate()
61 return (type_ == TokenType::PUNCTUATOR_MINUS || type_ == TokenType::PUNCTUATOR_PLUS || in IsUnary()
70 return (type_ == TokenType::LITERAL_STRING || type_ == TokenType::LITERAL_NUMBER || in IsPropNameLiteral()
76return (type_ >= TokenType::FIRST_KEYW || type_ == TokenType::KEYW_IN || type_ == TokenType::KEYW_… in IsKeyword()
91 return true; in IsReservedTypeName()
[all …]
/arkcompiler/toolchain/tooling/base/
Dpt_events.h48 return "Debugger.breakpointResolved"; in GetName()
53 return breakpointId_; in GetBreakpointId()
59 return *this; in SetBreakpointId()
64 return location_.get(); in GetLocation()
70 return *this; in SetLocation()
89 return "Debugger.paused"; in GetName()
94 return &callFrames_; in GetCallFrames()
100 return *this; in SetCallFrames()
105 return reason_; in GetReason()
111 return *this; in SetReason()
[all …]
Dpt_json.cpp23 return std::make_unique<PtJson>(cJSON_CreateObject()); in CreateObject()
28 return std::make_unique<PtJson>(cJSON_CreateArray()); in CreateArray()
42 return std::make_unique<PtJson>(value); in Parse()
48 return ""; in Stringify()
53 return ""; in Stringify()
58 return result; in Stringify()
67 return false; in Add()
73 return false; in Add()
76 return true; in Add()
81 return Add(key, static_cast<double>(value)); in Add()
[all …]
Dpt_params.h45 return maxScriptsCacheSize_.value_or(0); in GetMaxScriptsCacheSize()
50 return maxScriptsCacheSize_.has_value(); in HasMaxScriptsCacheSize()
69 return callFrameId_; in GetCallFrameId()
74 return expression_; in GetExpression()
100 return start_.get(); in GetStart()
106 return end_->get(); in GetEnd()
108 return nullptr; in GetEnd()
113 return end_.has_value(); in HasEnd()
118 return restrictToFunction_.value_or(false); in GetRestrictToFunction()
123 return restrictToFunction_.has_value(); in HasRestrictToFunction()
[all …]
Dpt_types.h51return "id:" + std::to_string(metaData.line_) + ":" + std::to_string(metaData.column_) + ":" + in ToString()
59 return false; in ParseBreakpointId()
63 return false; in ParseBreakpointId()
67 return false; in ParseBreakpointId()
76 return true; in ParseBreakpointId()
98 return lineNumber_; in GetLineNumber()
103 return columnNumber_; in GetColumnNumber()
108 return url_; in GetUrl()
114 return condition_.value(); in GetCondition()
119 return condition_.has_value(); in HasCondition()
[all …]
/arkcompiler/runtime_core/tests/cts-assembly/
Dtst-compare.pa22 return
25 return
33 return
36 return
44 return
47 return
55 return
58 return
66 return
69 return
[all …]
Dtst-select.pa22 return
25 return
33 return
36 return
44 return
47 return
55 return
58 return
66 return
69 return
[all …]
Dtst-branch.pa20 return
25 return
33 return
36 return
44 return
47 return
55 return
58 return
66 return
69 return
[all …]
/arkcompiler/ets_frontend/ts2panda/src/
Djshelpers.js19 return node.symbol;
23 return "" + str;
27 return ts.getTextOfIdentifierOrLiteral(node);
31 return (file.scriptKind & ts.ScriptKind.JS) != 0;
35 return [];
39 return stmt.flowNode;
47 return ts.createDiagnosticForNode(node, message, ...args);
51 return ts.createCompilerDiagnostic(message, ...args);
55 return ts.createFileDiagnostic(file, start, length, message, args);
59 return ts.isEffectiveStrictModeSourceFile(node, compilerOptions);
[all …]
DcmdOptions.ts70 return false;
72 return this.options["display-typeinfo"];
77 return false;
79 return this.options["debug-log"];
84 return false;
86 return this.options["dump-assembly"];
91 return false;
93 return this.options["debug"];
102 return [];
104 return this.options["keep-persistent-watch"];
[all …]
/arkcompiler/ets_frontend/es2panda/test/compiler/js/language/arguments-object/
Dtest-key-named-called-func-bound-value-expected.txt3 return "Successfully called key 2e3";
7 return "Successfully called key 2e3";
11 return "Successfully called key 1000";
15 return "Successfully called key NaN";
19 return "Successfully called key 0.0";
23 return "Successfully called key Infinity";
27 return "Successfully called key 1e-6";
31 return "Successfully called key 1e-6";
35 return "Successfully called key 0.000002";
39 return "Successfully called key 1e-7";
[all …]
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/privacyFunctionReturnTypeDeclFile/
DprivacyFunctionReturnTypeDeclFile_externalModule.ts58 return null;
62 return null;
66 return null;
70 return null;
75 return new privateClass();
80 return new privateClass();
85 return new privateClass();
90 return new privateClass();
97 return null;
101 return null;
[all …]
DprivacyFunctionReturnTypeDeclFile_GlobalFile.ts32 return null;
36 return null;
40 return null;
44 return null;
49 return new publicClassInGlobal();
54 return new publicClassInGlobal();
59 return new publicClassInGlobal();
64 return new publicClassInGlobal();
69 return null;
74 return new publicClassInGlobal();
[all …]
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DtargetTypeCalls.ts24 AssertType(function() { return function (v:string) {return v;}; }(), "(string) => string");
25 AssertType(function() { return function (v:string) {return v;}; }, "() => (string) => string");
26 AssertType(function (v:string) {return v;}, "(string) => string");
29 return function (v:string) {return v;}; }() // should work
34 AssertType(function() { return function () { return 0; } }(), "() => number");
35 AssertType(function() { return function () { return 0; } }, "() => () => number");
36 AssertType(function () { return 0; }, "() => number");
38 return function () { return 0; } }() // should work
43 AssertType(function() { return function() { return function(v) {return v;};}(); }(), "(any) => any"…
44 AssertType(function() { return function() { return function(v) {return v;};}(); }, "() => (any) => …
[all …]
/arkcompiler/ets_runtime/ecmascript/
Djs_serializer.cpp49 return WriteRawData(&rawId, sizeof(rawId)); in WriteType()
69 return false; in SerializeJSTaggedValue()
73 return false; in SerializeJSTaggedValue()
76 return true; in SerializeJSTaggedValue()
83 return WriteType(SerializationUID::JS_NULL); in WritePrimitiveValue()
86 return WriteType(SerializationUID::JS_UNDEFINED); in WritePrimitiveValue()
89 return WriteType(SerializationUID::JS_TRUE); in WritePrimitiveValue()
92 return WriteType(SerializationUID::JS_FALSE); in WritePrimitiveValue()
95 return WriteInt(value->GetInt()); in WritePrimitiveValue()
98 return WriteDouble(value->GetDouble()); in WritePrimitiveValue()
[all …]
Ddate_parse.h30 return false; in IsBetween()
32 return true; in IsBetween()
49 return index_; in GetIndex()
65 return num; in ReadNumber()
77 return length; in ReadAlphabet()
84 return ch + 32; in GetLower()
86 return ch; in GetLower()
92 return true; in IsDigit()
94 return false; in IsDigit()
100 return true; in IsSign()
[all …]
Djs_tagged_value-inl.h47 return GetInt() != 0; in ToBoolean()
51 return !std::isnan(d) && d != 0; in ToBoolean()
61 return false; in ToBoolean()
64 return true; in ToBoolean()
73 return !bigint->IsZero(); in ToBoolean()
79 return EcmaStringAccessor(str).GetLength() != 0; in ToBoolean()
81 return true; in ToBoolean()
90 return JSTaggedNumber(tagged.GetTaggedValue()); in ToNumber()
96 return JSTaggedNumber(base::NAN_VALUE); in ToNumber()
99 return JSTaggedNumber(1); in ToNumber()
[all …]
Djs_runtime_options.h154 return (enableArkTools_) || in EnableArkTools()
164 return WasOptionSet(OPTION_ENABLE_ARK_TOOLS); in WasSetEnableArkTools()
169 return enableRuntimeStat_; in IsEnableRuntimeStat()
179 return WasOptionSet(OPTION_ENABLE_RUNTIME_STAT); in WasSetEnableRuntimeStat()
184 return stubFile_; in GetStubFile()
194 return WasOptionSet(OPTION_STUB_FILE); in WasStubFileSet()
204 return enableAOT_; in GetEnableAOT()
209 return aotOutputFile_; in GetAOTOutputFile()
219 return WasOptionSet(OPTION_AOT_FILE); in WasAOTOutputFileSet()
224 return targetTriple_; in GetTargetTriple()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/
Dbytecodes.h84 return HasFlag(BytecodeFlags::READ_ACC); in HasAccIn()
89 return HasFlag(BytecodeFlags::NO_SIDE_EFFECTS); in IsNoSideEffects()
94 return HasFlag(BytecodeFlags::NO_THROW); in IsNoThrow()
99 return HasFlag(BytecodeFlags::READ_THIS_OBJECT); in HasThisIn()
104 return HasFlag(BytecodeFlags::WRITE_ACC); in HasAccOut()
109 return HasFlag(BytecodeFlags::READ_ENV); in HasEnvIn()
114 return HasFlag(BytecodeFlags::WRITE_ENV); in HasEnvOut()
119 return HasFlag(BytecodeFlags::NO_GC); in IsNoGC()
124 return GetKind() == BytecodeKind::MOV; in IsMov()
129 return GetKind() == BytecodeKind::RETURN_BC; in IsReturn()
[all …]
Dgate_meta_data.cpp25 return "NOVALUE"; in MachineTypeToStr()
27 return "ANYVALUE"; in MachineTypeToStr()
29 return "I1"; in MachineTypeToStr()
31 return "I8"; in MachineTypeToStr()
33 return "I16"; in MachineTypeToStr()
35 return "I32"; in MachineTypeToStr()
37 return "I64"; in MachineTypeToStr()
39 return "F32"; in MachineTypeToStr()
41 return "F64"; in MachineTypeToStr()
43 return "???"; in MachineTypeToStr()
[all …]
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/privacyAccessorDeclFile/
DprivacyAccessorDeclFile_externalModule.ts30 return null;
34 return null;
38 return null;
42 return null;
47 return new privateClass();
52 return new privateClass();
57 return new privateClass();
62 return new privateClass();
69 return null;
73 return null;
[all …]
DprivacyAccessorDeclFile_GlobalFile.ts27 return null;
31 return null;
35 return null;
39 return null;
44 return new publicClassInGlobal();
49 return new publicClassInGlobal();
54 return new publicClassInGlobal();
59 return new publicClassInGlobal();
90 return null;
94 return null;
[all …]
/arkcompiler/ets_runtime/ecmascript/base/
Dtyped_array_helper-inl.h39 return GetType(type); in GetType()
46 return DataViewType::INT8; in GetType()
48 return DataViewType::UINT8; in GetType()
50 return DataViewType::UINT8_CLAMPED; in GetType()
52 return DataViewType::INT16; in GetType()
54 return DataViewType::UINT16; in GetType()
56 return DataViewType::INT32; in GetType()
58 return DataViewType::UINT32; in GetType()
60 return DataViewType::FLOAT32; in GetType()
62 return DataViewType::FLOAT64; in GetType()
[all …]
/arkcompiler/runtime_core/libpandafile/
Dfile_items.cpp29 return lang == panda::panda_file::SourceLang::ECMASCRIPT; in IsDynamicLanguage()
35 return panda::panda_file::SourceLang::ECMASCRIPT; in LanguageFromString()
37 return panda::panda_file::SourceLang::PANDA_ASSEMBLY; in LanguageFromString()
43 return "ECMAScript"; in LanguageToString()
45 return "PandaAssembly"; in LanguageToString()
50 return ".ctor"; in GetCtorName()
55 return ".cctor"; in GetCctorName()
61 return "Lpanda/JSString;"; in GetStringClassDescriptor()
63 return "Lpanda/String;"; in GetStringClassDescriptor()
70 return false; in WriteUlebTaggedValue()
[all …]

12345678910>>...173