/arkcompiler/ets_runtime/ecmascript/ |
H A D | js_relative_time_format.cpp | 171 // 14.1.2 SingularRelativeTimeUnit ( unit ) 172 bool SingularUnitToIcuUnit(JSThread *thread, const JSHandle<EcmaString> &unit, URelativeDateTimeUnit *unitEnum) in SingularUnitToIcuUnit() argument 174 // 1. Assert: Type(unit) is String. in SingularUnitToIcuUnit() 175 ASSERT(JSHandle<JSTaggedValue>::Cast(unit)->IsString()); in SingularUnitToIcuUnit() 177 // 2. If unit is "seconds" or "second", return "second". in SingularUnitToIcuUnit() 178 // 3. If unit is "minutes" or "minute", return "minute". in SingularUnitToIcuUnit() 179 // 4. If unit is "hours" or "hour", return "hour". in SingularUnitToIcuUnit() 180 // 5. If unit is "days" or "day", return "day". in SingularUnitToIcuUnit() 181 // 6. If unit is "weeks" or "week", return "week". in SingularUnitToIcuUnit() 182 // 7. If unit i in SingularUnitToIcuUnit() 259 GetIcuFormatted(JSThread *thread, const JSHandle<JSRelativeTimeFormat> &relativeTimeFormat, double value, const JSHandle<EcmaString> &unit) GetIcuFormatted() argument 298 SingularUnitString(JSThread *thread, const JSHandle<EcmaString> &unit) SingularUnitString() argument 356 Format(JSThread *thread, double value, const JSHandle<EcmaString> &unit, const JSHandle<JSRelativeTimeFormat> &relativeTimeFormat) Format() argument 372 FormatToArray(JSThread *thread, const JSHandle<JSArray> &array, const icu::FormattedRelativeDateTime &formatted, double value, const JSHandle<EcmaString> &unit) FormatToArray() argument 475 FormatToParts(JSThread *thread, double value, const JSHandle<EcmaString> &unit, const JSHandle<JSRelativeTimeFormat> &relativeTimeFormat) FormatToParts() argument [all...] |
H A D | js_number_format.cpp | 27 "decimal", "percent", "currency", "unit" 238 // Get All ICU measure unit in ToMeasureUnit() 245 // Find measure unit according to sanctioned unit in ToMeasureUnit() 246 // then return measure unit in ToMeasureUnit() 247 for (auto &unit : units) { in ToMeasureUnit() 248 if (std::strcmp(sanctionedUnit.c_str(), unit.getSubtype()) == 0) { in ToMeasureUnit() 249 return unit; in ToMeasureUnit() 256 bool IsSanctionedSimpleUnitIdentifier(const std::string &unit) in IsSanctionedSimpleUnitIdentifier() argument 258 // 1. If unitIdentifier is listed in sanctioned unit se in IsSanctionedSimpleUnitIdentifier() 269 IsWellFormedUnitIdentifier(const std::string &unit, icu::MeasureUnit &icuUnit, icu::MeasureUnit &icuPerUnit) IsWellFormedUnitIdentifier() argument 383 JSHandle<JSTaggedValue> unit = SetNumberFormatUnitOptions() local [all...] |
H A D | js_relative_time_format.h | 92 static JSHandle<EcmaString> Format(JSThread *thread, double value, const JSHandle<EcmaString> &unit,
95 static JSHandle<JSArray> FormatToParts(JSThread *thread, double value, const JSHandle<EcmaString> &unit,
|
/arkcompiler/runtime_core/static_core/irtoc/backend/ |
H A D | compilation.cpp | 138 for (auto unit : units_) { in CollectUsedRegisters() 139 if ((unit->GetGraph()->GetMode().IsInterpreter() || unit->GetGraph()->GetMode().IsInterpreterEntry()) && in CollectUsedRegisters() 140 unit->GetCompilationResult() != CompilationResult::ARK) { in CollectUsedRegisters() 141 usedRegisters_ |= UsedRegistersCollector::CollectForCode(allocator, unit->GetCode()); in CollectUsedRegisters() 214 for (auto unit : units_) { in Run() 215 delete unit; in Run() 235 for (auto unit : units_) { in Compile() 236 if (compiler::g_options.WasSetCompilerRegex() && !std::regex_match(unit->GetName(), methodsRegex_)) { in Compile() 239 LOG(INFO, IRTOC) << "Compile " << unit in Compile() [all...] |
H A D | irtoc_runtime.h | 65 auto unit = reinterpret_cast<Function *>(method); variable 66 ASSERT(unit->GetGraph()->HasEndBlock()); 68 for (auto exit : unit->GetGraph()->GetEndBlock()->GetPredsBlocks()) { 88 auto unit = reinterpret_cast<Function *>(method); variable 89 return unit->GetArgsCount(); 129 auto unit = reinterpret_cast<Function *>(method); variable 130 for (auto param : unit->GetGraph()->GetParameters()) {
|
/arkcompiler/ets_frontend/ets2panda/compiler/core/ |
H A D | compilerImpl.cpp | 258 const CompilationUnit &unit) in ParserErrorChecker() 262 if (unit.options.CompilerOptions().dumpAst) { in ParserErrorChecker() 272 static pandasm::Program *CreateCompiler(const CompilationUnit &unit, const PhaseListGetter &getPhases, in CreateCompiler() argument 279 Parser(&program, unit.options.CompilerOptions(), static_cast<parser::ParserStatus>(unit.rawParserStatus)); in CreateCompiler() 288 CreateDebuggerEvaluationPlugin(checker, allocator, &program, unit.options.CompilerOptions()); in CreateCompiler() 295 context.config->options = &unit.options; in CreateCompiler() 296 context.sourceFile = &unit.input; in CreateCompiler() 311 parser.ParseScript(unit.input, unit in CreateCompiler() 257 ParserErrorChecker(bool isAnyError, parser::Program *program, CompilerImpl *compilerImpl, const CompilationUnit &unit) ParserErrorChecker() argument 334 Compile(const CompilationUnit &unit) Compile() argument [all...] |
/arkcompiler/runtime_core/libpandabase/utils/ |
H A D | cframe_layout.h | 149 template <OffsetUnit unit> 154 return unit == BYTES ? (size_in_slots * GetSlotSize()) : size_in_slots; in GetFrameSize() 157 template <OffsetOrigin origin, OffsetUnit unit> 162 if constexpr (unit == BYTES) { // NOLINT in GetOffset() 167 if constexpr (unit == BYTES) { // NOLINT in GetOffset() 174 template <OffsetOrigin origin, OffsetUnit unit> 177 return GetOffset<origin, unit>(MethodSlot::Start()); in GetMethodOffset() 180 template <OffsetOrigin origin, OffsetUnit unit> 183 return GetOffset<origin, unit>(LrSlot::Start()); in GetReturnAddressOffset() 186 template <OffsetOrigin origin, OffsetUnit unit> [all...] |
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/include/ |
H A D | mpl_timer.h | 106 template <Unit unit = Unit::kMilliSeconds> 112 if constexpr (unit == Unit::kMicroSeconds) { in ConvertAllTimer2Str() 114 } else if constexpr (unit == Unit::kMilliSeconds) { in ConvertAllTimer2Str() 117 static_assert(unit == Unit::kSeconds, "unknown units"); in ConvertAllTimer2Str()
|
/arkcompiler/runtime_core/static_core/tests/vm-benchmarks/tests/ |
H A D | test_unit.py | 24 from vmb.unit import BenchUnit 78 test.assertTrue('ns/op' == run.unit) 93 test.assertTrue('ns/op' == run.unit)
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
H A D | builtins_relative_time_format.cpp | 108 // 4. Let unit be ? ToString(unit). in Format() 110 JSHandle<EcmaString> unit = JSTaggedValue::ToString(thread, unitValue); in Format() local 113 // 5. Return ? FormatRelativeTime(relativeTimeFormat, value, unit). in Format() 115 JSHandle<EcmaString> result = JSRelativeTimeFormat::Format(thread, x, unit, relativeTimeFormat); in Format() 141 // 4. Let unit be ? ToString(unit). in FormatToParts() 143 JSHandle<EcmaString> unit = JSTaggedValue::ToString(thread, unitValue); in FormatToParts() local 146 // 5. Return ? FormatRelativeTime(relativeTimeFormat, value, unit). in FormatToParts() 148 JSHandle<JSArray> result = JSRelativeTimeFormat::FormatToParts(thread, x, unit, relativeTimeForma in FormatToParts() [all...] |
/arkcompiler/runtime_core/static_core/tests/vm-benchmarks/src/vmb/plugins/hooks/ |
H A D | import_esm_without_extention.py | 20 from vmb.unit import BenchUnit
|
H A D | fix_print_call.py | 22 from vmb.unit import BenchUnit
|
H A D | tombstones.py | 21 from vmb.unit import BenchUnit
|
/arkcompiler/runtime_core/static_core/tests/vm-benchmarks/examples/plugins/platforms/ |
H A D | dummy_host.py | 23 from vmb.unit import BenchUnit
|
/arkcompiler/runtime_core/static_core/tests/vm-benchmarks/examples/plugins/tools/ |
H A D | dummy.py | 19 from vmb.unit import BenchUnit
|
/arkcompiler/runtime_core/static_core/tests/vm-benchmarks/src/vmb/plugins/platforms/ |
H A D | v_8_host.py | 20 from vmb.unit import BenchUnit
|
H A D | node_host.py | 23 from vmb.unit import BenchUnit
|
H A D | swift_device.py | 22 from vmb.unit import BenchUnit
|
H A D | swift_host.py | 23 from vmb.unit import BenchUnit
|
H A D | arkts_node_interop_host.py | 24 from vmb.unit import BenchUnit
|
H A D | v_8_device.py | 20 from vmb.unit import BenchUnit
|
/arkcompiler/runtime_core/static_core/tests/vm-benchmarks/src/vmb/plugins/tools/ |
H A D | node.py | 19 from vmb.unit import BenchUnit
|
H A D | exe.py | 19 from vmb.unit import BenchUnit
|
H A D | node_interop.py | 21 from vmb.unit import BenchUnit
|
/arkcompiler/ets_frontend/arkguard/scripts/ |
H A D | grammar_test.py | 249 unit = TimeUnit(self.tag, current_time_second() - self.start_time) 250 self.time_list.append(unit) 331 for unit in self.time_list: 332 logging.info("%s: %f", unit.tag, unit.duration_second)
|