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