/arkcompiler/runtime_core/assembler/utils/ |
H A D | number-utils.h | 31 inline bool IsHexNumber(const std::string_view &token) in IsHexNumber() argument 33 for (auto i : token) { in IsHexNumber() 41 inline bool IsBinaryNumber(const std::string_view &token) in IsBinaryNumber() argument 43 for (auto i : token) { in IsBinaryNumber() 51 inline bool IsOctalNumber(const std::string_view &token) in IsOctalNumber() argument 53 for (auto i : token) { in IsOctalNumber() 65 std::string_view token = p; in ValidateInteger() local 67 if (token.back() == '-' || token.back() == '+' || token in ValidateInteger() 133 std::string_view token = p; ValidateFloat() local [all...] |
/arkcompiler/runtime_core/static_core/assembler/utils/ |
H A D | number-utils.cpp | 61 std::string_view token = p; in ValidateInteger() local 63 if (token.back() == '-' || token.back() == '+' || token.back() == 'x' || token == ".") { in ValidateInteger() 67 if (token[0] == '-' || token[0] == '+') { in ValidateInteger() 68 token.remove_prefix(1); in ValidateInteger() 71 if (token[0] == '0' && token in ValidateInteger() 96 std::string_view token = p; ValidateFloat() local [all...] |
H A D | number-utils.h | 33 inline bool ValidateXToken(std::string_view token, size_t shift) in ValidateXToken() argument 35 token.remove_prefix(shift); in ValidateXToken() 37 for (auto i : token) { in ValidateXToken() 46 inline bool ValidateBToken(std::string_view token, size_t shift) in ValidateBToken() argument 48 token.remove_prefix(shift); in ValidateBToken() 49 if (token.empty()) { in ValidateBToken() 52 for (auto i : token) { in ValidateBToken() 61 inline bool ValidateZeroToTenToken(std::string_view token) in ValidateZeroToTenToken() argument 63 token.remove_prefix(1); in ValidateZeroToTenToken() 65 for (auto i : token) { in ValidateZeroToTenToken() [all...] |
/arkcompiler/runtime_core/assembler/ |
H A D | context.cpp | 34 token = std::string_view(&*(tokens[number - 1].whole_line.begin() + tokens[number - 1].bound_left), in Make() 42 return token.size(); in Len() 47 if (token[0] == c) { in ValidateRegisterName() 48 std::string_view p = token; in ValidateRegisterName() 80 if (token[0] == 'a') { in ValidateParameterName() 81 std::string_view p = token; in ValidateParameterName() 95 return token; in GiveToken() 141 token = std::string_view(&*(tokens[number - 1].whole_line.begin() + tokens[number - 1].bound_left), in operator ++() 157 token = std::string_view(&*(tokens[number - 1].whole_line.begin() + tokens[number - 1].bound_left), in operator ++() 178 token in operator --() [all...] |
H A D | assembly-context.h | 34 * Returns current value of a token 36 * sets the next token value 37 * returns current value of a token 39 * sets the next token value 40 * returns the next value of a token 44 std::string_view token; /* current token */ member 45 std::vector<panda::pandasm::Token> tokens; /* token list */ 48 Token::Type id = Token::Type::ID_BAD; /* current token type */ 49 Token::Type signop = Token::Type::ID_BAD; /* current token operan [all...] |
/arkcompiler/runtime_core/static_core/assembler/ |
H A D | context.cpp | 34 token = std::string_view(&*(tokens[number - 1].wholeLine.begin() + tokens[number - 1].boundLeft), in Make() 42 return token.size(); in Len() 47 std::string_view p = token; in ValidateFoundedRegisterName() 72 if (token[0] == c) { in ValidateRegisterName() 85 if (token[0] == 'a') { in ValidateParameterName() 86 std::string_view p = token; in ValidateParameterName() 100 return token; in GiveToken() 146 token = std::string_view(&*(tokens[number - 1].wholeLine.begin() + tokens[number - 1].boundLeft), in operator ++() 162 token = std::string_view(&*(tokens[number - 1].wholeLine.begin() + tokens[number - 1].boundLeft), in operator ++() 183 token in operator --() [all...] |
H A D | assembly-context.h | 35 * Returns current value of a token 37 * sets the next token value 38 * returns current value of a token 40 * sets the next token value 41 * returns the next value of a token 45 std::string_view token; /* current token */ member 46 std::vector<ark::pandasm::Token> tokens; /* token list */ 49 Token::Type id = Token::Type::ID_BAD; /* current token type */ 50 Token::Type signop = Token::Type::ID_BAD; /* current token operan [all...] |
/arkcompiler/ets_frontend/ets2panda/ir/ |
H A D | srcDump.h | 20 #include <lexer/token/sourceLocation.h> 21 #include <lexer/token/tokenType.h>
|
H A D | astDump.h | 20 #include "lexer/token/sourceLocation.h" 21 #include "lexer/token/tokenType.h" 22 #include "lexer/token/number.h" 95 Property(const char *key, lexer::TokenType token) : key_(key), value_(token) {} in Property() argument 235 void SerializeToken(lexer::TokenType token);
|
/arkcompiler/toolchain/build/toolchain/ |
H A D | clang_static_analyzer_wrapper.py | 40 # Prepends every element of a list |args| with |token|. 43 def interleave_args(args, token): 44 return list(sum(zip([token] * len(args), args), ()))
|
/arkcompiler/runtime_core/compiler/optimizer/templates/ |
H A D | instructions.rb | 94 @tokens.each do |token| 95 if IR::types.include?(token) 96 @types << token 99 resolved = TYPE_ALIASES[token] 104 @aux_types << token 129 raise "No cpp token for type #{t}" unless CPP_IR_TYPES.include?(t.to_s)
|
/arkcompiler/runtime_core/static_core/compiler/optimizer/templates/ |
H A D | instructions.rb | 94 @tokens.each do |token| 95 if IR::types.include?(token) 96 @types << token 99 resolved = TYPE_ALIASES[token] 104 @aux_types << token 129 raise "No cpp token for type #{t}" unless CPP_IR_TYPES.include?(t.to_s)
|
/arkcompiler/ets_frontend/es2panda/ir/ |
H A D | astDump.h | 20 #include <lexer/token/sourceLocation.h> 21 #include <lexer/token/tokenType.h> 80 Property(const char *key, lexer::TokenType token) : key_(key), value_(token) {} in Property() argument 193 void SerializeToken(lexer::TokenType token);
|
H A D | validationInfo.h | 19 #include <lexer/token/sourceLocation.h>
|
/arkcompiler/ets_runtime/ecmascript/ohos/ |
H A D | aot_runtime_info.h | 293 char *token = strtok_r(buffer, OhosConstants::SPLIT_STR, &saveptr); in GetInfoFromBuffer() local 296 token = strtok_r(NULL, OhosConstants::SPLIT_STR, &saveptr); in GetInfoFromBuffer() 298 return token; in GetInfoFromBuffer() 374 char *token; in GetRuntimeInfoByPath() local 378 token = strtok_r(buffer, "\n", &saveptr); in GetRuntimeInfoByPath() 379 while (token != NULL) { in GetRuntimeInfoByPath() 380 if (strcmp(GetInfoFromBuffer(token, RUNTIME_INDEX_BUILDID), soBuildId) == 0 && in GetRuntimeInfoByPath() 382 strcpy_s(lines[lineCount], BUFFER_SIZE, token) == 0) { in GetRuntimeInfoByPath() 385 token = strtok_r(NULL, "\n", &saveptr); in GetRuntimeInfoByPath()
|
/arkcompiler/ets_frontend/es2panda/lexer/ |
H A D | keywordsUtil.h | 21 #include <lexer/token/letters.h> 22 #include <lexer/token/tokenType.h>
|
H A D | lexer.h | 20 #include <lexer/token/letters.h> 21 #include <lexer/token/token.h> 46 Token token {};
|
H A D | keywordString.h | 19 #include <lexer/token/tokenType.h>
|
/arkcompiler/runtime_core/static_core/scripts/intrusive-testing/ |
H A D | intrusive_instrumentator.py | 628 for token in tu.get_tokens(extent=tu.cursor.extent): 629 if(token.kind != TokenKind.COMMENT): 631 match = re.match(r'\s*/\*\s*@sync\s+([0-9]+).*', token.spelling) 639 self.__clear_candidates_by_token(candidates, token) 642 self.__sync_point_to_line[sync_point] = token.extent.end.line + 1 660 def __clear_candidates_by_token(self, candidates, token): 665 need_continue = self.__check_for_method(candidates, token, i) 668 if(not(self.__is_kind_of_libclang_class(token.cursor.kind)) \ 669 or (token.cursor.spelling != candidates[i].cl)): 676 def __check_for_method(self, candidates, token, [all...] |
/arkcompiler/runtime_core/libpandabase/os/ |
H A D | stacktrace.cpp | 64 std::string token; in Next() local 66 token = str_.substr(pos_); in Next() 69 token = str_.substr(pos_, pos - pos_); in Next() 72 return token; in Next()
|
/arkcompiler/runtime_core/static_core/libpandabase/os/ |
H A D | stacktrace.cpp | 64 std::string token; in Next() local 66 token = str_.substr(pos_); in Next() 69 token = str_.substr(pos_, pos - pos_); in Next() 72 return token; in Next()
|
/arkcompiler/ets_frontend/es2panda/util/ |
H A D | symbolTable.cpp | 157 auto token = input.substr(lastPos, curPos - lastPos); in GetStringItems() local 158 if (!token.empty()) { in GetStringItems() 159 items.push_back(token); in GetStringItems()
|
/arkcompiler/ets_frontend/es2panda/lexer/token/ |
H A D | token.h | 19 #include <lexer/token/sourceLocation.h> 20 #include <lexer/token/tokenType.h>
|
/arkcompiler/ets_frontend/es2panda/typescript/types/ |
H A D | typeRelation.h | 19 #include <lexer/token/sourceLocation.h> 20 #include <lexer/token/tokenType.h>
|
/arkcompiler/ets_frontend/ets2panda/lexer/ |
H A D | lexer.h | 21 #include "lexer/token/letters.h" 22 #include "lexer/token/token.h" 121 auto token = GetToken(); in TryEatTokenType() local 122 if (token.Type() == type) { in TryEatTokenType() 131 auto token = GetToken(); in TryEatTokenKeyword() local 132 if (token.KeywordType() == type) { in TryEatTokenKeyword() 134 return token; in TryEatTokenKeyword()
|