OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_COMPILER_SIMPLIFIED_OPERATOR_H_ | 5 #ifndef V8_COMPILER_SIMPLIFIED_OPERATOR_H_ |
6 #define V8_COMPILER_SIMPLIFIED_OPERATOR_H_ | 6 #define V8_COMPILER_SIMPLIFIED_OPERATOR_H_ |
7 | 7 |
8 #include "src/compiler/machine-type.h" | 8 #include "src/compiler/machine-type.h" |
9 #include "src/handles.h" | 9 #include "src/handles.h" |
10 | 10 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 // - Float32: an untagged float32 | 83 // - Float32: an untagged float32 |
84 | 84 |
85 // Boolean values can be: | 85 // Boolean values can be: |
86 // - Bool: a tagged pointer to either the canonical JS #false or | 86 // - Bool: a tagged pointer to either the canonical JS #false or |
87 // the canonical JS #true object | 87 // the canonical JS #true object |
88 // - Bit: an untagged integer 0 or 1, but word-sized | 88 // - Bit: an untagged integer 0 or 1, but word-sized |
89 class SimplifiedOperatorBuilder FINAL { | 89 class SimplifiedOperatorBuilder FINAL { |
90 public: | 90 public: |
91 explicit SimplifiedOperatorBuilder(Zone* zone); | 91 explicit SimplifiedOperatorBuilder(Zone* zone); |
92 | 92 |
93 const Operator* BooleanNot() const WARN_UNUSED_RESULT; | 93 const Operator* BooleanNot(); |
94 | 94 |
95 const Operator* NumberEqual() const WARN_UNUSED_RESULT; | 95 const Operator* NumberEqual(); |
96 const Operator* NumberLessThan() const WARN_UNUSED_RESULT; | 96 const Operator* NumberLessThan(); |
97 const Operator* NumberLessThanOrEqual() const WARN_UNUSED_RESULT; | 97 const Operator* NumberLessThanOrEqual(); |
98 const Operator* NumberAdd() const WARN_UNUSED_RESULT; | 98 const Operator* NumberAdd(); |
99 const Operator* NumberSubtract() const WARN_UNUSED_RESULT; | 99 const Operator* NumberSubtract(); |
100 const Operator* NumberMultiply() const WARN_UNUSED_RESULT; | 100 const Operator* NumberMultiply(); |
101 const Operator* NumberDivide() const WARN_UNUSED_RESULT; | 101 const Operator* NumberDivide(); |
102 const Operator* NumberModulus() const WARN_UNUSED_RESULT; | 102 const Operator* NumberModulus(); |
103 const Operator* NumberToInt32() const WARN_UNUSED_RESULT; | 103 const Operator* NumberToInt32(); |
104 const Operator* NumberToUint32() const WARN_UNUSED_RESULT; | 104 const Operator* NumberToUint32(); |
105 | 105 |
106 const Operator* ReferenceEqual(Type* type) const WARN_UNUSED_RESULT; | 106 const Operator* ReferenceEqual(Type* type); |
107 | 107 |
108 const Operator* StringEqual() const WARN_UNUSED_RESULT; | 108 const Operator* StringEqual(); |
109 const Operator* StringLessThan() const WARN_UNUSED_RESULT; | 109 const Operator* StringLessThan(); |
110 const Operator* StringLessThanOrEqual() const WARN_UNUSED_RESULT; | 110 const Operator* StringLessThanOrEqual(); |
111 const Operator* StringAdd() const WARN_UNUSED_RESULT; | 111 const Operator* StringAdd(); |
112 | 112 |
113 const Operator* ChangeTaggedToInt32() const WARN_UNUSED_RESULT; | 113 const Operator* ChangeTaggedToInt32(); |
114 const Operator* ChangeTaggedToUint32() const WARN_UNUSED_RESULT; | 114 const Operator* ChangeTaggedToUint32(); |
115 const Operator* ChangeTaggedToFloat64() const WARN_UNUSED_RESULT; | 115 const Operator* ChangeTaggedToFloat64(); |
116 const Operator* ChangeInt32ToTagged() const WARN_UNUSED_RESULT; | 116 const Operator* ChangeInt32ToTagged(); |
117 const Operator* ChangeUint32ToTagged() const WARN_UNUSED_RESULT; | 117 const Operator* ChangeUint32ToTagged(); |
118 const Operator* ChangeFloat64ToTagged() const WARN_UNUSED_RESULT; | 118 const Operator* ChangeFloat64ToTagged(); |
119 const Operator* ChangeBoolToBit() const WARN_UNUSED_RESULT; | 119 const Operator* ChangeBoolToBit(); |
120 const Operator* ChangeBitToBool() const WARN_UNUSED_RESULT; | 120 const Operator* ChangeBitToBool(); |
121 | 121 |
122 const Operator* LoadField(const FieldAccess&) const WARN_UNUSED_RESULT; | 122 const Operator* LoadField(const FieldAccess&); |
123 const Operator* StoreField(const FieldAccess&) const WARN_UNUSED_RESULT; | 123 const Operator* StoreField(const FieldAccess&); |
124 const Operator* LoadElement(const ElementAccess&) const WARN_UNUSED_RESULT; | 124 const Operator* LoadElement(const ElementAccess&); |
125 const Operator* StoreElement(const ElementAccess&) const WARN_UNUSED_RESULT; | 125 const Operator* StoreElement(const ElementAccess&); |
126 | 126 |
127 private: | 127 private: |
128 Zone* zone() const { return zone_; } | 128 Zone* zone() const { return zone_; } |
129 | 129 |
130 const SimplifiedOperatorBuilderImpl& impl_; | 130 const SimplifiedOperatorBuilderImpl& impl_; |
131 Zone* const zone_; | 131 Zone* const zone_; |
132 | 132 |
133 DISALLOW_COPY_AND_ASSIGN(SimplifiedOperatorBuilder); | 133 DISALLOW_COPY_AND_ASSIGN(SimplifiedOperatorBuilder); |
134 }; | 134 }; |
135 | 135 |
136 } // namespace compiler | 136 } // namespace compiler |
137 } // namespace internal | 137 } // namespace internal |
138 } // namespace v8 | 138 } // namespace v8 |
139 | 139 |
140 #endif // V8_COMPILER_SIMPLIFIED_OPERATOR_H_ | 140 #endif // V8_COMPILER_SIMPLIFIED_OPERATOR_H_ |
OLD | NEW |