Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/common/ptr-compr-inl.h')
-rw-r--r--deps/v8/src/common/ptr-compr-inl.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/deps/v8/src/common/ptr-compr-inl.h b/deps/v8/src/common/ptr-compr-inl.h
index 75ea2e069fc..18989303198 100644
--- a/deps/v8/src/common/ptr-compr-inl.h
+++ b/deps/v8/src/common/ptr-compr-inl.h
@@ -8,6 +8,7 @@
#include "include/v8-internal.h"
#include "src/common/ptr-compr.h"
#include "src/execution/isolate.h"
+#include "src/execution/off-thread-isolate-inl.h"
namespace v8 {
namespace internal {
@@ -36,6 +37,15 @@ V8_INLINE Address GetIsolateRoot(const Isolate* isolate) {
return isolate_root;
}
+V8_INLINE Address GetIsolateRoot(const OffThreadIsolate* isolate) {
+ Address isolate_root = isolate->isolate_root();
+#ifdef V8_COMPRESS_POINTERS
+ isolate_root = reinterpret_cast<Address>(V8_ASSUME_ALIGNED(
+ reinterpret_cast<void*>(isolate_root), kPtrComprIsolateRootAlignment));
+#endif
+ return isolate_root;
+}
+
// Decompresses smi value.
V8_INLINE Address DecompressTaggedSigned(Tagged_t raw_value) {
// For runtime code the upper 32-bits of the Smi value do not matter.