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

Side by Side Diff: src/isolate.cc

Issue 2085893002: [heap] Internalize kExternalAllocationLimit (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Initialize limit Created 4 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 | « src/heap/mark-compact.cc ('k') | test/cctest/heap/test-heap.cc » ('j') | 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 #include "src/isolate.h" 5 #include "src/isolate.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 8
9 #include <fstream> // NOLINT(readability/streams) 9 #include <fstream> // NOLINT(readability/streams)
10 #include <sstream> 10 #include <sstream>
(...skipping 2294 matching lines...) Expand 10 before | Expand all | Expand 10 after
2305 2305
2306 if (FLAG_trace_turbo) { 2306 if (FLAG_trace_turbo) {
2307 // Create an empty file. 2307 // Create an empty file.
2308 std::ofstream(GetTurboCfgFileName().c_str(), std::ios_base::trunc); 2308 std::ofstream(GetTurboCfgFileName().c_str(), std::ios_base::trunc);
2309 } 2309 }
2310 2310
2311 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, embedder_data_)), 2311 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, embedder_data_)),
2312 Internals::kIsolateEmbedderDataOffset); 2312 Internals::kIsolateEmbedderDataOffset);
2313 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, heap_.roots_)), 2313 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, heap_.roots_)),
2314 Internals::kIsolateRootsOffset); 2314 Internals::kIsolateRootsOffset);
2315 CHECK_EQ(static_cast<int>( 2315 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, heap_.external_memory_)),
2316 OFFSET_OF(Isolate, heap_.amount_of_external_allocated_memory_)), 2316 Internals::kExternalMemoryOffset);
2317 Internals::kAmountOfExternalAllocatedMemoryOffset); 2317 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, heap_.external_memory_limit_)),
2318 CHECK_EQ(static_cast<int>(OFFSET_OF( 2318 Internals::kExternalMemoryLimitOffset);
2319 Isolate,
2320 heap_.amount_of_external_allocated_memory_at_last_global_gc_)),
2321 Internals::kAmountOfExternalAllocatedMemoryAtLastGlobalGCOffset);
2322 2319
2323 time_millis_at_init_ = heap_.MonotonicallyIncreasingTimeInMs(); 2320 time_millis_at_init_ = heap_.MonotonicallyIncreasingTimeInMs();
2324 2321
2325 heap_.NotifyDeserializationComplete(); 2322 heap_.NotifyDeserializationComplete();
2326 2323
2327 if (!create_heap_objects) { 2324 if (!create_heap_objects) {
2328 // Now that the heap is consistent, it's OK to generate the code for the 2325 // Now that the heap is consistent, it's OK to generate the code for the
2329 // deopt entry table that might have been referred to by optimized code in 2326 // deopt entry table that might have been referred to by optimized code in
2330 // the snapshot. 2327 // the snapshot.
2331 HandleScope scope(this); 2328 HandleScope scope(this);
(...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after
3061 // Then check whether this scope intercepts. 3058 // Then check whether this scope intercepts.
3062 if ((flag & intercept_mask_)) { 3059 if ((flag & intercept_mask_)) {
3063 intercepted_flags_ |= flag; 3060 intercepted_flags_ |= flag;
3064 return true; 3061 return true;
3065 } 3062 }
3066 return false; 3063 return false;
3067 } 3064 }
3068 3065
3069 } // namespace internal 3066 } // namespace internal
3070 } // namespace v8 3067 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/mark-compact.cc ('k') | test/cctest/heap/test-heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698