| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 8471747 commit aa1a3ea
11 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3097,9 +3097,12 @@ class V8_EXPORT Object : public Value { | |||
| 3097 | 3097 | // | |
| 3098 | 3098 | // Note also that this only works for named properties. | |
| 3099 | 3099 | V8_DEPRECATED("Use CreateDataProperty / DefineOwnProperty", | |
| 3100 | - Maybe<bool> ForceSet(Local<Context> context, Local<Value> key, | ||
| 3101 | - Local<Value> value, | ||
| 3102 | - PropertyAttribute attribs = None)); | ||
| 3100 | + bool ForceSet(Local<Value> key, Local<Value> value, | ||
| 3101 | + PropertyAttribute attribs = None)); | ||
| 3102 | + V8_DEPRECATE_SOON("Use CreateDataProperty / DefineOwnProperty", | ||
| 3103 | + Maybe<bool> ForceSet(Local<Context> context, | ||
| 3104 | + Local<Value> key, Local<Value> value, | ||
| 3105 | + PropertyAttribute attribs = None)); | ||
| 3103 | 3106 | ||
| 3104 | 3107 | V8_DEPRECATE_SOON("Use maybe version", Local<Value> Get(Local<Value> key)); | |
| 3105 | 3108 | V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context, | |
@@ -4292,28 +4295,14 @@ class V8_EXPORT ArrayBuffer : public Object { | |||
| 4292 | 4295 | */ | |
| 4293 | 4296 | class V8_EXPORT Contents { // NOLINT | |
| 4294 | 4297 | public: | |
| 4295 | - Contents() | ||
| 4296 | - : data_(nullptr), | ||
| 4297 | - byte_length_(0), | ||
| 4298 | - allocation_base_(nullptr), | ||
| 4299 | - allocation_length_(0), | ||
| 4300 | - allocation_mode_(Allocator::AllocationMode::kNormal) {} | ||
| 4301 | - | ||
| 4302 | - void* AllocationBase() const { return allocation_base_; } | ||
| 4303 | - size_t AllocationLength() const { return allocation_length_; } | ||
| 4304 | - Allocator::AllocationMode AllocationMode() const { | ||
| 4305 | - return allocation_mode_; | ||
| 4306 | - } | ||
| 4298 | + Contents() : data_(NULL), byte_length_(0) {} | ||
| 4307 | 4299 | ||
| 4308 | 4300 | void* Data() const { return data_; } | |
| 4309 | 4301 | size_t ByteLength() const { return byte_length_; } | |
| 4310 | 4302 | ||
| 4311 | 4303 | private: | |
| 4312 | 4304 | void* data_; | |
| 4313 | 4305 | size_t byte_length_; | |
| 4314 | - void* allocation_base_; | ||
| 4315 | - size_t allocation_length_; | ||
| 4316 | - Allocator::AllocationMode allocation_mode_; | ||
| 4317 | 4306 | ||
| 4318 | 4307 | friend class ArrayBuffer; | |
| 4319 | 4308 | }; | |
@@ -4662,28 +4651,14 @@ class V8_EXPORT SharedArrayBuffer : public Object { | |||
| 4662 | 4651 | */ | |
| 4663 | 4652 | class V8_EXPORT Contents { // NOLINT | |
| 4664 | 4653 | public: | |
| 4665 | - Contents() | ||
| 4666 | - : data_(nullptr), | ||
| 4667 | - byte_length_(0), | ||
| 4668 | - allocation_base_(nullptr), | ||
| 4669 | - allocation_length_(0), | ||
| 4670 | - allocation_mode_(ArrayBuffer::Allocator::AllocationMode::kNormal) {} | ||
| 4671 | - | ||
| 4672 | - void* AllocationBase() const { return allocation_base_; } | ||
| 4673 | - size_t AllocationLength() const { return allocation_length_; } | ||
| 4674 | - ArrayBuffer::Allocator::AllocationMode AllocationMode() const { | ||
| 4675 | - return allocation_mode_; | ||
| 4676 | - } | ||
| 4654 | + Contents() : data_(NULL), byte_length_(0) {} | ||
| 4677 | 4655 | ||
| 4678 | 4656 | void* Data() const { return data_; } | |
| 4679 | 4657 | size_t ByteLength() const { return byte_length_; } | |
| 4680 | 4658 | ||
| 4681 | 4659 | private: | |
| 4682 | 4660 | void* data_; | |
| 4683 | 4661 | size_t byte_length_; | |
| 4684 | - void* allocation_base_; | ||
| 4685 | - size_t allocation_length_; | ||
| 4686 | - ArrayBuffer::Allocator::AllocationMode allocation_mode_; | ||
| 4687 | 4662 | ||
| 4688 | 4663 | friend class SharedArrayBuffer; | |
| 4689 | 4664 | }; | |
@@ -4930,8 +4905,8 @@ class V8_EXPORT External : public Value { | |||
| 4930 | 4905 | F(ArrayProto_forEach, array_for_each_iterator) \ | |
| 4931 | 4906 | F(ArrayProto_keys, array_keys_iterator) \ | |
| 4932 | 4907 | F(ArrayProto_values, array_values_iterator) \ | |
| 4908 | + F(IteratorPrototype, initial_iterator_prototype) \ | ||
| 4933 | 4909 | F(ErrorPrototype, initial_error_prototype) \ | |
| 4934 | - F(IteratorPrototype, initial_iterator_prototype) | ||
| 4935 | 4910 | ||
| 4936 | 4911 | enum Intrinsic { | |
| 4937 | 4912 | #define V8_DECL_INTRINSIC(name, iname) k##name, | |
@@ -5995,8 +5970,6 @@ V8_INLINE Local<Boolean> False(Isolate* isolate); | |||
| 5995 | 5970 | * | |
| 5996 | 5971 | * The arguments for set_max_semi_space_size, set_max_old_space_size, | |
| 5997 | 5972 | * set_max_executable_size, set_code_range_size specify limits in MB. | |
| 5998 | - * | ||
| 5999 | - * The argument for set_max_semi_space_size_in_kb is in KB. | ||
| 6000 | 5973 | */ | |
| 6001 | 5974 | class V8_EXPORT ResourceConstraints { | |
| 6002 | 5975 | public: | |
@@ -6014,28 +5987,10 @@ class V8_EXPORT ResourceConstraints { | |||
| 6014 | 5987 | void ConfigureDefaults(uint64_t physical_memory, | |
| 6015 | 5988 | uint64_t virtual_memory_limit); | |
| 6016 | 5989 | ||
| 6017 | - // Returns the max semi-space size in MB. | ||
| 6018 | - V8_DEPRECATE_SOON("Use max_semi_space_size_in_kb()", | ||
| 6019 | - int max_semi_space_size()) { | ||
| 6020 | - return static_cast<int>(max_semi_space_size_in_kb_ / 1024); | ||
| 6021 | - } | ||
| 6022 | - | ||
| 6023 | - // Sets the max semi-space size in MB. | ||
| 6024 | - V8_DEPRECATE_SOON("Use set_max_semi_space_size_in_kb(size_t limit_in_kb)", | ||
| 6025 | - void set_max_semi_space_size(int limit_in_mb)) { | ||
| 6026 | - max_semi_space_size_in_kb_ = limit_in_mb * 1024; | ||
| 5990 | + int max_semi_space_size() const { return max_semi_space_size_; } | ||
| 5991 | + void set_max_semi_space_size(int limit_in_mb) { | ||
| 5992 | + max_semi_space_size_ = limit_in_mb; | ||
| 6027 | 5993 | } | |
| 6028 | - | ||
| 6029 | - // Returns the max semi-space size in KB. | ||
| 6030 | - size_t max_semi_space_size_in_kb() const { | ||
| 6031 | - return max_semi_space_size_in_kb_; | ||
| 6032 | - } | ||
| 6033 | - | ||
| 6034 | - // Sets the max semi-space size in KB. | ||
| 6035 | - void set_max_semi_space_size_in_kb(size_t limit_in_kb) { | ||
| 6036 | - max_semi_space_size_in_kb_ = limit_in_kb; | ||
| 6037 | - } | ||
| 6038 | - | ||
| 6039 | 5994 | int max_old_space_size() const { return max_old_space_size_; } | |
| 6040 | 5995 | void set_max_old_space_size(int limit_in_mb) { | |
| 6041 | 5996 | max_old_space_size_ = limit_in_mb; | |
@@ -6061,10 +6016,7 @@ class V8_EXPORT ResourceConstraints { | |||
| 6061 | 6016 | } | |
| 6062 | 6017 | ||
| 6063 | 6018 | private: | |
| 6064 | - // max_semi_space_size_ is in KB | ||
| 6065 | - size_t max_semi_space_size_in_kb_; | ||
| 6066 | - | ||
| 6067 | - // The remaining limits are in MB | ||
| 6019 | + int max_semi_space_size_; | ||
| 6068 | 6020 | int max_old_space_size_; | |
| 6069 | 6021 | int max_executable_size_; | |
| 6070 | 6022 | uint32_t* stack_limit_; | |
@@ -6293,8 +6245,22 @@ typedef void (*FailedAccessCheckCallback)(Local<Object> target, | |||
| 6293 | 6245 | */ | |
| 6294 | 6246 | typedef bool (*DeprecatedAllowCodeGenerationFromStringsCallback)( | |
| 6295 | 6247 | Local<Context> context); | |
| 6296 | - typedef bool (*AllowCodeGenerationFromStringsCallback)(Local<Context> context, | ||
| 6297 | - Local<String> source); | ||
| 6248 | + // The naming of this alias is for **Node v8.x releases only** | ||
| 6249 | + // plain V8 >= 6.1 just calls it AllowCodeGenerationFromStringsCallback | ||
| 6250 | + typedef bool (*FreshNewAllowCodeGenerationFromStringsCallback)( | ||
| 6251 | + Local<Context> context, Local<String> source); | ||
| 6252 | + | ||
| 6253 | + // a) no addon uses this anyway | ||
| 6254 | + // b) this is sufficient because c++ type mangling takes care of resolving | ||
| 6255 | + // the typedefs | ||
| 6256 | + // c) doing it this way allows people to use the Fresh New variant | ||
| 6257 | + #ifdef USING_V8_SHARED | ||
| 6258 | + typedef DeprecatedAllowCodeGenerationFromStringsCallback | ||
| 6259 | + AllowCodeGenerationFromStringsCallback; | ||
| 6260 | + #else | ||
| 6261 | + typedef FreshNewAllowCodeGenerationFromStringsCallback | ||
| 6262 | + AllowCodeGenerationFromStringsCallback; | ||
| 6263 | + #endif | ||
| 6298 | 6264 | ||
| 6299 | 6265 | // --- WebAssembly compilation callbacks --- | |
| 6300 | 6266 | typedef bool (*ExtensionCallback)(const FunctionCallbackInfo<Value>&); | |
@@ -7570,7 +7536,7 @@ class V8_EXPORT Isolate { | |||
| 7570 | 7536 | * strings should be allowed. | |
| 7571 | 7537 | */ | |
| 7572 | 7538 | void SetAllowCodeGenerationFromStringsCallback( | |
| 7573 | - AllowCodeGenerationFromStringsCallback callback); | ||
| 7539 | + FreshNewAllowCodeGenerationFromStringsCallback callback); | ||
| 7574 | 7540 | V8_DEPRECATED("Use callback with source parameter.", | |
| 7575 | 7541 | void SetAllowCodeGenerationFromStringsCallback( | |
| 7576 | 7542 | DeprecatedAllowCodeGenerationFromStringsCallback callback)); | |
@@ -7691,7 +7657,6 @@ class V8_EXPORT Isolate { | |||
| 7691 | 7657 | friend class PersistentValueMapBase; | |
| 7692 | 7658 | ||
| 7693 | 7659 | void ReportExternalAllocationLimitReached(); | |
| 7694 | - void CheckMemoryPressure(); | ||
| 7695 | 7660 | }; | |
| 7696 | 7661 | ||
| 7697 | 7662 | class V8_EXPORT StartupData { | |
@@ -8052,7 +8017,7 @@ class V8_EXPORT V8 { | |||
| 8052 | 8017 | */ | |
| 8053 | 8018 | static void ShutdownPlatform(); | |
| 8054 | 8019 | ||
| 8055 | - #if V8_OS_POSIX | ||
| 8020 | + #if V8_OS_LINUX && V8_TARGET_ARCH_X64 && !V8_OS_ANDROID | ||
| 8056 | 8021 | /** | |
| 8057 | 8022 | * Give the V8 signal handler a chance to handle a fault. | |
| 8058 | 8023 | * | |
@@ -8073,7 +8038,7 @@ class V8_EXPORT V8 { | |||
| 8073 | 8038 | * points to a ucontext_t structure. | |
| 8074 | 8039 | */ | |
| 8075 | 8040 | static bool TryHandleSignal(int signal_number, void* info, void* context); | |
| 8076 | - #endif // V8_OS_POSIX | ||
| 8041 | + #endif // V8_OS_LINUX && V8_TARGET_ARCH_X64 && !V8_OS_ANDROID | ||
| 8077 | 8042 | ||
| 8078 | 8043 | /** | |
| 8079 | 8044 | * Enable the default signal handler rather than using one provided by the | |
@@ -8941,8 +8906,6 @@ class Internals { | |||
| 8941 | 8906 | static const int kExternalMemoryOffset = 4 * kApiPointerSize; | |
| 8942 | 8907 | static const int kExternalMemoryLimitOffset = | |
| 8943 | 8908 | kExternalMemoryOffset + kApiInt64Size; | |
| 8944 | - static const int kExternalMemoryAtLastMarkCompactOffset = | ||
| 8945 | - kExternalMemoryLimitOffset + kApiInt64Size; | ||
| 8946 | 8909 | static const int kIsolateRootsOffset = kExternalMemoryLimitOffset + | |
| 8947 | 8910 | kApiInt64Size + kApiInt64Size + | |
| 8948 | 8911 | kApiPointerSize + kApiPointerSize; | |
@@ -10161,32 +10124,13 @@ uint32_t Isolate::GetNumberOfDataSlots() { | |||
| 10161 | 10124 | int64_t Isolate::AdjustAmountOfExternalAllocatedMemory( | |
| 10162 | 10125 | int64_t change_in_bytes) { | |
| 10163 | 10126 | typedef internal::Internals I; | |
| 10164 | - const int64_t kMemoryReducerActivationLimit = 32 * 1024 * 1024; | ||
| 10165 | 10127 | int64_t* external_memory = reinterpret_cast<int64_t*>( | |
| 10166 | 10128 | reinterpret_cast<uint8_t*>(this) + I::kExternalMemoryOffset); | |
| 10167 | - int64_t* external_memory_limit = reinterpret_cast<int64_t*>( | ||
| 10129 | + const int64_t external_memory_limit = *reinterpret_cast<int64_t*>( | ||
| 10168 | 10130 | reinterpret_cast<uint8_t*>(this) + I::kExternalMemoryLimitOffset); | |
| 10169 | - int64_t* external_memory_at_last_mc = | ||
| 10170 | - reinterpret_cast<int64_t*>(reinterpret_cast<uint8_t*>(this) + | ||
| 10171 | - I::kExternalMemoryAtLastMarkCompactOffset); | ||
| 10172 | 10131 | const int64_t amount = *external_memory + change_in_bytes; | |
| 10173 | - | ||
| 10174 | 10132 | *external_memory = amount; | |
| 10175 | - | ||
| 10176 | - int64_t allocation_diff_since_last_mc = | ||
| 10177 | - *external_memory_at_last_mc - *external_memory; | ||
| 10178 | - allocation_diff_since_last_mc = allocation_diff_since_last_mc < 0 | ||
| 10179 | - ? -allocation_diff_since_last_mc | ||
| 10180 | - : allocation_diff_since_last_mc; | ||
| 10181 | - if (allocation_diff_since_last_mc > kMemoryReducerActivationLimit) { | ||
| 10182 | - CheckMemoryPressure(); | ||
| 10183 | - } | ||
| 10184 | - | ||
| 10185 | - if (change_in_bytes < 0) { | ||
| 10186 | - *external_memory_limit += change_in_bytes; | ||
| 10187 | - } | ||
| 10188 | - | ||
| 10189 | - if (change_in_bytes > 0 && amount > *external_memory_limit) { | ||
| 10133 | + if (change_in_bytes > 0 && amount > external_memory_limit) { | ||
| 10190 | 10134 | ReportExternalAllocationLimitReached(); | |
| 10191 | 10135 | } | |
| 10192 | 10136 | return *external_memory; | |
@@ -10220,7 +10164,8 @@ void V8::SetAllowCodeGenerationFromStringsCallback( | |||
| 10220 | 10164 | DeprecatedAllowCodeGenerationFromStringsCallback callback) { | |
| 10221 | 10165 | Isolate* isolate = Isolate::GetCurrent(); | |
| 10222 | 10166 | isolate->SetAllowCodeGenerationFromStringsCallback( | |
| 10223 | - reinterpret_cast<AllowCodeGenerationFromStringsCallback>(callback)); | ||
| 10167 | + reinterpret_cast<FreshNewAllowCodeGenerationFromStringsCallback>( | ||
| 10168 | + callback)); | ||
| 10224 | 10169 | } | |
| 10225 | 10170 | ||
| 10226 | 10171 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -878,16 +878,16 @@ Extension::Extension(const char* name, | |||
| 878 | 878 | } | |
| 879 | 879 | ||
| 880 | 880 | ResourceConstraints::ResourceConstraints() | |
| 881 | - : max_semi_space_size_in_kb_(0), | ||
| 881 | + : max_semi_space_size_(0), | ||
| 882 | 882 | max_old_space_size_(0), | |
| 883 | 883 | stack_limit_(NULL), | |
| 884 | 884 | code_range_size_(0), | |
| 885 | 885 | max_zone_pool_size_(0) {} | |
| 886 | 886 | ||
| 887 | 887 | void ResourceConstraints::ConfigureDefaults(uint64_t physical_memory, | |
| 888 | 888 | uint64_t virtual_memory_limit) { | |
| 889 | - set_max_semi_space_size_in_kb( | ||
| 890 | - i::Heap::ComputeMaxSemiSpaceSize(physical_memory)); | ||
| 889 | + set_max_semi_space_size( | ||
| 890 | + static_cast<int>(i::Heap::ComputeMaxSemiSpaceSize(physical_memory))); | ||
| 891 | 891 | set_max_old_space_size( | |
| 892 | 892 | static_cast<int>(i::Heap::ComputeMaxOldGenerationSize(physical_memory))); | |
| 893 | 893 | set_max_zone_pool_size(i::AccountingAllocator::kMaxPoolSize); | |
@@ -903,7 +903,7 @@ void ResourceConstraints::ConfigureDefaults(uint64_t physical_memory, | |||
| 903 | 903 | ||
| 904 | 904 | void SetResourceConstraints(i::Isolate* isolate, | |
| 905 | 905 | const ResourceConstraints& constraints) { | |
| 906 | - size_t semi_space_size = constraints.max_semi_space_size_in_kb(); | ||
| 906 | + int semi_space_size = constraints.max_semi_space_size(); | ||
| 907 | 907 | int old_space_size = constraints.max_old_space_size(); | |
| 908 | 908 | size_t code_range_size = constraints.code_range_size(); | |
| 909 | 909 | size_t max_pool_size = constraints.max_zone_pool_size(); | |
@@ -4505,6 +4505,24 @@ Maybe<bool> v8::Object::ForceSet(v8::Local<v8::Context> context, | |||
| 4505 | 4505 | } | |
| 4506 | 4506 | ||
| 4507 | 4507 | ||
| 4508 | + bool v8::Object::ForceSet(v8::Local<Value> key, v8::Local<Value> value, | ||
| 4509 | + v8::PropertyAttribute attribs) { | ||
| 4510 | + i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); | ||
| 4511 | + ENTER_V8_HELPER_DO_NOT_USE(isolate, Local<Context>(), Object, ForceSet, | ||
| 4512 | + false, i::HandleScope, false); | ||
| 4513 | + i::Handle<i::JSObject> self = | ||
| 4514 | + i::Handle<i::JSObject>::cast(Utils::OpenHandle(this)); | ||
| 4515 | + i::Handle<i::Object> key_obj = Utils::OpenHandle(*key); | ||
| 4516 | + i::Handle<i::Object> value_obj = Utils::OpenHandle(*value); | ||
| 4517 | + has_pending_exception = | ||
| 4518 | + DefineObjectProperty(self, key_obj, value_obj, | ||
| 4519 | + static_cast<i::PropertyAttributes>(attribs)) | ||
| 4520 | + .is_null(); | ||
| 4521 | + EXCEPTION_BAILOUT_CHECK_SCOPED_DO_NOT_USE(isolate, false); | ||
| 4522 | + return true; | ||
| 4523 | + } | ||
| 4524 | + | ||
| 4525 | + | ||
| 4508 | 4526 | Maybe<bool> v8::Object::SetPrivate(Local<Context> context, Local<Private> key, | |
| 4509 | 4527 | Local<Value> value) { | |
| 4510 | 4528 | auto isolate = reinterpret_cast<i::Isolate*>(context->GetIsolate()); | |
@@ -6331,16 +6349,11 @@ bool v8::V8::Initialize() { | |||
| 6331 | 6349 | return true; | |
| 6332 | 6350 | } | |
| 6333 | 6351 | ||
| 6334 | - #if V8_OS_POSIX | ||
| 6335 | - bool V8::TryHandleSignal(int signum, void* info, void* context) { | ||
| 6336 | 6352 | #if V8_OS_LINUX && V8_TARGET_ARCH_X64 && !V8_OS_ANDROID | |
| 6337 | - return v8::internal::trap_handler::TryHandleSignal( | ||
| 6338 | - signum, static_cast<siginfo_t*>(info), static_cast<ucontext_t*>(context)); | ||
| 6339 | - #else // V8_OS_LINUX && V8_TARGET_ARCH_X64 && !V8_OS_ANDROID | ||
| 6353 | + bool V8::TryHandleSignal(int signum, void* info, void* context) { | ||
| 6340 | 6354 | return false; | |
| 6341 | - #endif | ||
| 6342 | 6355 | } | |
| 6343 | - #endif | ||
| 6356 | + #endif // V8_OS_LINUX && V8_TARGET_ARCH_X64 && !V8_OS_ANDROID | ||
| 6344 | 6357 | ||
| 6345 | 6358 | bool V8::RegisterDefaultSignalHandler() { | |
| 6346 | 6359 | return v8::internal::trap_handler::RegisterDefaultSignalHandler(); | |
@@ -7882,11 +7895,6 @@ v8::ArrayBuffer::Contents v8::ArrayBuffer::GetContents() { | |||
| 7882 | 7895 | i::Handle<i::JSArrayBuffer> self = Utils::OpenHandle(this); | |
| 7883 | 7896 | size_t byte_length = static_cast<size_t>(self->byte_length()->Number()); | |
| 7884 | 7897 | Contents contents; | |
| 7885 | - contents.allocation_base_ = self->allocation_base(); | ||
| 7886 | - contents.allocation_length_ = self->allocation_length(); | ||
| 7887 | - contents.allocation_mode_ = self->has_guard_region() | ||
| 7888 | - ? Allocator::AllocationMode::kReservation | ||
| 7889 | - : Allocator::AllocationMode::kNormal; | ||
| 7890 | 7898 | contents.data_ = self->backing_store(); | |
| 7891 | 7899 | contents.byte_length_ = byte_length; | |
| 7892 | 7900 | return contents; | |
@@ -8095,12 +8103,6 @@ v8::SharedArrayBuffer::Contents v8::SharedArrayBuffer::GetContents() { | |||
| 8095 | 8103 | Contents contents; | |
| 8096 | 8104 | contents.data_ = self->backing_store(); | |
| 8097 | 8105 | contents.byte_length_ = byte_length; | |
| 8098 | - // SharedArrayBuffers never have guard regions, so their allocation and data | ||
| 8099 | - // are equivalent. | ||
| 8100 | - contents.allocation_base_ = self->backing_store(); | ||
| 8101 | - contents.allocation_length_ = byte_length; | ||
| 8102 | - contents.allocation_mode_ = | ||
| 8103 | - ArrayBufferAllocator::Allocator::AllocationMode::kNormal; | ||
| 8104 | 8106 | return contents; | |
| 8105 | 8107 | } | |
| 8106 | 8108 | ||
@@ -8257,11 +8259,6 @@ void Isolate::ReportExternalAllocationLimitReached() { | |||
| 8257 | 8259 | heap->ReportExternalMemoryPressure(); | |
| 8258 | 8260 | } | |
| 8259 | 8261 | ||
| 8260 | - void Isolate::CheckMemoryPressure() { | ||
| 8261 | - i::Heap* heap = reinterpret_cast<i::Isolate*>(this)->heap(); | ||
| 8262 | - if (heap->gc_state() != i::Heap::NOT_IN_GC) return; | ||
| 8263 | - heap->CheckMemoryPressure(); | ||
| 8264 | - } | ||
| 8265 | 8262 | ||
| 8266 | 8263 | HeapProfiler* Isolate::GetHeapProfiler() { | |
| 8267 | 8264 | i::HeapProfiler* heap_profiler = | |
| Back | FazBrowse Home | New Git URL |
0 commit comments