| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d56079a commit dd5da30
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -36,7 +36,7 @@ | |||
| 36 | 36 | ||
| 37 | 37 | # Reset this number to 0 on major V8 upgrades. | |
| 38 | 38 | # Increment by one for each non-official patch applied to deps/v8. | |
| 39 | - 'v8_embedder_string': '-node.27', | ||
| 39 | + 'v8_embedder_string': '-node.28', | ||
| 40 | 40 | ||
| 41 | 41 | ##### V8 defaults for Node.js ##### | |
| 42 | 42 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -36,8 +36,9 @@ ACCESSORS(Module, exception, Object, kExceptionOffset) | |||
| 36 | 36 | SMI_ACCESSORS(Module, status, kStatusOffset) | |
| 37 | 37 | SMI_ACCESSORS(Module, hash, kHashOffset) | |
| 38 | 38 | ||
| 39 | - BOOL_ACCESSORS(SourceTextModule, flags, async, kAsyncBit) | ||
| 40 | - BOOL_ACCESSORS(SourceTextModule, flags, async_evaluating, kAsyncEvaluatingBit) | ||
| 39 | + BOOL_ACCESSORS(SourceTextModule, flags, async, AsyncBit::kShift) | ||
| 40 | + BOOL_ACCESSORS(SourceTextModule, flags, async_evaluating, | ||
| 41 | + AsyncEvaluatingBit::kShift) | ||
| 41 | 42 | ACCESSORS(SourceTextModule, async_parent_modules, ArrayList, | |
| 42 | 43 | kAsyncParentModulesOffset) | |
| 43 | 44 | ACCESSORS(SourceTextModule, top_level_capability, HeapObject, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,6 +7,7 @@ | |||
| 7 | 7 | ||
| 8 | 8 | #include "src/objects/module.h" | |
| 9 | 9 | #include "src/objects/promise.h" | |
| 10 | + #include "torque-generated/bit-fields-tq.h" | ||
| 10 | 11 | ||
| 11 | 12 | // Has to be the last include (doesn't have include guards): | |
| 12 | 13 | #include "src/objects/object-macros.h" | |
@@ -94,8 +95,7 @@ class SourceTextModule | |||
| 94 | 95 | inline void DecrementPendingAsyncDependencies(); | |
| 95 | 96 | ||
| 96 | 97 | // Bits for flags. | |
| 97 | - static const int kAsyncBit = 0; | ||
| 98 | - static const int kAsyncEvaluatingBit = 1; | ||
| 98 | + DEFINE_TORQUE_GENERATED_SOURCE_TEXT_MODULE_FLAGS() | ||
| 99 | 99 | ||
| 100 | 100 | // async_evaluating, top_level_capability, pending_async_dependencies, and | |
| 101 | 101 | // async_parent_modules are used exclusively during evaluation of async | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,6 +4,11 @@ | |||
| 4 | 4 | ||
| 5 | 5 | type SourceTextModuleInfo extends FixedArray; | |
| 6 | 6 | ||
| 7 | + bitfield struct SourceTextModuleFlags extends uint31 { | ||
| 8 | + async: bool: 1 bit; | ||
| 9 | + async_evaluating: bool: 1 bit; | ||
| 10 | + } | ||
| 11 | + | ||
| 7 | 12 | @generateCppClass | |
| 8 | 13 | extern class SourceTextModule extends Module { | |
| 9 | 14 | // The code representing this module, or an abstraction thereof. | |
@@ -44,7 +49,7 @@ extern class SourceTextModule extends Module { | |||
| 44 | 49 | // The number of currently evaluating async dependencies of this module. | |
| 45 | 50 | pending_async_dependencies: Smi; | |
| 46 | 51 | ||
| 47 | - flags: Smi; | ||
| 52 | + flags: SmiTagged<SourceTextModuleFlags>; | ||
| 48 | 53 | } | |
| 49 | 54 | ||
| 50 | 55 | @generateCppClass | |
| Back | FazBrowse Home | New Git URL |
0 commit comments