Home | History | Annotate | Download | only in compiler

Lines Matching full:operator

5 #include "src/compiler/js-operator.h"
11 #include "src/compiler/operator.h"
28 bool operator==(VectorSlotPair const& lhs, VectorSlotPair const& rhs) {
34 bool operator!=(VectorSlotPair const& lhs, VectorSlotPair const& rhs) {
44 ConvertReceiverMode ConvertReceiverModeOf(Operator const* op) {
50 ToBooleanHints ToBooleanHintsOf(Operator const* op) {
55 bool operator==(ConstructParameters const& lhs,
61 bool operator!=(ConstructParameters const& lhs,
70 std::ostream& operator<<(std::ostream& os, ConstructParameters const& p) {
74 ConstructParameters const& ConstructParametersOf(Operator const* op) {
79 bool operator==(ConstructWithSpreadParameters const& lhs,
84 bool operator!=(ConstructWithSpreadParameters const& lhs,
93 std::ostream& operator<<(std::ostream& os,
99 Operator const* op) {
104 std::ostream& operator<<(std::ostream& os, CallParameters const& p) {
110 const CallParameters& CallParametersOf(const Operator* op) {
115 std::ostream& operator<<(std::ostream& os,
121 Operator const* op) {
126 bool operator==(CallWithSpreadParameters const& lhs,
131 bool operator!=(CallWithSpreadParameters const& lhs,
140 std::ostream& operator<<(std::ostream& os, CallWithSpreadParameters const& p) {
144 CallWithSpreadParameters const& CallWithSpreadParametersOf(Operator const* op) {
149 bool operator==(CallRuntimeParameters const& lhs,
155 bool operator!=(CallRuntimeParameters const& lhs,
166 std::ostream& operator<<(std::ostream& os, CallRuntimeParameters const& p) {
171 const CallRuntimeParameters& CallRuntimeParametersOf(const Operator* op) {
186 bool operator==(ContextAccess const& lhs, ContextAccess const& rhs) {
192 bool operator!=(ContextAccess const& lhs, ContextAccess const& rhs) {
202 std::ostream& operator<<(std::ostream& os, ContextAccess const& access) {
208 ContextAccess const& ContextAccessOf(Operator const* op) {
218 bool operator==(CreateCatchContextParameters const& lhs,
224 bool operator!=(CreateCatchContextParameters const& lhs,
234 std::ostream& operator<<(std::ostream& os,
241 Operator const* op) {
250 bool operator==(CreateFunctionContextParameters const& lhs,
256 bool operator!=(CreateFunctionContextParameters const& lhs,
266 std::ostream& operator<<(std::ostream& os,
272 Operator const* op) {
277 bool operator==(StoreNamedOwnParameters const& lhs,
283 bool operator!=(StoreNamedOwnParameters const& lhs,
292 std::ostream& operator<<(std::ostream& os, StoreNamedOwnParameters const& p) {
296 StoreNamedOwnParameters const& StoreNamedOwnParametersOf(const Operator* op) {
301 bool operator==(DataPropertyParameters const& lhs,
306 bool operator!=(DataPropertyParameters const& lhs,
315 std::ostream& operator<<(std::ostream& os, DataPropertyParameters const& p) {
319 DataPropertyParameters const& DataPropertyParametersOf(const Operator* op) {
324 bool operator==(NamedAccess const& lhs, NamedAccess const& rhs) {
331 bool operator!=(NamedAccess const& lhs, NamedAccess const& rhs) {
342 std::ostream& operator<<(std::ostream& os, NamedAccess const& p) {
347 NamedAccess const& NamedAccessOf(const Operator* op) {
354 std::ostream& operator<<(std::ostream& os, PropertyAccess const& p) {
359 bool operator==(PropertyAccess const& lhs, PropertyAccess const& rhs) {
365 bool operator!=(PropertyAccess const& lhs, PropertyAccess const& rhs) {
370 PropertyAccess const& PropertyAccessOf(const Operator* op) {
382 bool operator==(LoadGlobalParameters const& lhs,
390 bool operator!=(LoadGlobalParameters const& lhs,
401 std::ostream& operator<<(std::ostream& os, LoadGlobalParameters const& p) {
406 const LoadGlobalParameters& LoadGlobalParametersOf(const Operator* op) {
412 bool operator==(StoreGlobalParameters const& lhs,
420 bool operator!=(StoreGlobalParameters const& lhs,
432 std::ostream& operator<<(std::ostream& os, StoreGlobalParameters const& p) {
437 const StoreGlobalParameters& StoreGlobalParametersOf(const Operator* op) {
443 CreateArgumentsType const& CreateArgumentsTypeOf(const Operator* op) {
449 bool operator==(CreateArrayParameters const& lhs,
456 bool operator!=(CreateArrayParameters const& lhs,
467 std::ostream& operator<<(std::ostream& os, CreateArrayParameters const& p) {
474 const CreateArrayParameters& CreateArrayParametersOf(const Operator* op) {
480 bool operator==(CreateClosureParameters const& lhs,
488 bool operator!=(CreateClosureParameters const& lhs,
500 std::ostream& operator<<(std::ostream& os, CreateClosureParameters const& p) {
505 const CreateClosureParameters& CreateClosureParametersOf(const Operator* op) {
511 bool operator==(CreateLiteralParameters const& lhs,
519 bool operator!=(CreateLiteralParameters const& lhs,
531 std::ostream& operator<<(std::ostream& os, CreateLiteralParameters const& p) {
537 const CreateLiteralParameters& CreateLiteralParametersOf(const Operator* op) {
544 BinaryOperationHint BinaryOperationHintOf(const Operator* op) {
549 CompareOperationHint CompareOperationHintOf(const Operator* op) {
562 V(BitwiseOr, Operator::kNoProperties, 2, 1) \
563 V(BitwiseXor, Operator::kNoProperties, 2, 1) \
564 V(BitwiseAnd, Operator::kNoProperties, 2, 1) \
565 V(ShiftLeft, Operator::kNoProperties, 2, 1) \
566 V(ShiftRight, Operator::kNoProperties, 2, 1) \
567 V(ShiftRightLogical, Operator::kNoProperties, 2, 1) \
568 V(Subtract, Operator::kNoProperties, 2, 1) \
569 V(Multiply, Operator::kNoProperties, 2, 1) \
570 V(Divide, Operator::kNoProperties, 2, 1) \
571 V(Modulus, Operator::kNoProperties, 2, 1) \
572 V(ToInteger, Operator::kNoProperties, 1, 1) \
573 V(ToLength, Operator::kNoProperties, 1, 1) \
574 V(ToName, Operator::kNoProperties, 1, 1) \
575 V(ToNumber, Operator::kNoProperties, 1, 1) \
576 V(ToObject, Operator::kFoldable, 1, 1) \
577 V(ToString, Operator::kNoProperties, 1, 1) \
578 V(Create, Operator::kNoProperties, 2, 1) \
579 V(CreateIterResultObject, Operator::kEliminatable, 2, 1) \
580 V(CreateKeyValueArray, Operator::kEliminatable, 2, 1) \
581 V(HasProperty, Operator::kNoProperties, 2, 1) \
582 V(ClassOf, Operator::kPure, 1, 1) \
583 V(TypeOf, Operator::kPure, 1, 1) \
584 V(InstanceOf, Operator::kNoProperties, 2, 1) \
585 V(OrdinaryHasInstance, Operator::kNoProperties, 2, 1) \
586 V(ForInNext, Operator::kNoProperties, 4, 1) \
587 V(ForInPrepare, Operator::kNoProperties, 1, 3) \
588 V(LoadMessage, Operator::kNoThrow | Operator::kNoWrite, 0, 1) \
589 V(StoreMessage, Operator::kNoRead | Operator::kNoThrow, 1, 0) \
590 V(GeneratorRestoreContinuation, Operator::kNoThrow, 1, 1) \
591 V(StackCheck, Operator::kNoWrite, 0, 0) \
592 V(Debugger, Operator::kNoProperties, 0, 0) \
593 V(GetSuperConstructor, Operator::kNoWrite, 1, 1)
598 V(Equal, Operator::kNoProperties) \
599 V(NotEqual, Operator::kNoProperties) \
600 V(StrictEqual, Operator::kPure) \
601 V(StrictNotEqual, Operator::kPure) \
602 V(LessThan, Operator::kNoProperties) \
603 V(GreaterThan, Operator::kNoProperties) \
604 V(LessThanOrEqual, Operator::kNoProperties) \
605 V(GreaterThanOrEqual, Operator::kNoProperties)
609 struct Name##Operator final : public Operator { \
610 Name##Operator() \
611 : Operator(IrOpcode::kJS##Name, properties, "JS" #Name, \
612 value_input_count, Operator::ZeroIfPure(properties), \
613 Operator::ZeroIfEliminatable(properties), \
614 value_output_count, Operator::ZeroIfPure(properties), \
615 Operator::ZeroIfNoThrow(properties)) {} \
617 Name##Operator k##Name##Operator;
623 struct Name##Operator final : public Operator1<BinaryOperationHint> { \
624 Name##Operator() \
626 Operator::kNoProperties, "JS" #Name, \
629 Name##Operator<BinaryOperationHint::kNone> k##Name##NoneOperator; \
630 Name##Operator<BinaryOperationHint::kSignedSmall> \
632 Name##Operator<BinaryOperationHint::kSigned32> k##Name##Signed32Operator; \
633 Name##Operator<BinaryOperationHint::kNumberOrOddball> \
635 Name##Operator<BinaryOperationHint::kString> k##Name##StringOperator; \
636 Name##Operator<BinaryOperationHint::kAny> k##Name##AnyOperator;
642 struct Name##Operator final : public Operator1<CompareOperationHint> { \
643 Name##Operator() \
646 Operator::ZeroIfNoThrow(properties), kHint) {} \
648 Name##Operator<CompareOperationHint::kNone> k##Name##NoneOperator; \
649 Name##Operator<CompareOperationHint::kSignedSmall> \
651 Name##Operator<CompareOperationHint::kNumber> k##Name##NumberOperator; \
652 Name##Operator<CompareOperationHint::kNumberOrOddball> \
654 Name##Operator<CompareOperationHint::kInternalizedString> \
656 Name##Operator<CompareOperationHint::kString> k##Name##StringOperator; \
657 Name##Operator<CompareOperationHint::kReceiver> k##Name##ReceiverOperator; \
658 Name##Operator<CompareOperationHint::kAny> k##Name##AnyOperator;
670 const Operator* JSOperatorBuilder::Name() { \
671 return &cache_.k##Name##Operator; \
677 const Operator* JSOperatorBuilder::Name(BinaryOperationHint hint) { \
699 const Operator* JSOperatorBuilder::Name(CompareOperationHint hint) { \
724 const Operator* JSOperatorBuilder::StoreDataPropertyInLiteral(
729 Operator::kNoThrow, // opcode
735 const Operator* JSOperatorBuilder::ToBoolean(ToBooleanHints hints) {
736 // TODO(turbofan): Cache most important versions of this operator.
738 IrOpcode::kJSToBoolean, Operator::kPure, // opcode
744 const Operator* JSOperatorBuilder::CallForwardVarargs(
748 IrOpcode::kJSCallForwardVarargs, Operator::kNoProperties, // opcode
754 const Operator* JSOperatorBuilder::Call(size_t arity, float frequency,
761 IrOpcode::kJSCall, Operator::kNoProperties, // opcode
767 const Operator* JSOperatorBuilder::CallWithSpread(uint32_t arity) {
770 IrOpcode::kJSCallWithSpread, Operator::kNoProperties, // opcode
776 const Operator* JSOperatorBuilder::CallRuntime(Runtime::FunctionId id) {
782 const Operator* JSOperatorBuilder::CallRuntime(Runtime::FunctionId id,
789 const Operator* JSOperatorBuilder::CallRuntime(const Runtime::Function* f,
794 IrOpcode::kJSCallRuntime, Operator::kNoProperties, // opcode
800 const Operator* JSOperatorBuilder::Construct(uint32_t arity, float frequency,
804 IrOpcode::kJSConstruct, Operator::kNoProperties, // opcode
810 const Operator* JSOperatorBuilder::ConstructWithSpread(uint32_t arity) {
813 IrOpcode::kJSConstructWithSpread, Operator::kNoProperties, // opcode
819 const Operator* JSOperatorBuilder::ConvertReceiver(
822 IrOpcode::kJSConvertReceiver, Operator::kEliminatable, // opcode
828 const Operator* JSOperatorBuilder::LoadNamed(Handle<Name> name,
832 IrOpcode::kJSLoadNamed, Operator::kNoProperties, // opcode
838 const Operator* JSOperatorBuilder::LoadProperty(
842 IrOpcode::kJSLoadProperty, Operator::kNoProperties, // opcode
848 const Operator* JSOperatorBuilder::GeneratorStore(int register_count) {
850 IrOpcode::kJSGeneratorStore, Operator::kNoThrow, // opcode
856 const Operator* JSOperatorBuilder::GeneratorRestoreRegister(int index) {
858 IrOpcode::kJSGeneratorRestoreRegister, Operator::kNoThrow, // opcode
864 const Operator* JSOperatorBuilder::StoreNamed(LanguageMode language_mode,
869 IrOpcode::kJSStoreNamed, Operator::kNoProperties, // opcode
876 const Operator* JSOperatorBuilder::StoreProperty(
880 IrOpcode::kJSStoreProperty, Operator::kNoProperties, // opcode
886 const Operator* JSOperatorBuilder::StoreNamedOwn(
890 IrOpcode::kJSStoreNamedOwn, Operator::kNoProperties, // opcode
896 const Operator* JSOperatorBuilder::DeleteProperty(LanguageMode language_mode) {
898 IrOpcode::kJSDeleteProperty, Operator::kNoProperties, // opcode
905 const Operator* JSOperatorBuilder::LoadGlobal(const Handle<Name>& name,
910 IrOpcode::kJSLoadGlobal, Operator::kNoProperties, // opcode
917 const Operator* JSOperatorBuilder::StoreGlobal(LanguageMode language_mode,
922 IrOpcode::kJSStoreGlobal, Operator::kNoProperties, // opcode
929 const Operator* JSOperatorBuilder::LoadContext(size_t depth, size_t index,
934 Operator::kNoWrite | Operator::kNoThrow, // flags
941 const Operator* JSOperatorBuilder::StoreContext(size_t depth, size_t index) {
945 Operator::kNoRead | Operator::kNoThrow, // flags
951 const Operator* JSOperatorBuilder::LoadModule(int32_t cell_index) {
954 Operator::kNoWrite | Operator::kNoThrow, // flags
960 const Operator* JSOperatorBuilder::StoreModule(int32_t cell_index) {
963 Operator::kNoRead | Operator::kNoThrow, // flags
969 const Operator* JSOperatorBuilder::CreateArguments(CreateArgumentsType type) {
971 IrOpcode::kJSCreateArguments, Operator::kEliminatable, // opcode
978 const Operator* JSOperatorBuilder::CreateArray(size_t arity,
984 IrOpcode::kJSCreateArray, Operator::kNoProperties, // opcode
990 const Operator* JSOperatorBuilder::CreateClosure(
995 IrOpcode::kJSCreateClosure, Operator::kNoThrow, // opcode
1001 const Operator* JSOperatorBuilder::CreateLiteralArray(
1007 IrOpcode::kJSCreateLiteralArray, Operator::kNoProperties, // opcode
1013 const Operator* JSOperatorBuilder::CreateLiteralObject(
1019 IrOpcode::kJSCreateLiteralObject, Operator::kNoProperties, // opcode
1026 const Operator* JSOperatorBuilder::CreateLiteralRegExp(
1031 IrOpcode::kJSCreateLiteralRegExp, Operator::kNoProperties, // opcode
1037 const Operator* JSOperatorBuilder::CreateFunctionContext(int slot_count,
1041 IrOpcode::kJSCreateFunctionContext, Operator::kNoProperties, // opcode
1047 const Operator* JSOperatorBuilder::CreateCatchContext(
1051 IrOpcode::kJSCreateCatchContext, Operator::kNoProperties, // opcode
1057 const Operator* JSOperatorBuilder::CreateWithContext(
1060 IrOpcode::kJSCreateWithContext, Operator::kNoProperties, // opcode
1066 const Operator* JSOperatorBuilder::CreateBlockContext(
1069 IrOpcode::kJSCreateBlockContext, Operator::kNoProperties, // opcode
1075 const Operator* JSOperatorBuilder::CreateScriptContext(
1078 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode