src: move TickInfo out of Environment · nodejs/node@bc69a81 · GitHub
Skip to content

Commit bc69a81

Browse files
joyeecheungtargos
authored andcommitted
src: move TickInfo out of Environment
PR-URL: #26824 Refs: #26776 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 495e5e9 commit bc69a81

3 files changed

Lines changed: 24 additions & 28 deletions

File tree

src/api/callback.cc

Lines changed: 1 addition & 1 deletion

src/env-inl.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -268,18 +268,18 @@ inline void ImmediateInfo::ref_count_dec(uint32_t decrement) {
268268
fields_[kRefCount] -= decrement;
269269
}
270270

271-
inline Environment::TickInfo::TickInfo(v8::Isolate* isolate)
271+
inline TickInfo::TickInfo(v8::Isolate* isolate)
272272
: fields_(isolate, kFieldsCount) {}
273273

274-
inline AliasedBuffer<uint8_t, v8::Uint8Array>& Environment::TickInfo::fields() {
274+
inline AliasedBuffer<uint8_t, v8::Uint8Array>& TickInfo::fields() {
275275
return fields_;
276276
}
277277

278-
inline bool Environment::TickInfo::has_tick_scheduled() const {
278+
inline bool TickInfo::has_tick_scheduled() const {
279279
return fields_[kHasTickScheduled] == 1;
280280
}
281281

282-
inline bool Environment::TickInfo::has_rejection_to_warn() const {
282+
inline bool TickInfo::has_rejection_to_warn() const {
283283
return fields_[kHasRejectionToWarn] == 1;
284284
}
285285

@@ -439,7 +439,7 @@ inline ImmediateInfo* Environment::immediate_info() {
439439
return &immediate_info_;
440440
}
441441

442-
inline Environment::TickInfo* Environment::tick_info() {
442+
inline TickInfo* Environment::tick_info() {
443443
return &tick_info_;
444444
}
445445

src/env.h

Lines changed: 18 additions & 22 deletions

0 commit comments

Comments
 (0)