• Home
  • Raw
  • Download

Lines Matching full:static

59      * in abc2program and modify the ohmurl for dynamic and static imports.
92 static constexpr std::string_view DLL = ".dll";
93 static constexpr std::string_view SO = ".so";
94 static constexpr std::string_view DYLIB = ".dylib";
124 static bool IsGlobalIdentifier(const util::StringView &str);
125 static bool ContainSpreadElement(const ArenaVector<ir::Expression *> &args);
126 static util::StringView LiteralToPropName(ArenaAllocator *allocator, const ir::Expression *lit);
129 static bool IsInteger(double number);
130 static bool IsIndex(double number);
131 static int64_t GetIndex(const util::StringView &str);
133 static bool FileExtensionIs(std::string_view filePath, std::string_view extension);
134 static bool EndsWith(std::string_view str, std::string_view suffix);
135 static std::string DoubleToString(double number);
136static int32_t GetIntegerSignificandBitCount(double number, int32_t &numberBitCount, char *signifi…
137static void GetScientificNotationForDouble(double number, uint32_t significandBitCount, int32_t &n…
139 static std::string ToString(double number);
140 static util::StringView ToStringView(ArenaAllocator *allocator, double number);
141 static util::StringView ToStringView(ArenaAllocator *allocator, int32_t number);
142 static util::StringView ToStringView(ArenaAllocator *allocator, uint32_t number);
144 static const ir::ScriptFunction *GetContainingConstructor(const ir::AstNode *node);
145 static const ir::ScriptFunction *GetContainingConstructor(const ir::ClassProperty *node);
146 static const ir::ScriptFunction *GetContainingFunction(const ir::AstNode *node);
147 static const ir::ClassDefinition *GetClassDefiniton(const ir::ScriptFunction *node);
148 static bool IsSpecialPropertyKey(const ir::Expression *expr);
149 static bool IsConstantPropertyKey(const ir::Expression *expr, bool isComputed);
150 static bool IsConstantExpr(const ir::Expression *expr);
151 static bool IsBindingPattern(const ir::AstNode *node);
152 static bool IsPattern(const ir::AstNode *node);
153 static std::vector<const ir::Identifier *> CollectBindingNames(const ir::AstNode *node);
154 static util::StringView FunctionName(ArenaAllocator *allocator, const ir::ScriptFunction *func);
155 static util::StringView GetName(ArenaAllocator *allocator, const ir::AstNode *node);
156static std::tuple<util::StringView, bool> ParamName(ArenaAllocator *allocator, const ir::AstNode *…
158 static bool IsChild(const ir::AstNode *parent, const ir::AstNode *child);
159 static bool IsChildScope(const binder::Scope *parent, const binder::Scope *child);
160static bool IsObjectPropertyValue(const ArenaVector<ir::Expression *> &properties, const ir::AstNo…
161 static SignedNumberLiteral GetSignedNumberLiteral(const ir::Expression *expr);
163static void SetConstantLocalExportSlots(const std::string &record, const std::unordered_set<uint32…
164 static void AnalysisProgram(panda::pandasm::Program *prog, const std::string &inputFile);
165 static void OptimizeProgram(panda::pandasm::Program *prog, const std::string &inputFile);
166 static bool CheckAopTransformPath(const std::string &libPath);
167 static AopTransformFuncDef LoadAopTransformLibFunc(const std::string &libPath,
169 static bool AopTransform(const std::string &inputFile, const std::string &libPath);
171static T BaseName(T const &path, T const &delims = std::string(panda::os::file::File::GetPathDelim…
172 static bool ReadFileToBuffer(const std::string &file, std::stringstream &ss);
173 static void ScanDirectives(ir::ScriptFunction *func, const DirectiveScanConfig &scanConfig);
174 static std::string GetHashString(const std::string &str);
175 static std::wstring Utf8ToUtf16(const std::string &utf8);
177 static T FileStream(const std::string &str, Args &&...args);
178static void ThrowError(ErrorType type, const parser::Program *program, const lexer::SourcePosition…
180 static bool IsUseShared(const ir::Statement *statement);
181 static const ir::ClassDefinition *GetContainingSendableClass(const ir::AstNode *node);
182 static bool IsSpecialScopeName(const util::StringView &str);
183static bool BelongingToRecords(const std::string &name, const std::unordered_set<std::string> &ret…
185 static bool IsInnerAnnotationRecordName(const std::string_view &name);
186 static size_t RemoveRecordSuffixAnnotationName(std::string &name);
187static void RemoveProgramsRedundantData(std::map<std::string, panda::es2panda::util::ProgramCache*…
189 static bool IsDefaultApiVersion(int apiVersion, std::string subApiVersion);
190 static bool IsSupportLazyImportVersion(int apiVersion, std::string subApiVersion);
191 static bool IsSupportLazyImportDefaultVersion(int apiVersion);
192 static bool IsSupportEtsImplementsVersion(int apiVersion);
193 static bool IsEnableExpectedPropertyCountApiVersion(int apiVersion);
194 static bool IsSupportAnnotationVersion(int apiVersion);
196 static const uint32_t MAX_DOUBLE_DIGIT = 310;
197 static const uint32_t MAX_DOUBLE_PRECISION_DIGIT = 17;
198 static const int32_t MAX_DECIMAL_EXPONENT = 21;
199 static const int32_t MIN_DECIMAL_EXPONENT = -6;
200 static const int32_t FAIL_SNPRINTF_S = -1;
201 static const uint32_t INVALID_INDEX = 4294967295L;
202 static const uint32_t MAX_INT32 = 2147483647;
203 static const uint32_t MAX_INT16 = std::numeric_limits<int16_t>::max();
204 static const uint32_t MAX_INT8 = std::numeric_limits<int8_t>::max();
205 static constexpr std::string_view USE_CONCURRENT = "use concurrent";
206 static constexpr std::string_view USE_SENDABLE = "use sendable";
207 static constexpr std::string_view USE_SHARED = "use shared";
208 static constexpr std::string_view IMPLEMENTS_STATIC = "implements static:";
209static constexpr std::string_view STRING_EMPTY = ""; // Default tag value, or tag of GlobalScope a…
210 static constexpr std::string_view CLASS_SCOPE_TAG = "~";
211 static constexpr std::string_view FUNCTION_TAG = "*";
212 static constexpr std::string_view METHOD_TAG = ">";
213 static constexpr std::string_view CTOR_TAG = "=";
214 static constexpr std::string_view NAMESPACE_TAG = "&";
215 static constexpr std::string_view ENUM_TAG = "%";
216 static constexpr std::string_view STATIC_METHOD_TAG = "<";
217 static constexpr std::string_view DUPLICATED_SEPERATOR = "^";
218 static constexpr std::string_view FUNC_NAME_SEPARATOR = "#";
219 static constexpr std::string_view INDEX_NAME_SPICIFIER = "@";
220 static constexpr std::string_view DOT = ".";
221 static constexpr std::string_view BACKSLASH = "\\";
222 static const uint64_t FNV_PRIME = 1099511628211U;
223 static const uint64_t FNV_OFFSET = 14695981039346656037U;
224 static const uint8_t SENDABLE_CLASS_MIN_SUPPORTED_API_VERSION = 11;
225 static const int32_t DEFAULT_TARGET_API_VERSION = 12;
226 static const int32_t ABC_TO_PROGRAM_MIN_SUPPORTED_API_VERSION = 12;
227 static constexpr std::array<uint8_t, panda_file::File::VERSION_SIZE>
229 static const int32_t SENDABLE_FUNCTION_MIN_SUPPORTED_API_VERSION = 12;
230 static const int32_t LAZY_IMPORT_MIN_SUPPORTED_API_VERSION = 12;
231 static const int32_t SENDABLE_LAZY_LOADING_MIN_SUPPORTED_API_VERSION = 12;
232 static const int8_t SUPER_CALL_OPT_MIN_SUPPORTED_API_VERSION = 18;
233 static const int8_t SENDABLE_CLASS_USING_LOCAL_MODULE_VAR_MIN_SUPPORTED_API_VERSION = 18;
234 static const int8_t ENABLE_EXPECTED_PROPERTY_COUNT_MIN_SUPPORTED_API_VERSION = 18;
235 static const int8_t ANNOTATION_SUPPORTED_API_VERSION = 20;
236 static constexpr std::string_view SUB_API_VERSION_1 = "beta1";
237 static constexpr std::string_view SUB_API_VERSION_2 = "beta2";
238 static constexpr std::string_view DEFAULT_SUB_API_VERSION = SUB_API_VERSION_1;
241 static bool SetFuncFlagsForDirectives(const ir::StringLiteral *strLit, ir::ScriptFunction *func,