diff options
Diffstat (limited to 'deps/v8/src/compiler/js-operator.h')
-rw-r--r-- | deps/v8/src/compiler/js-operator.h | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/deps/v8/src/compiler/js-operator.h b/deps/v8/src/compiler/js-operator.h index 773f5ddcbb..282c34ec93 100644 --- a/deps/v8/src/compiler/js-operator.h +++ b/deps/v8/src/compiler/js-operator.h @@ -85,8 +85,8 @@ class ConstructForwardVarargsParameters final { return p.bit_field_; } - typedef BitField<size_t, 0, 16> ArityField; - typedef BitField<uint32_t, 16, 16> StartIndexField; + using ArityField = BitField<size_t, 0, 16>; + using StartIndexField = BitField<uint32_t, 16, 16>; uint32_t const bit_field_; }; @@ -147,8 +147,8 @@ class CallForwardVarargsParameters final { return p.bit_field_; } - typedef BitField<size_t, 0, 15> ArityField; - typedef BitField<uint32_t, 15, 15> StartIndexField; + using ArityField = BitField<size_t, 0, 15>; + using StartIndexField = BitField<uint32_t, 15, 15>; uint32_t const bit_field_; }; @@ -195,9 +195,9 @@ class CallParameters final { return base::hash_combine(p.bit_field_, p.frequency_, p.feedback_); } - typedef BitField<size_t, 0, 28> ArityField; - typedef BitField<SpeculationMode, 28, 1> SpeculationModeField; - typedef BitField<ConvertReceiverMode, 29, 2> ConvertReceiverModeField; + using ArityField = BitField<size_t, 0, 28>; + using SpeculationModeField = BitField<SpeculationMode, 28, 1>; + using ConvertReceiverModeField = BitField<ConvertReceiverMode, 29, 2>; uint32_t const bit_field_; CallFrequency const frequency_; @@ -446,7 +446,8 @@ bool operator!=(PropertyAccess const&, PropertyAccess const&); size_t hash_value(PropertyAccess const&); -std::ostream& operator<<(std::ostream&, PropertyAccess const&); +V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream&, + PropertyAccess const&); PropertyAccess const& PropertyAccessOf(const Operator* op); @@ -568,22 +569,22 @@ class CreateClosureParameters final { public: CreateClosureParameters(Handle<SharedFunctionInfo> shared_info, Handle<FeedbackCell> feedback_cell, Handle<Code> code, - PretenureFlag pretenure) + AllocationType allocation) : shared_info_(shared_info), feedback_cell_(feedback_cell), code_(code), - pretenure_(pretenure) {} + allocation_(allocation) {} Handle<SharedFunctionInfo> shared_info() const { return shared_info_; } Handle<FeedbackCell> feedback_cell() const { return feedback_cell_; } Handle<Code> code() const { return code_; } - PretenureFlag pretenure() const { return pretenure_; } + AllocationType allocation() const { return allocation_; } private: Handle<SharedFunctionInfo> const shared_info_; Handle<FeedbackCell> const feedback_cell_; Handle<Code> const code_; - PretenureFlag const pretenure_; + AllocationType const allocation_; }; bool operator==(CreateClosureParameters const&, CreateClosureParameters const&); @@ -722,10 +723,10 @@ class V8_EXPORT_PRIVATE JSOperatorBuilder final const Operator* CreateAsyncFunctionObject(int register_count); const Operator* CreateCollectionIterator(CollectionKind, IterationKind); const Operator* CreateBoundFunction(size_t arity, Handle<Map> map); - const Operator* CreateClosure(Handle<SharedFunctionInfo> shared_info, - Handle<FeedbackCell> feedback_cell, - Handle<Code> code, - PretenureFlag pretenure = NOT_TENURED); + const Operator* CreateClosure( + Handle<SharedFunctionInfo> shared_info, + Handle<FeedbackCell> feedback_cell, Handle<Code> code, + AllocationType allocation = AllocationType::kYoung); const Operator* CreateIterResultObject(); const Operator* CreateStringIterator(); const Operator* CreateKeyValueArray(); |