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 bool IsFastCall(GateRef gate) const;
426 uint64_t GetConstantValue(GateRef gate) const;
427 const ChunkVector<char>& GetConstantString(GateRef gate) const;
428 bool IsVtable(GateRef gate) const;
429 bool GetNoGCFlag(GateRef gate) const;
430 bool TypedCallIsNoGC(GateRef gate) const;
431 bool IsNoGC(GateRef gate) const;
432 uint32_t TryGetPcOffset(GateRef gate) const;
433 uint32_t TryGetBcIndex(GateRef gate) const;
434 uint32_t TryGetMethodOffset(GateRef gate) const;
435 GateRef GetFrameArgs(GateRef gate) const;
437 PGOTypeRef TryGetPGOType(GateRef gate) const;
439 uint32_t TryGetArrayElementsLength(GateRef gate) const;
441 RegionSpaceFlag TryGetRegionSpaceFlag(GateRef gate) const;
443 ElementsKind TryGetElementsKind(GateRef gate) const;
444 ElementsKind TryGetArrayElementsKind(GateRef gate) const;
445 ElementsKind TryGetArrayElementsKindAfterTransition(GateRef gate) const;
448 void TrySetOnHeapMode(GateRef gate, OnHeapMode onHeapMode) const;
449 OnHeapMode TryGetOnHeapMode(GateRef gate) const;
450 EcmaOpcode GetByteCodeOpcode(GateRef gate) const;
451 void Print(GateRef gate) const DUMP_API_ATTR;
452 std::string ToString(GateRef gate) const DUMP_API_ATTR;
454 void PrintById(size_t id) const DUMP_API_ATTR ;
456 void PrintWithBytecode(GateRef gate) const DUMP_API_ATTR;
457 void ShortPrint(GateRef gate) const;
458 GateId GetId(GateRef gate) const;
459 GateRef GetValueIn(GateRef gate, size_t idx = 0) const;
460 size_t GetNumValueIn(GateRef gate) const;
461 std::vector<GateRef> GetValueIns(GateRef gate) const;
462 GateRef GetIn(GateRef gate, size_t idx) const;
463 GateRef GetState(GateRef gate, size_t idx = 0) const;
464 GateRef GetDep(GateRef gate, size_t idx = 0) const;
465 size_t GetImmediateId(GateRef gate) const;
467 UseIterator ReplaceIn(const UseIterator &useIt, GateRef replaceGate);
469 GateType GetGateType(GateRef gate) const;
470 bool IsConvertSupport(GateRef gate) const;
471 ValueType GetSrcType(GateRef gate) const;
472 ValueType GetDstType(GateRef gate) const;
475 UseIterator DeleteGate(const UseIterator &useIt);
476 void DecreaseIn(const UseIterator &useIt);
479 size_t GetStateCount(GateRef gate) const;
480 size_t GetDependCount(GateRef gate) const;
481 size_t GetInValueCount(GateRef gate) const;
482 size_t GetInValueStarts(GateRef gate) const;
494 MachineType GetMachineType(GateRef gate) const;
496 GateRef GetConstantGate(MachineType bitValue, BitField bitfield, GateType type) const;
497 GateRef GetInitialEnvGate(GateRef depend, GateRef jsFunc) const;
498 double GetFloat64FromConstant(GateRef gate) const;
499 int GetInt32FromConstant(GateRef gate) const;
500 bool IsBoolType(GateRef gate) const;
501 bool IsInGateNull(GateRef gate, size_t idx) const;
502 bool IsSelector(GateRef g) const;
503 bool IsSimpleState(GateRef g) const;
504 bool IsValueSelector(GateRef g) const;
505 bool IsFrameValues(GateRef g) const;
506 bool IsControlCase(GateRef gate) const;
507 bool IsLoopExit(GateRef gate) const;
508 bool IsLoopExitRelated(GateRef gate) const;
509 bool IsLoopHead(GateRef gate) const;
510 bool IsLoopBack(GateRef gate) const;
511 bool IsState(GateRef gate) const;
512 bool IsConstant(GateRef gate) const;
513 bool IsDependSelector(GateRef gate) const;
514 bool IsConstantValue(GateRef gate, uint64_t value) const;
515 bool IsConstantTaggedValue(GateRef gate, uint64_t value) const;
516 bool IsConstantUndefined(GateRef gate) const;
517 bool IsUndefinedOrNullOrHole(GateRef gate) const;
518 bool IsConstantNumber(GateRef gate) const;
519 bool IsTypedOperator(GateRef gate) const;
520 bool IsNotWrite(GateRef gate) const;
521 bool IsDead(GateRef gate) const;
522 bool IsCheckWithOneIn(GateRef gate) const;
523 bool IsCheckWithTwoIns(GateRef gate) const;
524 bool IsSchedulable(GateRef gate) const;
525 bool IsVirtualState(GateRef gate) const;
526 bool IsGeneralState(GateRef gate) const;
527 MarkCode GetMark(GateRef gate) const;
529 bool IsFinished(GateRef gate) const;
530 bool IsVisited(GateRef gate) const;
531 bool IsPrevisit(GateRef gate) const;
532 bool IsNotMarked(GateRef gate) const;
536 bool IsStateIn(const UseIterator &useIt) const;
537 bool IsDependIn(const UseIterator &useIt) const;
538 bool IsValueIn(const UseIterator &useIt) const;
539 bool IsFrameStateIn(const UseIterator &useIt) const;
540 bool IsStateIn(GateRef gate, size_t index) const;
541 bool IsDependIn(GateRef gate, size_t index) const;
542 bool IsValueIn(GateRef gate, size_t index) const;
547 bool IsFrameStateIn(GateRef gate, size_t index) const;
552 uint32_t GetFirstValue(GateRef gate) const;
553 uint32_t GetSecondValue(GateRef gate) const;
554 GateRef GetGlueFromArgList() const;
555 void GetArgsOuts(std::vector<GateRef>& outs) const;
556 void GetReturnOuts(std::vector<GateRef>& outs) const;
557 bool IsFixed(GateRef g) const;
558 bool IsProlog(GateRef g) const;
559 bool IsCFGMerge(GateRef g) const;
560 bool MetaDataEqu(GateRef g1, GateRef g2) const;
561 bool MetaDataValueEqu(GateRef g1, GateRef g2) const;
562 bool IsNop(GateRef g) const;
563 bool IsRoot(GateRef g) const;
564 bool HasOuts(GateRef gate) const;
567 bool HasIfExceptionUse(GateRef gate) const;
568 bool IsIn(GateRef g, GateRef in) const;
572 bool UseForTypeOpProfilerGate(GateRef gate) const;
574 bool IsIfOrSwitchRelated(GateRef gate) const;
575 uint32_t GetConstpoolId(GateRef gate) const;
578 GateRef GetCircuitRoot() const in GetCircuitRoot()
583 GateRef GetStateRoot() const in GetStateRoot()
588 GateRef GetDependRoot() const in GetDependRoot()
593 GateRef GetArgRoot() const in GetArgRoot()
598 GateRef GetReturnRoot() const in GetReturnRoot()
603 inline bool IsStateRoot(GateRef gate) const in IsStateRoot()
609 GateRef GetFrameState(GateRef gate) const;
611 bool HasFrameState(GateRef gate) const;
612 GateRef FindNearestFrameState(GateRef gate) const;
613 GateRef FindNearestStateSplit(GateRef gate) const;
614 void SetMetaData(GateRef gate, const GateMetaData* meta);
620 bool IsLoopBackUse(GateRef gate, const UseIterator &useIt) const;
621 void GetOutStates(GateRef gate, std::vector<GateRef>& outStates) const;
622 bool IsCreateArray(GateRef gate) const;
624 bool IsNoBarrier(GateRef gate) const;
625 void GetIns(GateRef gate, std::vector<GateRef>& ins) const;
627 bool TryGetMegaProp(GateRef gate) const;
631 uint64_t GetMetaDataHash(GateRef gate) const;
634 const GateMetaData *GetMetaData(GateRef gate) const;
635 UseIterator ReplaceHirIfSuccess(const UseIterator &useIt, GateRef state);
636 UseIterator ReplaceHirIfException(const UseIterator &useIt, StateDepend replacement);
639 GateRef GetRoot(OpCode opcode) const;
640 ConstUseIterator ConstUseBegin(GateRef gate) const in ConstUseBegin()
649 ConstUseIterator ConstUseEnd() const in ConstUseEnd()
654 UseIterator UseBegin(GateRef gate) const in UseBegin()
663 UseIterator UseEnd() const in UseEnd()
668 ConstInsIterator ConstInBegin(GateRef gate) const in ConstInBegin()
670 …return ConstInsIterator(circuit_, &reinterpret_cast<const In *>(circuit_->LoadGatePtrConst(gate) +… in ConstInBegin()
673 ConstInsIterator ConstInEnd(GateRef gate) const in ConstInEnd()
677 … &reinterpret_cast<const In *>(circuit_->LoadGatePtrConst(gate) + 1)[endIndex]); in ConstInEnd()
691 void GetOuts(GateRef gate, std::vector<GateRef>& outs) const;
693 void GetInStates(GateRef gate, std::vector<GateRef>& ins) const;
708 ConstInsIterator(const Circuit* circuit, const In* in) : circuit_(circuit), in_(in) in ConstInsIterator()
712 GateRef operator*() const
717 const ConstInsIterator& operator++()
729 OpCode GetOpCode() const in GetOpCode()
735 friend bool operator== (const ConstInsIterator& a, const ConstInsIterator& b)
739 friend bool operator!= (const ConstInsIterator& a, const ConstInsIterator& b)
745 const Circuit* circuit_;
746 const In* in_;
750 const Circuit* circuit;
751 const GateRef gate;
762 ConstInWrapper Ins(GateRef gate) const in Ins()
767 explicit ConstGateAccessor(const Circuit *circuit) : circuit_(circuit) in ConstGateAccessor()
773 bool IsFixed(GateRef g) const;
774 bool IsProlog(GateRef g) const;
775 bool IsSchedulable(GateRef g) const;
778 ConstInsIterator ConstInBegin(GateRef gate) const in ConstInBegin()
780 …return ConstInsIterator(circuit_, &reinterpret_cast<const In *>(circuit_->LoadGatePtrConst(gate) +… in ConstInBegin()
783 ConstInsIterator ConstInEnd(GateRef gate) const in ConstInEnd()
787 … &reinterpret_cast<const In *>(circuit_->LoadGatePtrConst(gate) + 1)[endIndex]); in ConstInEnd()
789 const GateMetaData *GetMetaData(GateRef g) const;
791 const Circuit *circuit_;