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_COMMON_OPERATOR_H_ | 5 #ifndef V8_COMPILER_COMMON_OPERATOR_H_ |
6 #define V8_COMPILER_COMMON_OPERATOR_H_ | 6 #define V8_COMPILER_COMMON_OPERATOR_H_ |
7 | 7 |
8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
9 #include "src/base/compiler-specific.h" | 9 #include "src/base/compiler-specific.h" |
10 #include "src/compiler/frame-states.h" | 10 #include "src/compiler/frame-states.h" |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 | 280 |
281 RegionObservability RegionObservabilityOf(Operator const*) WARN_UNUSED_RESULT; | 281 RegionObservability RegionObservabilityOf(Operator const*) WARN_UNUSED_RESULT; |
282 | 282 |
283 std::ostream& operator<<(std::ostream& os, | 283 std::ostream& operator<<(std::ostream& os, |
284 const ZoneVector<MachineType>* types); | 284 const ZoneVector<MachineType>* types); |
285 | 285 |
286 Type* TypeGuardTypeOf(Operator const*) WARN_UNUSED_RESULT; | 286 Type* TypeGuardTypeOf(Operator const*) WARN_UNUSED_RESULT; |
287 | 287 |
288 int OsrValueIndexOf(Operator const*); | 288 int OsrValueIndexOf(Operator const*); |
289 | 289 |
290 enum class OsrGuardType { kUninitialized, kSignedSmall, kAny }; | |
291 size_t hash_value(OsrGuardType type); | |
292 std::ostream& operator<<(std::ostream&, OsrGuardType); | |
293 OsrGuardType OsrGuardTypeOf(Operator const*); | |
294 | |
295 SparseInputMask SparseInputMaskOf(Operator const*); | 290 SparseInputMask SparseInputMaskOf(Operator const*); |
296 | 291 |
297 ZoneVector<MachineType> const* MachineTypesOf(Operator const*) | 292 ZoneVector<MachineType> const* MachineTypesOf(Operator const*) |
298 WARN_UNUSED_RESULT; | 293 WARN_UNUSED_RESULT; |
299 | 294 |
300 // The ArgumentsElementsState and ArgumentsLengthState can either describe an | 295 // The ArgumentsElementsState and ArgumentsLengthState can either describe an |
301 // unmapped arguments backing store or the backing store of the rest parameters. | 296 // unmapped arguments backing store or the backing store of the rest parameters. |
302 // IsRestOf(op) is true in the second case. | 297 // IsRestOf(op) is true in the second case. |
303 bool IsRestOf(Operator const*); | 298 bool IsRestOf(Operator const*); |
304 | 299 |
(...skipping 25 matching lines...) Expand all Loading... |
330 const Operator* Terminate(); | 325 const Operator* Terminate(); |
331 | 326 |
332 const Operator* Start(int value_output_count); | 327 const Operator* Start(int value_output_count); |
333 const Operator* Loop(int control_input_count); | 328 const Operator* Loop(int control_input_count); |
334 const Operator* Merge(int control_input_count); | 329 const Operator* Merge(int control_input_count); |
335 const Operator* Parameter(int index, const char* debug_name = nullptr); | 330 const Operator* Parameter(int index, const char* debug_name = nullptr); |
336 | 331 |
337 const Operator* OsrNormalEntry(); | 332 const Operator* OsrNormalEntry(); |
338 const Operator* OsrLoopEntry(); | 333 const Operator* OsrLoopEntry(); |
339 const Operator* OsrValue(int index); | 334 const Operator* OsrValue(int index); |
340 const Operator* OsrGuard(OsrGuardType type); | |
341 | 335 |
342 const Operator* Int32Constant(int32_t); | 336 const Operator* Int32Constant(int32_t); |
343 const Operator* Int64Constant(int64_t); | 337 const Operator* Int64Constant(int64_t); |
344 const Operator* Float32Constant(volatile float); | 338 const Operator* Float32Constant(volatile float); |
345 const Operator* Float64Constant(volatile double); | 339 const Operator* Float64Constant(volatile double); |
346 const Operator* ExternalConstant(const ExternalReference&); | 340 const Operator* ExternalConstant(const ExternalReference&); |
347 const Operator* NumberConstant(volatile double); | 341 const Operator* NumberConstant(volatile double); |
348 const Operator* PointerConstant(intptr_t); | 342 const Operator* PointerConstant(intptr_t); |
349 const Operator* HeapConstant(const Handle<HeapObject>&); | 343 const Operator* HeapConstant(const Handle<HeapObject>&); |
350 | 344 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 Zone* const zone_; | 390 Zone* const zone_; |
397 | 391 |
398 DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder); | 392 DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder); |
399 }; | 393 }; |
400 | 394 |
401 } // namespace compiler | 395 } // namespace compiler |
402 } // namespace internal | 396 } // namespace internal |
403 } // namespace v8 | 397 } // namespace v8 |
404 | 398 |
405 #endif // V8_COMPILER_COMMON_OPERATOR_H_ | 399 #endif // V8_COMPILER_COMMON_OPERATOR_H_ |
OLD | NEW |