Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(980)

Side by Side Diff: include/v8.h

Issue 2923563006: [heap] Increase memory reducer activation limit for external memory changes. (Closed)
Patch Set: [heap] Increase memory reducer activation limit for external memory changes. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** \mainpage V8 API Reference Guide 5 /** \mainpage V8 API Reference Guide
6 * 6 *
7 * V8 is Google's open source JavaScript engine. 7 * V8 is Google's open source JavaScript engine.
8 * 8 *
9 * This set of documents provides reference material generated from the 9 * This set of documents provides reference material generated from the
10 * V8 header file, include/v8.h. 10 * V8 header file, include/v8.h.
(...skipping 10023 matching lines...) Expand 10 before | Expand all | Expand 10 after
10034 10034
10035 10035
10036 uint32_t Isolate::GetNumberOfDataSlots() { 10036 uint32_t Isolate::GetNumberOfDataSlots() {
10037 typedef internal::Internals I; 10037 typedef internal::Internals I;
10038 return I::kNumIsolateDataSlots; 10038 return I::kNumIsolateDataSlots;
10039 } 10039 }
10040 10040
10041 10041
10042 int64_t Isolate::AdjustAmountOfExternalAllocatedMemory( 10042 int64_t Isolate::AdjustAmountOfExternalAllocatedMemory(
10043 int64_t change_in_bytes) { 10043 int64_t change_in_bytes) {
10044 const int64_t kMemoryReducerActivationLimit = 1024 * 1024;
10045 typedef internal::Internals I; 10044 typedef internal::Internals I;
10045 const int64_t kMemoryReducerActivationLimit = 32 * 1024 * 1024;
10046 int64_t* external_memory = reinterpret_cast<int64_t*>( 10046 int64_t* external_memory = reinterpret_cast<int64_t*>(
10047 reinterpret_cast<uint8_t*>(this) + I::kExternalMemoryOffset); 10047 reinterpret_cast<uint8_t*>(this) + I::kExternalMemoryOffset);
10048 int64_t* external_memory_limit = reinterpret_cast<int64_t*>( 10048 int64_t* external_memory_limit = reinterpret_cast<int64_t*>(
10049 reinterpret_cast<uint8_t*>(this) + I::kExternalMemoryLimitOffset); 10049 reinterpret_cast<uint8_t*>(this) + I::kExternalMemoryLimitOffset);
10050 int64_t* external_memory_at_last_mc = 10050 int64_t* external_memory_at_last_mc =
10051 reinterpret_cast<int64_t*>(reinterpret_cast<uint8_t*>(this) + 10051 reinterpret_cast<int64_t*>(reinterpret_cast<uint8_t*>(this) +
10052 I::kExternalMemoryAtLastMarkCompactOffset); 10052 I::kExternalMemoryAtLastMarkCompactOffset);
10053 const int64_t amount = *external_memory + change_in_bytes; 10053 const int64_t amount = *external_memory + change_in_bytes;
10054 10054
10055 *external_memory = amount; 10055 *external_memory = amount;
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
10207 */ 10207 */
10208 10208
10209 10209
10210 } // namespace v8 10210 } // namespace v8
10211 10211
10212 10212
10213 #undef TYPE_CHECK 10213 #undef TYPE_CHECK
10214 10214
10215 10215
10216 #endif // INCLUDE_V8_H_ 10216 #endif // INCLUDE_V8_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698