Changeset 226725 in webkit for trunk/Source/JavaScriptCore/heap/SimpleMarkingConstraint.h
- Timestamp:
- Jan 10, 2018, 11:41:12 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/heap/SimpleMarkingConstraint.h
r226667 r226725 32 32 33 33 // This allows for an informal way to define constraints. Just pass a lambda to the constructor. The only 34 // downside is that this makes it hard for constraints to override any functions in MarkingConstraint35 // other than executeImpl. In those cases,just subclass MarkingConstraint.34 // downside is that this makes it hard for constraints to be stateful, which is necessary for them to be 35 // parallel. In those cases, it's easier to just subclass MarkingConstraint. 36 36 class SimpleMarkingConstraint : public MarkingConstraint { 37 37 public: … … 40 40 ::Function<void(SlotVisitor&)>, 41 41 ConstraintVolatility, 42 ConstraintConcurrency = ConstraintConcurrency::Concurrent, 43 ConstraintParallelism = ConstraintParallelism::Sequential); 44 45 SimpleMarkingConstraint( 46 CString abbreviatedName, CString name, 47 ::Function<void(SlotVisitor&)> func, 48 ConstraintVolatility volatility, 49 ConstraintParallelism parallelism) 50 : SimpleMarkingConstraint(abbreviatedName, name, WTFMove(func), volatility, ConstraintConcurrency::Concurrent, parallelism) 51 { 52 } 42 ConstraintConcurrency = ConstraintConcurrency::Concurrent); 53 43 54 44 JS_EXPORT_PRIVATE ~SimpleMarkingConstraint(); 55 45 56 46 private: 57 voidexecuteImpl(SlotVisitor&) override;47 ConstraintParallelism executeImpl(SlotVisitor&) override; 58 48 59 49 ::Function<void(SlotVisitor&)> m_executeFunction;
Note:
See TracChangeset
for help on using the changeset viewer.