/arkcompiler/ets_frontend/ets2panda/checker/types/ts/ |
H A D | bigintLiteralType.h | 24 BigintLiteralType(util::StringView value, bool negative) in BigintLiteralType() argument 25 : Type(TypeFlag::BIGINT_LITERAL), value_(value), negative_(negative) in BigintLiteralType()
|
/arkcompiler/ets_frontend/es2panda/typescript/types/ |
H A D | bigintLiteralType.h | 25 BigintLiteralType(util::StringView value, bool negative) in BigintLiteralType() argument 26 : Type(TypeFlag::BIGINT_LITERAL), value_(value), negative_(negative) in BigintLiteralType()
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/helpers/ |
H A D | ets_intrinsics_helpers.cpp | 275 bool negative = false; in StringToDoubleWithRadix() local 277 negative = true; in StringToDoubleWithRadix() 340 return negative ? -result : result; in StringToDoubleWithRadix() 542 char *SmallFpToString(FpType number, bool negative, char *buffer) in SmallFpToString() argument 545 if (negative) { in SmallFpToString() 571 Span<char> FpToStringDecimalRadixMainCase(FpType number, bool negative, Span<char> buffer) in FpToStringDecimalRadixMainCase() argument 618 // unit 0x002D (HYPHEN-MINUS) according to whether n−1 is positive or negative, followed by the code units of in FpToStringDecimalRadixMainCase() 626 if (negative) { in FpToStringDecimalRadixMainCase() 633 template char *SmallFpToString<double>(double number, bool negative, char *buffer); 634 template char *SmallFpToString<float>(float number, bool negative, cha [all...] |
H A D | ets_intrinsics_helpers.h | 322 char *SmallFpToString(FpType number, bool negative, char *buffer); 325 Span<char> FpToStringDecimalRadixMainCase(FpType number, bool negative, Span<char> buffer); 349 bool negative = false; in FpToStringDecimalRadix() local 351 negative = true; in FpToStringDecimalRadix() 356 auto bufferEnd = SmallFpToString(number, negative, buffer.begin()); in FpToStringDecimalRadix() 360 auto newBuffer = FpToStringDecimalRadixMainCase(number, negative, Span(buffer)); in FpToStringDecimalRadix()
|
/arkcompiler/ets_runtime/ecmascript/base/tests/ |
H A D | number_helper_test.cpp | 362 * When it is negative,it is rounded up. 581 bool negative = false; in HWTEST_F_L0() local 583 EXPECT_EQ(NumberHelper::StringToDoubleWithRadix(sp.begin(), sp.end(), radix, &negative).GetDouble(), -5); in HWTEST_F_L0() 588 negative = false; in HWTEST_F_L0() 590 EXPECT_EQ(NumberHelper::StringToDoubleWithRadix(sp.begin(), sp.end(), radix, &negative).GetDouble(), 27); in HWTEST_F_L0() 594 negative = false; in HWTEST_F_L0() 595 EXPECT_EQ(NumberHelper::StringToDoubleWithRadix(sp.begin(), sp.end(), radix, &negative).GetDouble(), 27); in HWTEST_F_L0() 600 negative = false; in HWTEST_F_L0() 601 EXPECT_EQ(NumberHelper::StringToDoubleWithRadix(sp.begin(), sp.end(), radix, &negative).GetDouble(), 255); in HWTEST_F_L0() 605 negative in HWTEST_F_L0() [all...] |
/arkcompiler/ets_runtime/ecmascript/base/ |
H A D | number_helper.cpp | 182 bool negative = number < 0.0; 183 if (negative) { 238 if (negative) { 255 bool negative = false; 262 negative = true; 286 if (negative) { 560 bool negative = false; 563 if (EcmaStringAccessor(string).ToInt(&elementIndex, &negative)) { 564 if (elementIndex == 0 && negative == true) { 573 JSTaggedValue result = NumberHelper::StringToDoubleWithRadix(str.begin(), str.end(), radix, &negative); [all...] |
H A D | json_parser.h | 155 JSTaggedValue ConvertToNumber(const std::string &str, bool negative, bool hasExponent, bool hasDecimal);
|
H A D | json_parser.cpp | 529 bool negative = false; in ParseNumber() local 536 negative = true; in ParseNumber() 552 return ConvertToNumber(strNum, negative, hasExponent, hasDecimal); in ParseNumber() 556 JSTaggedValue JsonParser<T>::ConvertToNumber(const std::string &str, bool negative, bool hasExponent, bool hasDecimal) in ConvertToNumber() argument 569 if (negative && v == 0) { in ConvertToNumber()
|
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/ |
H A D | descriptor.py | 31 self.negative = re.compile( 32 r"negative:.*phase:\s+(?P<phase>\w+).*type:\s+(?P<type>\w+)", 68 match = self.negative.search(header)
|
/arkcompiler/ets_frontend/es2panda/test/ |
H A D | test262util.py | 32 self.negative = re.compile( 33 r"negative:.*phase:\s+(?P<phase>\w+).*type:\s+(?P<type>\w+)", 143 match = self.negative.search(header) 161 return False, False # negative test passed 176 return False # negative test passed
|
/arkcompiler/ets_frontend/es2panda/typescript/core/ |
H A D | typeCreation.cpp | 33 Type *Checker::CreateBigintLiteralType(const util::StringView &str, bool negative) in CreateBigintLiteralType() argument 40 auto *newBigiLiteralType = allocator_->New<BigintLiteralType>(str, negative); in CreateBigintLiteralType()
|
/arkcompiler/ets_frontend/ets2panda/checker/ts/ |
H A D | typeCreation.cpp | 32 Type *TSChecker::CreateBigintLiteralType(const util::StringView &str, bool negative) in CreateBigintLiteralType() argument 39 auto *newBigintLiteralType = Allocator()->New<BigintLiteralType>(str, negative); in CreateBigintLiteralType()
|
/arkcompiler/runtime_core/static_core/tests/cts-generator/ |
H A D | generate-cts.rb | 36 if chunk_size > tests.length || chunk_size < 1 || chunk.negative?
|
/arkcompiler/runtime_core/tests/cts-generator/ |
H A D | generate-cts.rb | 36 if chunk_size > tests.length || chunk_size < 1 || chunk.negative?
|
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/ets_templates/ |
H A D | test_metadata.py | 39 NEGATIVE = "negative" 52 def negative(self) -> bool: member in Tags
|
/arkcompiler/runtime_core/static_core/libpandabase/utils/ |
H A D | utf.cpp | 611 void UInt64ToUtf16Array(uint64_t v, uint16_t *outUtf16Buf, uint32_t nDigits, bool negative) in UInt64ToUtf16Array() argument 631 outSpan[negative ? 1U : 0] = v + '0'; in UInt64ToUtf16Array() 633 if (negative) { in UInt64ToUtf16Array()
|
H A D | utf.h | 148 PANDA_PUBLIC_API void UInt64ToUtf16Array(uint64_t v, uint16_t *outUtf16Buf, uint32_t nDigits, bool negative);
|
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/ |
H A D | test_ets.py | 56 negative_runtime_metadata = self.metadata.tags.negative and not self.metadata.tags.compile_only 62 return self.metadata.tags.negative and self.metadata.tags.compile_only
|
/arkcompiler/ets_frontend/ets2panda/checker/ |
H A D | TSchecker.h | 301 Type *CreateBigintLiteralType(const util::StringView &str, bool negative);
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | ecma_string.cpp | 1105 bool EcmaString::ToInt(int32_t *index, bool *negative) in ToInt() argument 1124 *negative = true; in ToInt() 1129 *index = *negative ? -n : n; in ToInt()
|
H A D | ecma_string.h | 616 bool ToInt(int32_t *index, bool *negative); 1445 bool ToInt(int32_t *index, bool *negative) in ToInt() argument 1447 return string_->ToInt(index, negative); in ToInt()
|
/arkcompiler/ets_frontend/es2panda/typescript/ |
H A D | checker.h | 374 Type *CreateBigintLiteralType(const util::StringView &str, bool negative);
|
/arkcompiler/runtime_core/static_core/libllvmbackend/lowering/ |
H A D | llvm_ir_constructor.cpp | 1839 // Check if rounded value less than zero (if not negative rounding is done) in CreateRoundArm64() 1840 auto negative = llvm::BasicBlock::Create(ctx, CreateBasicBlockName(inst, "neg"), func_); in CreateRoundArm64() local 1843 builder_.CreateCondBr(lessThan, negative, done); in CreateRoundArm64() 1846 SetCurrentBasicBlock(negative); in CreateRoundArm64() 1860 roundPhi->addIncoming(roundMayInc, negative); in CreateRoundArm64()
|
/arkcompiler/ets_frontend/es2panda/test/compiler/js/ |
H A D | cocos_worker_test.js | 12020 negative() { 15226 negative() { 15680 negative() { [all...] |