Lines Matching full:const
34 GateRef State() const in State()
39 GateRef Depend() const in Depend()
69 GateRef GetGate() const in GetGate()
74 size_t GetIndex() const in GetIndex()
95 ConstUseIterator(const Circuit* circuit, const Out* out) : circuit_(circuit), out_(out) in ConstUseIterator()
99 GateRef operator*() const
107 const ConstUseIterator operator++()
117 const ConstUseIterator operator++(int)
124 size_t GetIndex() const in GetIndex()
130 OpCode GetOpCode() const in GetOpCode()
136 friend bool operator == (const ConstUseIterator& a, const ConstUseIterator& b)
140 friend bool operator != (const ConstUseIterator& a, const ConstUseIterator& b)
146 const Circuit* circuit_;
147 const Out* out_;
156 GateRef operator*() const
164 const UseIterator& operator++()
179 size_t GetIndex() const in GetIndex()
192 OpCode GetOpCode() const in GetOpCode()
198 friend bool operator == (const UseIterator& a, const UseIterator& b)
202 friend bool operator != (const UseIterator& a, const UseIterator& b)
213 ConstInsIterator(const Circuit* circuit, const In* in) : circuit_(circuit), in_(in) in ConstInsIterator()
217 GateRef operator*() const
222 const ConstInsIterator& operator++()
234 OpCode GetOpCode() const in GetOpCode()
240 friend bool operator== (const ConstInsIterator& a, const ConstInsIterator& b)
244 friend bool operator!= (const ConstInsIterator& a, const ConstInsIterator& b)
250 const Circuit* circuit_;
251 const In* in_;
255 InsIterator(const Circuit* circuit, In* in) : circuit_(circuit), in_(in) in InsIterator()
264 const InsIterator& operator++()
276 OpCode GetOpCode() const in GetOpCode()
282 friend bool operator== (const InsIterator& a, const InsIterator& b)
286 friend bool operator!= (const InsIterator& a, const InsIterator& b)
292 const Circuit* circuit_;
324 const GateRef gate;
348 ConstInWrapper ConstIns(GateRef gate) const in ConstIns()
353 InWrapper Ins(GateRef gate) const in Ins()
358 ConstUseWrapper ConstUses(GateRef gate) const in ConstUses()
372 Circuit *GetCircuit() const in GetCircuit()
378 void GetAllGates(std::vector<GateRef>& gates) const;
379 size_t GetNumIns(GateRef gate) const;
380 OpCode GetOpCode(GateRef gate) const;
381 bool IsGCRelated(GateRef gate) const;
382 uint64_t TryGetValue(GateRef gate) const;
383 ICmpCondition GetICmpCondition(GateRef gate) const;
384 FCmpCondition GetFCmpCondition(GateRef gate) const;
385 size_t GetOffset(GateRef gate) const;
386 size_t GetInitOffset(GateRef gate) const;
387 uint32_t GetTrueWeight(GateRef gate) const;
388 uint32_t GetFalseWeight(GateRef gate) const;
389 bool HasBranchWeight(GateRef gate) const;
390 MemoryAttribute GetMemoryAttribute(GateRef gate) const;
391 size_t GetIndex(GateRef gate) const;
392 size_t GetJSType(GateRef gate) const;
393 uint32_t GetArraySize(GateRef gate) const;
395 uint32_t GetStringStatus(GateRef gate) const;
397 ElementsKind GetElementsKind(GateRef gate) const;
399 RegionSpaceFlag GetRegionSpaceFlag(GateRef gate) const;
400 size_t GetVirtualRegisterIndex(GateRef gate) const;
401 bool TypedOpIsTypedArray(GateRef gate, TypedOpKind kind) const;
402 TypedLoadOp GetTypedLoadOp(GateRef gate) const;
403 TypedStoreOp GetTypedStoreOp(GateRef gate) const;
404 MemoryType GetMemoryType(GateRef gate) const;
405 uint32_t GetHClassIndex(GateRef gate) const;
406 TypedBinOp GetTypedBinaryOp(GateRef gate) const;
407 TypedCallTargetCheckOp GetTypedCallTargetCheckOp(GateRef gate) const;
408 bool HasNumberType(GateRef gate) const;
409 bool HasStringType(GateRef gate, bool onlyInternString = false) const;
410 bool IsInternStringType(GateRef gate) const;
411 GlobalTSTypeRef GetFuncGT(GateRef gate) const;
412 GateType GetParamGateType(GateRef gate) const;
413 ParamType GetParamType(GateRef gate) const;
414 TypedUnaryAccessor GetTypedUnAccessor(GateRef gate) const;
415 TypedBinaryAccessor GetTypedBinaryAccessor(GateRef gate) const;
416 TypedJumpAccessor GetTypedJumpAccessor(GateRef gate) const;
417 ArrayMetaDataAccessor GetArrayMetaDataAccessor(GateRef gate) const;
418 CreateArgumentsAccessor GetCreateArgumentsAccessor(GateRef gate) const;
419 ObjectTypeAccessor GetObjectTypeAccessor(GateRef gate) const;
420 BuiltinPrototypeHClassAccessor GetBuiltinHClassAccessor(GateRef gate) const;
421 TypedArrayMetaDataAccessor GetTypedArrayMetaDataAccessor(GateRef gate) const;
422 LoadElementAccessor GetLoadElementAccessor(GateRef gate) const;
423 StoreElementAccessor GetStoreElementAccessor(GateRef gate) const;
424 bool NeedPushArgv(GateRef gate) const;
425 uint64_t GetConstantValue(GateRef gate) const;
426 const ChunkVector<char>& GetConstantString(GateRef gate) const;
427 bool IsVtable(GateRef gate) const;
428 bool GetNoGCFlag(GateRef gate) const;
429 bool TypedCallIsNoGC(GateRef gate) const;
430 bool IsNoGC(GateRef gate) const;
431 uint32_t TryGetPcOffset(GateRef gate) const;
432 uint32_t TryGetBcIndex(GateRef gate) const;
433 uint32_t TryGetMethodOffset(GateRef gate) const;
434 GateRef GetFrameArgs(GateRef gate) const;
436 PGOTypeRef TryGetPGOType(GateRef gate) const;
438 uint32_t TryGetArrayElementsLength(GateRef gate) const;
440 RegionSpaceFlag TryGetRegionSpaceFlag(GateRef gate) const;
442 ElementsKind TryGetElementsKind(GateRef gate) const;
443 ElementsKind TryGetArrayElementsKind(GateRef gate) const;
444 ElementsKind TryGetArrayElementsKindAfterTransition(GateRef gate) const;
447 void TrySetOnHeapMode(GateRef gate, OnHeapMode onHeapMode) const;
448 OnHeapMode TryGetOnHeapMode(GateRef gate) const;
449 EcmaOpcode GetByteCodeOpcode(GateRef gate) const;
450 void Print(GateRef gate) const DUMP_API_ATTR;
451 std::string ToString(GateRef gate) const DUMP_API_ATTR;
453 void PrintById(size_t id) const DUMP_API_ATTR ;
455 void PrintWithBytecode(GateRef gate) const DUMP_API_ATTR;
456 void ShortPrint(GateRef gate) const;
457 GateId GetId(GateRef gate) const;
458 GateRef GetValueIn(GateRef gate, size_t idx = 0) const;
459 size_t GetNumValueIn(GateRef gate) const;
460 std::vector<GateRef> GetValueIns(GateRef gate) const;
461 GateRef GetIn(GateRef gate, size_t idx) const;
462 GateRef GetState(GateRef gate, size_t idx = 0) const;
463 GateRef GetDep(GateRef gate, size_t idx = 0) const;
464 size_t GetImmediateId(GateRef gate) const;
466 UseIterator ReplaceIn(const UseIterator &useIt, GateRef replaceGate);
468 GateType GetGateType(GateRef gate) const;
469 bool IsConvertSupport(GateRef gate) const;
470 ValueType GetSrcType(GateRef gate) const;
471 ValueType GetDstType(GateRef gate) const;
474 UseIterator DeleteGate(const UseIterator &useIt);
475 void DecreaseIn(const UseIterator &useIt);
478 size_t GetStateCount(GateRef gate) const;
479 size_t GetDependCount(GateRef gate) const;
480 size_t GetInValueCount(GateRef gate) const;
481 size_t GetInValueStarts(GateRef gate) const;
493 MachineType GetMachineType(GateRef gate) const;
495 GateRef GetConstantGate(MachineType bitValue, BitField bitfield, GateType type) const;
496 GateRef GetInitialEnvGate(GateRef depend, GateRef jsFunc) const;
497 double GetFloat64FromConstant(GateRef gate) const;
498 int GetInt32FromConstant(GateRef gate) const;
499 bool IsInGateNull(GateRef gate, size_t idx) const;
500 bool IsSelector(GateRef g) const;
501 bool IsSimpleState(GateRef g) const;
502 bool IsValueSelector(GateRef g) const;
503 bool IsFrameValues(GateRef g) const;
504 bool IsControlCase(GateRef gate) const;
505 bool IsLoopExit(GateRef gate) const;
506 bool IsLoopExitRelated(GateRef gate) const;
507 bool IsLoopHead(GateRef gate) const;
508 bool IsLoopBack(GateRef gate) const;
509 bool IsState(GateRef gate) const;
510 bool IsConstant(GateRef gate) const;
511 bool IsDependSelector(GateRef gate) const;
512 bool IsConstantValue(GateRef gate, uint64_t value) const;
513 bool IsConstantTaggedValue(GateRef gate, uint64_t value) const;
514 bool IsConstantUndefined(GateRef gate) const;
515 bool IsUndefinedOrNullOrHole(GateRef gate) const;
516 bool IsConstantNumber(GateRef gate) const;
517 bool IsTypedOperator(GateRef gate) const;
518 bool IsNotWrite(GateRef gate) const;
519 bool IsDead(GateRef gate) const;
520 bool IsCheckWithOneIn(GateRef gate) const;
521 bool IsCheckWithTwoIns(GateRef gate) const;
522 bool IsSchedulable(GateRef gate) const;
523 bool IsVirtualState(GateRef gate) const;
524 bool IsGeneralState(GateRef gate) const;
525 MarkCode GetMark(GateRef gate) const;
527 bool IsFinished(GateRef gate) const;
528 bool IsVisited(GateRef gate) const;
529 bool IsPrevisit(GateRef gate) const;
530 bool IsNotMarked(GateRef gate) const;
534 bool IsStateIn(const UseIterator &useIt) const;
535 bool IsDependIn(const UseIterator &useIt) const;
536 bool IsValueIn(const UseIterator &useIt) const;
537 bool IsFrameStateIn(const UseIterator &useIt) const;
538 bool IsStateIn(GateRef gate, size_t index) const;
539 bool IsDependIn(GateRef gate, size_t index) const;
540 bool IsValueIn(GateRef gate, size_t index) const;
545 bool IsFrameStateIn(GateRef gate, size_t index) const;
550 uint32_t GetFirstValue(GateRef gate) const;
551 uint32_t GetSecondValue(GateRef gate) const;
552 GateRef GetGlueFromArgList() const;
553 void GetArgsOuts(std::vector<GateRef>& outs) const;
554 void GetReturnOuts(std::vector<GateRef>& outs) const;
555 bool IsFixed(GateRef g) const;
556 bool IsProlog(GateRef g) const;
557 bool IsCFGMerge(GateRef g) const;
558 bool MetaDataEqu(GateRef g1, GateRef g2) const;
559 bool MetaDataValueEqu(GateRef g1, GateRef g2) const;
560 bool IsNop(GateRef g) const;
561 bool IsRoot(GateRef g) const;
562 bool HasOuts(GateRef gate) const;
565 bool HasIfExceptionUse(GateRef gate) const;
566 bool IsIn(GateRef g, GateRef in) const;
570 bool UseForTypeOpProfilerGate(GateRef gate) const;
572 bool IsIfOrSwitchRelated(GateRef gate) const;
573 uint32_t GetConstpoolId(GateRef gate) const;
576 GateRef GetCircuitRoot() const in GetCircuitRoot()
581 GateRef GetStateRoot() const in GetStateRoot()
586 GateRef GetDependRoot() const in GetDependRoot()
591 GateRef GetArgRoot() const in GetArgRoot()
596 GateRef GetReturnRoot() const in GetReturnRoot()
601 inline bool IsStateRoot(GateRef gate) const in IsStateRoot()
607 GateRef GetFrameState(GateRef gate) const;
609 bool HasFrameState(GateRef gate) const;
610 GateRef FindNearestFrameState(GateRef gate) const;
611 GateRef FindNearestStateSplit(GateRef gate) const;
612 void SetMetaData(GateRef gate, const GateMetaData* meta);
618 bool IsLoopBackUse(GateRef gate, const UseIterator &useIt) const;
619 void GetOutStates(GateRef gate, std::vector<GateRef>& outStates) const;
620 bool IsCreateArray(GateRef gate) const;
622 bool IsNoBarrier(GateRef gate) const;
623 void GetIns(GateRef gate, std::vector<GateRef>& ins) const;
625 bool TryGetMegaProp(GateRef gate) const;
631 const GateMetaData *GetMetaData(GateRef gate) const;
632 UseIterator ReplaceHirIfSuccess(const UseIterator &useIt, GateRef state);
633 UseIterator ReplaceHirIfException(const UseIterator &useIt, StateDepend replacement);
636 GateRef GetRoot(OpCode opcode) const;
637 ConstUseIterator ConstUseBegin(GateRef gate) const in ConstUseBegin()
646 ConstUseIterator ConstUseEnd() const in ConstUseEnd()
651 UseIterator UseBegin(GateRef gate) const in UseBegin()
660 UseIterator UseEnd() const in UseEnd()
665 ConstInsIterator ConstInBegin(GateRef gate) const in ConstInBegin()
667 …return ConstInsIterator(circuit_, &reinterpret_cast<const In *>(circuit_->LoadGatePtrConst(gate) +… in ConstInBegin()
670 ConstInsIterator ConstInEnd(GateRef gate) const in ConstInEnd()
674 … &reinterpret_cast<const In *>(circuit_->LoadGatePtrConst(gate) + 1)[endIndex]); in ConstInEnd()
688 void GetOuts(GateRef gate, std::vector<GateRef>& outs) const;
690 void GetInStates(GateRef gate, std::vector<GateRef>& ins) const;
705 ConstInsIterator(const Circuit* circuit, const In* in) : circuit_(circuit), in_(in) in ConstInsIterator()
709 GateRef operator*() const
714 const ConstInsIterator& operator++()
726 OpCode GetOpCode() const in GetOpCode()
732 friend bool operator== (const ConstInsIterator& a, const ConstInsIterator& b)
736 friend bool operator!= (const ConstInsIterator& a, const ConstInsIterator& b)
742 const Circuit* circuit_;
743 const In* in_;
747 const Circuit* circuit;
748 const GateRef gate;
759 ConstInWrapper Ins(GateRef gate) const in Ins()
764 explicit ConstGateAccessor(const Circuit *circuit) : circuit_(circuit) in ConstGateAccessor()
770 bool IsFixed(GateRef g) const;
771 bool IsProlog(GateRef g) const;
772 bool IsSchedulable(GateRef g) const;
775 ConstInsIterator ConstInBegin(GateRef gate) const in ConstInBegin()
777 …return ConstInsIterator(circuit_, &reinterpret_cast<const In *>(circuit_->LoadGatePtrConst(gate) +… in ConstInBegin()
780 ConstInsIterator ConstInEnd(GateRef gate) const in ConstInEnd()
784 … &reinterpret_cast<const In *>(circuit_->LoadGatePtrConst(gate) + 1)[endIndex]); in ConstInEnd()
786 const GateMetaData *GetMetaData(GateRef g) const;
788 const Circuit *circuit_;