OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_JS_OPERATOR_H_ | 5 #ifndef V8_COMPILER_JS_OPERATOR_H_ |
6 #define V8_COMPILER_JS_OPERATOR_H_ | 6 #define V8_COMPILER_JS_OPERATOR_H_ |
7 | 7 |
8 #include "src/runtime/runtime.h" | 8 #include "src/runtime/runtime.h" |
9 #include "src/unique.h" | 9 #include "src/unique.h" |
10 | 10 |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 size_t hash_value(StoreNamedParameters const&); | 188 size_t hash_value(StoreNamedParameters const&); |
189 | 189 |
190 std::ostream& operator<<(std::ostream&, StoreNamedParameters const&); | 190 std::ostream& operator<<(std::ostream&, StoreNamedParameters const&); |
191 | 191 |
192 const StoreNamedParameters& StoreNamedParametersOf(const Operator* op); | 192 const StoreNamedParameters& StoreNamedParametersOf(const Operator* op); |
193 | 193 |
194 | 194 |
195 // Interface for building JavaScript-level operators, e.g. directly from the | 195 // Interface for building JavaScript-level operators, e.g. directly from the |
196 // AST. Most operators have no parameters, thus can be globally shared for all | 196 // AST. Most operators have no parameters, thus can be globally shared for all |
197 // graphs. | 197 // graphs. |
198 class JSOperatorBuilder FINAL { | 198 class JSOperatorBuilder FINAL : public ZoneObject { |
199 public: | 199 public: |
200 explicit JSOperatorBuilder(Zone* zone); | 200 explicit JSOperatorBuilder(Zone* zone); |
201 | 201 |
202 const Operator* Equal(); | 202 const Operator* Equal(); |
203 const Operator* NotEqual(); | 203 const Operator* NotEqual(); |
204 const Operator* StrictEqual(); | 204 const Operator* StrictEqual(); |
205 const Operator* StrictNotEqual(); | 205 const Operator* StrictNotEqual(); |
206 const Operator* LessThan(); | 206 const Operator* LessThan(); |
207 const Operator* GreaterThan(); | 207 const Operator* GreaterThan(); |
208 const Operator* LessThanOrEqual(); | 208 const Operator* LessThanOrEqual(); |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 const Operator* CreateWithContext(); | 259 const Operator* CreateWithContext(); |
260 const Operator* CreateBlockContext(); | 260 const Operator* CreateBlockContext(); |
261 const Operator* CreateModuleContext(); | 261 const Operator* CreateModuleContext(); |
262 const Operator* CreateGlobalContext(); | 262 const Operator* CreateGlobalContext(); |
263 | 263 |
264 private: | 264 private: |
265 Zone* zone() const { return zone_; } | 265 Zone* zone() const { return zone_; } |
266 | 266 |
267 const JSOperatorBuilderImpl& impl_; | 267 const JSOperatorBuilderImpl& impl_; |
268 Zone* const zone_; | 268 Zone* const zone_; |
| 269 |
| 270 DISALLOW_COPY_AND_ASSIGN(JSOperatorBuilder); |
269 }; | 271 }; |
270 | 272 |
271 } // namespace compiler | 273 } // namespace compiler |
272 } // namespace internal | 274 } // namespace internal |
273 } // namespace v8 | 275 } // namespace v8 |
274 | 276 |
275 #endif // V8_COMPILER_JS_OPERATOR_H_ | 277 #endif // V8_COMPILER_JS_OPERATOR_H_ |
OLD | NEW |