mirror of
https://github.com/denoland/rusty_v8.git
synced 2024-11-24 15:19:31 -05:00
disable pointer compression (#1593)
This commit is contained in:
parent
df6b8092cc
commit
48800f8216
2 changed files with 2 additions and 8 deletions
2
.gn
2
.gn
|
@ -38,6 +38,8 @@ default_args = {
|
|||
v8_use_external_startup_data = false
|
||||
v8_use_snapshot = true
|
||||
|
||||
v8_enable_pointer_compression = false
|
||||
|
||||
# This flag speeds up the performance of fork/execve on Linux systems for
|
||||
# embedders which use it (like Node.js). It works by marking the pages that
|
||||
# V8 allocates as MADV_DONTFORK. Without MADV_DONTFORK, the Linux kernel
|
||||
|
|
|
@ -3367,14 +3367,6 @@ void v8__HeapProfiler__TakeHeapSnapshot(v8::Isolate* isolate,
|
|||
const_cast<v8::HeapSnapshot*>(snapshot)->Delete();
|
||||
}
|
||||
|
||||
// This is necessary for v8__internal__GetIsolateFromHeapObject() to be
|
||||
// reliable enough for our purposes.
|
||||
#if UINTPTR_MAX == 0xffffffffffffffff && \
|
||||
!(defined V8_SHARED_RO_HEAP or defined V8_COMPRESS_POINTERS)
|
||||
#error V8 must be built with either the 'v8_enable_pointer_compression' or \
|
||||
'v8_enable_shared_ro_heap' feature enabled.
|
||||
#endif
|
||||
|
||||
v8::Isolate* v8__internal__GetIsolateFromHeapObject(const v8::Data& data) {
|
||||
namespace i = v8::internal;
|
||||
i::Tagged<i::Object> object(reinterpret_cast<const i::Address&>(data));
|
||||
|
|
Loading…
Reference in a new issue