| /arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/ |
| D | encode_visitor.h | 68 static void SortSpillFillData(ArenaVector<SpillFillData> *spillFills); 75 static void VisitMov(GraphVisitor *visitor, Inst *inst); 76 static void VisitNeg(GraphVisitor *visitor, Inst *inst); 77 static void VisitAbs(GraphVisitor *visitor, Inst *inst); 78 static void VisitNot(GraphVisitor *visitor, Inst *inst); 79 static void VisitSqrt(GraphVisitor *visitor, Inst *inst); 82 static void VisitAdd(GraphVisitor *visitor, Inst *inst); 83 static void VisitSub(GraphVisitor *visitor, Inst *inst); 84 static void VisitMul(GraphVisitor *visitor, Inst *inst); 85 static void VisitShl(GraphVisitor *visitor, Inst *inst); [all …]
|
| D | encode.h | 90 virtual void CreateLabels(LabelId size) = 0; 103 virtual void BindLabel(LabelId) = 0; 126 void SetIsJsNumberCast(bool v); 130 virtual void *BufferData() const; 135 virtual void SetMaxAllocatedBytes([[maybe_unused]] size_t size) {}; in SetMaxAllocatedBytes() 141 virtual void Encode##opc(Reg, Reg) \ 149 virtual void Encode##opc(Reg, Reg, Reg) \ 153 virtual void Encode##opc(Reg, Reg, Imm) \ 161 virtual void Encode##opc(Reg, Reg, Shift) \ 177 virtual void EncodeNop(); [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/trampoline/aarch64/ |
| D | common_call.h | 64 …static void PushUndefinedWithArgc(ExtendedAssembler *assembler, Register glue, Register argc, Regi… 66 …static void PushArgsWithArgv(ExtendedAssembler *assembler, Register glue, Register argc, Register … 68 …static void PushArgsWithArgvInPair(ExtendedAssembler *assembler, Register argc, Register argv, Reg… 70 static void PushAsmInterpBridgeFrame(ExtendedAssembler *assembler); 71 static void PopAsmInterpBridgeFrame(ExtendedAssembler *assembler); 72 …static void StackOverflowCheck(ExtendedAssembler *assembler, Register glue, Register currentSlot, … 74 static void PushLeaveFrame(ExtendedAssembler *assembler, Register glue); 75 static void PopLeaveFrame(ExtendedAssembler *assembler); 80 static void CallRuntime(ExtendedAssembler *assembler); 82 static void JSFunctionEntry(ExtendedAssembler *assembler); [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/ |
| D | slowpath_lowering.h | 126 void CallRuntimeLowering(); 154 …void ReplaceHirWithPendingException(GateRef hirGate, GateRef state, GateRef depend, GateRef value); 155 void ReplaceHirWithValue(GateRef hirGate, GateRef value, bool noThrow = false); 156 void ReplaceHirToThrowCall(GateRef hirGate, GateRef callGate); 157 void LowerExceptionHandler(GateRef hirGate); 158 void Lower(GateRef gate); 159 void LowerAdd2(GateRef gate); 160 void LowerCreateIterResultObj(GateRef gate); 161 void SaveFrameToContext(GateRef gate); 162 void LowerSuspendGenerator(GateRef gate); [all …]
|
| D | mcr_lowering.h | 39 void DeleteStateSplit(GateRef gate); 40 void LowerArrayGuardianCheck(GateRef gate); 41 void LowerHeapObjectCheck(GateRef gate); 42 void LowerTaggedIsHeapObject(GateRef gate); 43 void LowerIsMarkerCellValid(GateRef gate); 44 void LowerIsSpecificObjectType(GateRef gate); 45 void LowerHClassStableArrayCheck(GateRef gate); 46 void LowerElementskindCheck(GateRef gate); 47 void LowerGetConstPool(GateRef gate); 48 void LowerGetUnsharedConstpool(GateRef gate); [all …]
|
| D | typed_native_inline_lowering.h | 54 void LowerGeneralUnaryMath(GateRef gate, RuntimeStubCSigns::ID stubId); 55 void LowerMathAtan2(GateRef gate); 56 void LowerTrunc(GateRef gate); 58 void LowerMathCeilFloor(GateRef gate); 60 void LowerMathCeilFloorWithIntrinsic(GateRef gate); 62 void LowerMathCeilFloorWithRuntimeCall(GateRef gate); 63 void LowerMathPow(GateRef gate); 64 void LowerMathExp(GateRef gate); 65 void LowerMathSignInt(GateRef gate); 66 void LowerMathSignTagged(GateRef gate); [all …]
|
| D | number_speculative_lowering.h | 33 void Run(); 36 void VisitGate(GateRef gate); 37 void VisitTypedBinaryOp(GateRef gate); 38 void VisitNumberBinaryOp(GateRef gate); 39 void VisitStringBinaryOp(GateRef gate); 40 void VisitTypedUnaryOp(GateRef gate); 41 void VisitNumberNot(GateRef gate); 42 void VisitTypedConditionJump(GateRef gate); 43 void VisitConstant(GateRef gate); 44 void VisitPhi(GateRef gate); [all …]
|
| D | typed_hcr_lowering.h | 124 void Lower(GateRef gate); 125 void LowerType(GateRef gate); 126 void LowerPrimitiveTypeCheck(GateRef gate); 127 void LowerTypeConvert(GateRef gate); 128 void LowerPrimitiveToNumber(GateRef dst, GateRef src, ParamType srcType); 129 void LowerIntCheck(GateRef gate); 130 void LowerDoubleCheck(GateRef gate); 131 void LowerNumberCheck(GateRef gate); 132 void LowerBooleanCheck(GateRef gate); 133 void LowerIndexCheck(GateRef gate); [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/x86_64/assembler/ |
| D | assembler.h | 64 virtual void CloseOutput() in CloseOutput() 72 void Emit(int64 val) in Emit() 77 void Emit(const std::string &str) in Emit() 82 void Emit(const void *data, uint64 sizeInByte) in Emit() 87 void StoreNameIntoSymMap(int64 symIdx, const std::string &name, bool isLocal = false) 90 (void)localSymMap.emplace(symIdx, name); 92 (void)globalSymMap.emplace(symIdx, name); 105 void ClearLocalSymMap() in ClearLocalSymMap() 110 virtual void InitialFileInfo(const std::string &inputFileName) = 0; 111 … virtual void EmitVariable(int64 symIdx, uint64 sizeInByte, uint8 alignInByte, SymbolAttr symAttr, [all …]
|
| D | asm_assembler.h | 48 void CloseOutput() override in CloseOutput() 58 void InitialFileInfo(const std::string &inputFileName) override; 59 void EmitFunctionHeader(int64 symIdx, SymbolAttr funcAttr, const std::string *secName) override; 60 …void EmitBBLabel(int64 labelSymIdx, bool genVerboseInfo, uint32 freq, const std::string *mirName) … 61 void EmitJmpTableElem(int64 jmpLabelIdx, const std::vector<int64> &labelIdxs) override; 62 void EmitFunctionFoot(int64 symIdx, SymbolAttr funcAttr) override; 64 void EmitVariable(int64 symIdx, uint64 sizeInByte, uint8 alignInByte, SymbolAttr symAttr, 66 …void EmitDirectString(const std::string &ustr, bool belongsToDataSec, int64 strSymIdx, bool emitAs… 67 void EmitIndirectString(int64 strSymIdx, bool belongsToDataSec) override; 68 void EmitIntValue(int64 value, size_t valueSize, bool belongsToDataSec) override; [all …]
|
| D | elf_assembler.h | 43 void InitialFileInfo(const std::string &inputFileName) override; 44 void EmitVariable(int64 symIdx, uint64 sizeInByte, uint8 alignInByte, SymbolAttr symAttr, 46 void EmitFunctionHeader(int64 symIdx, SymbolAttr funcAttr, const std::string *secName) override; 47 …void EmitBBLabel(int64 labelSymIdx, bool genVerboseInfo, uint32 freq, const std::string *mirName) … 48 void EmitJmpTableElem(int64 jmpLabelIdx, const std::vector<int64> &labelSymIdxs) override; 49 void EmitFunctionFoot(int64 symIdx, SymbolAttr funcAttr) override; 50 …void EmitDirectString(const std::string &ustr, bool belongsToDataSec, int64 strSymIdx, bool emitAs… 51 void EmitIndirectString(int64 strSymIdx, bool belongsToDataSec) override; 52 void EmitIntValue(int64 value, size_t valueSize, bool belongsToDataSec) override; 53 void EmitFloatValue(int64 symIdx, int64 value, size_t valueSize) override; [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/trampoline/x64/ |
| D | common_call.h | 40 static void CopyArgumentWithArgV(ExtendedAssembler *assembler, Register argc, Register argV); 41 static void PushAsmInterpBridgeFrame(ExtendedAssembler *assembler); 42 static void PopAsmInterpBridgeFrame(ExtendedAssembler *assembler); 43 static void PushUndefinedWithArgc(ExtendedAssembler *assembler, Register argc); 44 static void GetArgvAtStack(ExtendedAssembler *assembler); 45 …static void PushArgsWithArgvAndCheckStack(ExtendedAssembler *assembler, Register glue, Register ar… 47 …static void StackOverflowCheck(ExtendedAssembler *assembler, Register glue, Register numArgs, Regi… 53 static void CallRuntime(ExtendedAssembler *assembler); 55 static void JSFunctionEntry(ExtendedAssembler *assembler); 57 static void OptimizedCallAndPushArgv(ExtendedAssembler *assembler); [all …]
|
| /arkcompiler/ets_frontend/ets2panda/compiler/core/ |
| D | pandagen.h | 61 void OptionalChainCheck(bool optional, VReg obj) const; 66 void FunctionInit(CatchTable *catchTable); 67 void FunctionEnter(); 68 void FunctionExit(); 70 void StoreAccumulator(const ir::AstNode *node, VReg vreg); 71 void LoadAccumulator(const ir::AstNode *node, VReg reg); 75 void MoveVreg(const ir::AstNode *node, VReg vd, VReg vs); 77 void LoadAccumulatorDouble(const ir::AstNode *node, double num); 78 void LoadAccumulatorInt(const ir::AstNode *node, size_t num); 80 void LoadConst(const ir::AstNode *node, Constant id); [all …]
|
| D | JSCompilerUnreachable.cpp | 21 void JSCompiler::Compile([[maybe_unused]] const ir::NamedType *node) const in Compile() 26 void JSCompiler::Compile([[maybe_unused]] const ir::PrefixAssertionExpression *expr) const in Compile() 31 void JSCompiler::Compile([[maybe_unused]] const ir::ClassProperty *st) const in Compile() 36 void JSCompiler::Compile([[maybe_unused]] const ir::ClassStaticBlock *st) const in Compile() 41 void JSCompiler::Compile([[maybe_unused]] const ir::Decorator *st) const in Compile() 46 void JSCompiler::Compile([[maybe_unused]] const ir::MethodDefinition *node) const in Compile() 51 void JSCompiler::Compile([[maybe_unused]] const ir::Property *expr) const in Compile() 56 void JSCompiler::Compile([[maybe_unused]] const ir::ScriptFunction *node) const in Compile() 61 void JSCompiler::Compile([[maybe_unused]] const ir::SpreadElement *expr) const in Compile() 66 void JSCompiler::Compile([[maybe_unused]] const ir::TemplateElement *expr) const in Compile() [all …]
|
| D | ETSCompilerUnrechable.cpp | 20 void ETSCompiler::Compile([[maybe_unused]] const ir::NamedType *node) const in Compile() 25 void ETSCompiler::Compile([[maybe_unused]] const ir::PrefixAssertionExpression *expr) const in Compile() 30 void ETSCompiler::Compile([[maybe_unused]] const ir::ClassDefinition *node) const in Compile() 35 void ETSCompiler::Compile([[maybe_unused]] const ir::ClassStaticBlock *st) const in Compile() 40 void ETSCompiler::Compile([[maybe_unused]] const ir::Decorator *st) const in Compile() 45 void ETSCompiler::Compile([[maybe_unused]] const ir::MetaProperty *expr) const in Compile() 50 void ETSCompiler::Compile([[maybe_unused]] const ir::MethodDefinition *node) const in Compile() 55 void ETSCompiler::Compile([[maybe_unused]] const ir::Property *expr) const in Compile() 60 void ETSCompiler::Compile([[maybe_unused]] const ir::ScriptFunction *node) const in Compile() 65 void ETSCompiler::Compile([[maybe_unused]] const ir::SpreadElement *expr) const in Compile() [all …]
|
| /arkcompiler/ets_frontend/es2panda/compiler/core/ |
| D | pandagen.h | 145 void SetInsns(ArenaList<IRNode *> &newInsns) in SetInsns() 203 void SetSourceLocationFlag(lexer::SourceLocationFlag flag) in SetSourceLocationFlag() 208 void AdjustSpillInsns() in AdjustSpillInsns() 237 void SetFunctionKind(); 238 void SetInSendable(); 254 void FunctionInit(CatchTable* catchTable); 255 void FunctionEnter(); 256 void FunctionExit(); 262 void InitializeLexEnv(const ir::AstNode *node); 263 void CopyFunctionArguments(const ir::AstNode *node); [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/assembler/x64/ |
| D | assembler_x64.h | 68 void BuildSIB(Scale scale, Register index, Register base); 69 void BuildModerm(int32_t mode, Register rm); 70 void BuildDisp8(int32_t disp); 71 void BuildDisp32(int32_t disp); 89 void Pushq(Register x); 90 void Pushq(Immediate x); 91 void Push(Register x); 92 void Popq(Register x); 93 void Pop(Register x); 94 void Movq(Register src, Register dst); [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/tooling/inspector/ |
| D | inspector_server.h | 44 using FrameInfoHandler = std::function<void(FrameId, std::string_view, std::string_view, size_t, 53 void Kill(); 54 void Run(); 56 void OnValidate(std::function<void()> &&handler); 57 void OnOpen(std::function<void()> &&handler); 58 void OnFail(std::function<void()> &&handler); 60 void CallDebuggerPaused(PtThread thread, const std::vector<BreakpointId> &hitBreakpoints, 62 const std::function<void(const FrameInfoHandler &)> &enumerateFrames); 63 void CallDebuggerResumed(PtThread thread); 64 void CallDebuggerScriptParsed(PtThread thread, ScriptId scriptId, std::string_view sourceFile); [all …]
|
| /arkcompiler/runtime_core/static_core/runtime/include/ |
| D | exceptions.h | 26 void ThrowException(const LanguageContext &ctx, ManagedThread *thread, const uint8_t *mutf8Name, 29 PANDA_PUBLIC_API void ThrowNullPointerException(); 34 PANDA_PUBLIC_API void ThrowNullPointerException(const LanguageContext &ctx, ManagedThread *thread); 36 void ThrowStackOverflowException(ManagedThread *thread); 38 void ThrowArrayIndexOutOfBoundsException(coretypes::ArraySsizeT idx, coretypes::ArraySizeT length); 39 void ThrowArrayIndexOutOfBoundsException(coretypes::ArraySsizeT idx, coretypes::ArraySizeT length, 42 void ThrowIndexOutOfBoundsException(coretypes::ArraySsizeT idx, coretypes::ArraySsizeT length); 44 void ThrowIllegalStateException(const PandaString &msg); 46 void ThrowStringIndexOutOfBoundsException(coretypes::ArraySsizeT idx, coretypes::ArraySizeT length); 48 void ThrowNegativeArraySizeException(coretypes::ArraySsizeT size); [all …]
|
| /arkcompiler/ets_frontend/ets2panda/compiler/lowering/scopesInit/ |
| D | scopesInitPhase.h | 52 void SetProgram(parser::Program *program) noexcept; 54 void Prepare(PhaseContext *ctx, parser::Program *program); 59 void Finalize(); 66 void AnalyzeExports(); 70 void CallNode(T *node) in CallNode() 78 void CallNode(const ArenaVector<T *> &nodes) in CallNode() 85 void CallFuncParams(const ArenaVector<ir::Expression *> ¶ms); 86 void IterateNoTParams(ir::ClassDefinition *classDef); 89 void ThrowSyntaxError(std::string_view errorMessage, const lexer::SourcePosition &pos) const; 91 void VisitFunctionExpression(ir::FunctionExpression *funcExpr) override; [all …]
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/target/aarch64/ |
| D | target.h | 126 void SetCalleeSaved(const ArenaVector<Reg> ®s) override; 128 void SetUsedRegs(const ArenaVector<Reg> ®s) override; 180 void CreateLabels(LabelId size) override; 181 void BindLabel(LabelId id) override; 201 void LoadPcRelative(Reg reg, intptr_t offset, Reg regAddr = INVALID_REGISTER); 202 void SetMaxAllocatedBytes(size_t size) override; 210 #define UNARY_OPERATION(opc) void Encode##opc(Reg dst, Reg src0) override; 213 void Encode##opc(Reg dst, Reg src0, Reg src1) override; \ 214 void Encode##opc(Reg dst, Reg src0, Imm src1) override; 224 void EncodeNop() override; [all …]
|
| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| D | builtins.h | 48 …void Initialize(const JSHandle<GlobalEnv> &env, JSThread *thread, bool lazyInit = false, bool isRe… 49 void InitializeForSnapshot(JSThread *thread); 51 void InitializeSharedBitVector(const JSHandle<GlobalEnv> &env, 74 void InitializePropertyDetector(const JSHandle<GlobalEnv> &env, bool lazyInit) const; 76 void SetLazyAccessor(const JSHandle<JSObject> &object, const JSHandle<JSTaggedValue> &key, 79 void InitializeCtor(const JSHandle<GlobalEnv> &env, const JSHandle<JSObject> &prototype, 82 …void InitializeGlobalObject(const JSHandle<GlobalEnv> &env, const JSHandle<JSObject> &globalObject… 84 …void InitializeFunction(const JSHandle<GlobalEnv> &env, JSHandle<JSTaggedValue> &objFuncPrototypeV… 86 …void InitializeFunctionPrototype(const JSHandle<GlobalEnv> &env, JSHandle<JSFunction> &funcFuncPro… 94 … void InitializeObject(const JSHandle<GlobalEnv> &env, const JSHandle<JSObject> &objFuncPrototype, [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/ |
| D | bin_mpl_export.h | 104 void Export(const std::string &fname, std::unordered_set<std::string> *dumpFuncSet); 105 void WriteNum(int64 x); 106 void Write(uint8 b); 107 void OutputType(TyIdx tyIdx); 108 void OutputConst(MIRConst *constVal); 109 void OutputConstBase(const MIRConst &constVal); 110 void OutputTypeBase(const MIRType &type); 111 void OutputTypePairs(const MIRInstantVectorType &type); 112 void OutputStr(const GStrIdx &gstr); 113 void OutputUsrStr(UStrIdx ustr); [all …]
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/target/amd64/ |
| D | target.h | 35 void handleError([[maybe_unused]] asmjit::Error err, [[maybe_unused]] const char *message, 77 void Add(size_t i) in Add() 86 void Remove(size_t i) in Remove() 164 void SetCalleeSaved(const ArenaVector<Reg> ®s) override; 166 void SetUsedRegs(const ArenaVector<Reg> ®s) override; 191 void AcquireScratchRegister(Reg reg); 192 void ReleaseScratchRegister(Reg reg); 226 void CreateLabels(LabelId max) override; 227 void BindLabel(LabelId id) override; 250 #define UNARY_OPERATION(opc) void Encode##opc(Reg dst, Reg src0) override; [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/ |
| D | emit.h | 76 void SetNextFieldOffset(uint16 offset) in SetNextFieldOffset() 81 void IncreaseNextFieldOffset(uint16 value) in IncreaseNextFieldOffset() 91 void SetCombineBitFieldWidth(uint8 offset) in SetCombineBitFieldWidth() 96 void IncreaseCombineBitFieldWidth(uint8 value) in IncreaseCombineBitFieldWidth() 101 void DecreaseCombineBitFieldWidth(uint8 value) in DecreaseCombineBitFieldWidth() 111 void SetCombineBitFieldValue(uint64 value) in SetCombineBitFieldValue() 121 void SetTotalSize(uint64 value) in SetTotalSize() 126 void IncreaseTotalSize(uint64 value) in IncreaseTotalSize() 162 virtual void Finish() {} in Finish() 164 virtual void CloseOutput() in CloseOutput() [all …]
|