Lines Matching refs:Operator
5 #include "src/compiler/js-operator.h"
11 #include "src/compiler/operator.h"
27 bool operator==(VectorSlotPair const& lhs, VectorSlotPair const& rhs) {
33 bool operator!=(VectorSlotPair const& lhs, VectorSlotPair const& rhs) {
43 ConvertReceiverMode ConvertReceiverModeOf(Operator const* op) {
49 ToBooleanHints ToBooleanHintsOf(Operator const* op) {
55 bool operator==(CallConstructParameters const& lhs,
62 bool operator!=(CallConstructParameters const& lhs,
73 std::ostream& operator<<(std::ostream& os, CallConstructParameters const& p) {
78 CallConstructParameters const& CallConstructParametersOf(Operator const* op) {
84 std::ostream& operator<<(std::ostream& os, CallFunctionParameters const& p) {
91 const CallFunctionParameters& CallFunctionParametersOf(const Operator* op) {
97 bool operator==(CallRuntimeParameters const& lhs,
103 bool operator!=(CallRuntimeParameters const& lhs,
114 std::ostream& operator<<(std::ostream& os, CallRuntimeParameters const& p) {
119 const CallRuntimeParameters& CallRuntimeParametersOf(const Operator* op) {
134 bool operator==(ContextAccess const& lhs, ContextAccess const& rhs) {
140 bool operator!=(ContextAccess const& lhs, ContextAccess const& rhs) {
150 std::ostream& operator<<(std::ostream& os, ContextAccess const& access) {
156 ContextAccess const& ContextAccessOf(Operator const* op) {
166 bool operator==(CreateCatchContextParameters const& lhs,
172 bool operator!=(CreateCatchContextParameters const& lhs,
182 std::ostream& operator<<(std::ostream& os,
189 Operator const* op) {
194 bool operator==(NamedAccess const& lhs, NamedAccess const& rhs) {
201 bool operator!=(NamedAccess const& lhs, NamedAccess const& rhs) {
212 std::ostream& operator<<(std::ostream& os, NamedAccess const& p) {
217 NamedAccess const& NamedAccessOf(const Operator* op) {
224 std::ostream& operator<<(std::ostream& os, PropertyAccess const& p) {
229 bool operator==(PropertyAccess const& lhs, PropertyAccess const& rhs) {
235 bool operator!=(PropertyAccess const& lhs, PropertyAccess const& rhs) {
240 PropertyAccess const& PropertyAccessOf(const Operator* op) {
252 bool operator==(LoadGlobalParameters const& lhs,
260 bool operator!=(LoadGlobalParameters const& lhs,
271 std::ostream& operator<<(std::ostream& os, LoadGlobalParameters const& p) {
276 const LoadGlobalParameters& LoadGlobalParametersOf(const Operator* op) {
282 bool operator==(StoreGlobalParameters const& lhs,
290 bool operator!=(StoreGlobalParameters const& lhs,
302 std::ostream& operator<<(std::ostream& os, StoreGlobalParameters const& p) {
307 const StoreGlobalParameters& StoreGlobalParametersOf(const Operator* op) {
313 CreateArgumentsType const& CreateArgumentsTypeOf(const Operator* op) {
319 bool operator==(CreateArrayParameters const& lhs,
326 bool operator!=(CreateArrayParameters const& lhs,
337 std::ostream& operator<<(std::ostream& os, CreateArrayParameters const& p) {
344 const CreateArrayParameters& CreateArrayParametersOf(const Operator* op) {
350 bool operator==(CreateClosureParameters const& lhs,
357 bool operator!=(CreateClosureParameters const& lhs,
368 std::ostream& operator<<(std::ostream& os, CreateClosureParameters const& p) {
373 const CreateClosureParameters& CreateClosureParametersOf(const Operator* op) {
379 bool operator==(CreateLiteralParameters const& lhs,
387 bool operator!=(CreateLiteralParameters const& lhs,
399 std::ostream& operator<<(std::ostream& os, CreateLiteralParameters const& p) {
405 const CreateLiteralParameters& CreateLiteralParametersOf(const Operator* op) {
412 BinaryOperationHint BinaryOperationHintOf(const Operator* op) {
427 CompareOperationHint CompareOperationHintOf(const Operator* op) {
440 V(ToInteger, Operator::kNoProperties, 1, 1) \
441 V(ToLength, Operator::kNoProperties, 1, 1) \
442 V(ToName, Operator::kNoProperties, 1, 1) \
443 V(ToNumber, Operator::kNoProperties, 1, 1) \
444 V(ToObject, Operator::kFoldable, 1, 1) \
445 V(ToString, Operator::kNoProperties, 1, 1) \
446 V(Create, Operator::kEliminatable, 2, 1) \
447 V(CreateIterResultObject, Operator::kEliminatable, 2, 1) \
448 V(CreateKeyValueArray, Operator::kEliminatable, 2, 1) \
449 V(HasProperty, Operator::kNoProperties, 2, 1) \
450 V(TypeOf, Operator::kPure, 1, 1) \
451 V(InstanceOf, Operator::kNoProperties, 2, 1) \
452 V(OrdinaryHasInstance, Operator::kNoProperties, 2, 1) \
453 V(ForInNext, Operator::kNoProperties, 4, 1) \
454 V(ForInPrepare, Operator::kNoProperties, 1, 3) \
455 V(LoadMessage, Operator::kNoThrow, 0, 1) \
456 V(StoreMessage, Operator::kNoThrow, 1, 0) \
457 V(GeneratorRestoreContinuation, Operator::kNoThrow, 1, 1) \
458 V(StackCheck, Operator::kNoWrite, 0, 0)
474 V(Equal, Operator::kNoProperties) \
475 V(NotEqual, Operator::kNoProperties) \
476 V(StrictEqual, Operator::kPure) \
477 V(StrictNotEqual, Operator::kPure) \
478 V(LessThan, Operator::kNoProperties) \
479 V(GreaterThan, Operator::kNoProperties) \
480 V(LessThanOrEqual, Operator::kNoProperties) \
481 V(GreaterThanOrEqual, Operator::kNoProperties)
485 struct Name##Operator final : public Operator { \
486 Name##Operator() \
487 : Operator(IrOpcode::kJS##Name, properties, "JS" #Name, \
488 value_input_count, Operator::ZeroIfPure(properties), \
489 Operator::ZeroIfEliminatable(properties), \
490 value_output_count, Operator::ZeroIfPure(properties), \
491 Operator::ZeroIfNoThrow(properties)) {} \
493 Name##Operator k##Name##Operator;
499 struct Name##Operator final : public Operator1<BinaryOperationHint> { \
500 Name##Operator() \
502 Operator::kNoProperties, "JS" #Name, \
505 Name##Operator
506 Name##Operator<BinaryOperationHint::kSignedSmall> \
508 Name##Operator<BinaryOperationHint::kSigned32> k##Name##Signed32Operator; \
509 Name##Operator<BinaryOperationHint::kNumberOrOddball> \
511 Name##Operator<BinaryOperationHint::kString> k##Name##StringOperator; \
512 Name##Operator<BinaryOperationHint::kAny> k##Name##AnyOperator;
518 struct Name##Operator final : public Operator1<CompareOperationHint> { \
519 Name##Operator() \
522 Operator::ZeroIfNoThrow(properties), kHint) {} \
524 Name##Operator<CompareOperationHint::kNone> k##Name##NoneOperator; \
525 Name##Operator<CompareOperationHint::kSignedSmall> \
527 Name##Operator<CompareOperationHint::kNumber> k##Name##NumberOperator; \
528 Name##Operator<CompareOperationHint::kNumberOrOddball> \
530 Name##Operator<CompareOperationHint::kAny> k##Name##AnyOperator;
542 const Operator* JSOperatorBuilder::Name() { \
543 return &cache_.k##Name##Operator; \
549 const Operator* JSOperatorBuilder::Name(BinaryOperationHint hint) { \
571 const Operator* JSOperatorBuilder::Name(CompareOperationHint hint) { \
590 const Operator* JSOperatorBuilder::ToBoolean(ToBooleanHints hints) {
591 // TODO(turbofan): Cache most important versions of this operator.
593 IrOpcode::kJSToBoolean, Operator::kPure, // opcode
599 const Operator* JSOperatorBuilder::CallFunction(
605 IrOpcode::kJSCallFunction, Operator::kNoProperties, // opcode
612 const Operator* JSOperatorBuilder::CallRuntime(Runtime::FunctionId id) {
618 const Operator* JSOperatorBuilder::CallRuntime(Runtime::FunctionId id,
625 const Operator* JSOperatorBuilder::CallRuntime(const Runtime::Function* f,
630 IrOpcode::kJSCallRuntime, Operator::kNoProperties, // opcode
636 const Operator* JSOperatorBuilder::CallConstruct(
640 IrOpcode::kJSCallConstruct, Operator::kNoProperties, // opcode
647 const Operator* JSOperatorBuilder::ConvertReceiver(
650 IrOpcode::kJSConvertReceiver, Operator::kEliminatable, // opcode
656 const Operator* JSOperatorBuilder::LoadNamed(Handle<Name> name,
660 IrOpcode::kJSLoadNamed, Operator::kNoProperties, // opcode
666 const Operator* JSOperatorBuilder::LoadProperty(
670 IrOpcode::kJSLoadProperty, Operator::kNoProperties, // opcode
676 const Operator* JSOperatorBuilder::GeneratorStore(int register_count) {
678 IrOpcode::kJSGeneratorStore, Operator::kNoThrow, // opcode
684 const Operator* JSOperatorBuilder::GeneratorRestoreRegister(int index) {
686 IrOpcode::kJSGeneratorRestoreRegister, Operator::kNoThrow, // opcode
692 const Operator* JSOperatorBuilder::StoreNamed(LanguageMode language_mode,
697 IrOpcode::kJSStoreNamed, Operator::kNoProperties, // opcode
704 const Operator* JSOperatorBuilder::StoreProperty(
708 IrOpcode::kJSStoreProperty, Operator::kNoProperties, // opcode
715 const Operator* JSOperatorBuilder::DeleteProperty(LanguageMode language_mode) {
717 IrOpcode::kJSDeleteProperty, Operator::kNoProperties, // opcode
724 const Operator* JSOperatorBuilder::LoadGlobal(const Handle<Name>& name,
729 IrOpcode::kJSLoadGlobal, Operator::kNoProperties, // opcode
736 const Operator* JSOperatorBuilder::StoreGlobal(LanguageMode language_mode,
741 IrOpcode::kJSStoreGlobal, Operator::kNoProperties, // opcode
748 const Operator* JSOperatorBuilder::LoadContext(size_t depth, size_t index,
753 Operator::kNoWrite | Operator::kNoThrow, // flags
760 const Operator* JSOperatorBuilder::StoreContext(size_t depth, size_t index) {
764 Operator::kNoRead | Operator::kNoThrow, // flags
770 const Operator* JSOperatorBuilder::LoadModule(int32_t cell_index) {
773 Operator::kNoWrite | Operator::kNoThrow, // flags
779 const Operator* JSOperatorBuilder::StoreModule(int32_t cell_index) {
782 Operator::kNoRead | Operator::kNoThrow, // flags
788 const Operator* JSOperatorBuilder::CreateArguments(CreateArgumentsType type) {
790 IrOpcode::kJSCreateArguments, Operator::kEliminatable, // opcode
797 const Operator* JSOperatorBuilder::CreateArray(size_t arity,
803 IrOpcode::kJSCreateArray, Operator::kNoProperties, // opcode
810 const Operator* JSOperatorBuilder::CreateClosure(
814 IrOpcode::kJSCreateClosure, Operator::kNoThrow, // opcode
820 const Operator* JSOperatorBuilder::CreateLiteralArray(
826 IrOpcode::kJSCreateLiteralArray, Operator::kNoProperties, // opcode
832 const Operator* JSOperatorBuilder::CreateLiteralObject(
838 IrOpcode::kJSCreateLiteralObject, Operator::kNoProperties, // opcode
845 const Operator* JSOperatorBuilder::CreateLiteralRegExp(
850 IrOpcode::kJSCreateLiteralRegExp, Operator::kNoProperties, // opcode
857 const Operator* JSOperatorBuilder::CreateFunctionContext(int slot_count) {
859 IrOpcode::kJSCreateFunctionContext, Operator::kNoProperties, // opcode
865 const Operator* JSOperatorBuilder::CreateCatchContext(
869 IrOpcode::kJSCreateCatchContext, Operator::kNoProperties, // opcode
875 const Operator* JSOperatorBuilder::CreateWithContext(
878 IrOpcode::kJSCreateWithContext, Operator::kNoProperties, // opcode
884 const Operator* JSOperatorBuilder::CreateBlockContext(
887 IrOpcode::kJSCreateBlockContext, Operator::kNoProperties, // opcode
894 const Operator* JSOperatorBuilder::CreateScriptContext(
897 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode