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

Side by Side Diff: src/isolate.cc

Issue 2917853004: [heap] Activate memory reducer on external memory activity. (Closed)
Patch Set: check for memory_reducer_ 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 | « src/heap/heap.cc ('k') | 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 #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 2813 matching lines...) Expand 10 before | Expand all | Expand 10 after
2824 } 2824 }
2825 2825
2826 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, embedder_data_)), 2826 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, embedder_data_)),
2827 Internals::kIsolateEmbedderDataOffset); 2827 Internals::kIsolateEmbedderDataOffset);
2828 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, heap_.roots_)), 2828 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, heap_.roots_)),
2829 Internals::kIsolateRootsOffset); 2829 Internals::kIsolateRootsOffset);
2830 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, heap_.external_memory_)), 2830 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, heap_.external_memory_)),
2831 Internals::kExternalMemoryOffset); 2831 Internals::kExternalMemoryOffset);
2832 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, heap_.external_memory_limit_)), 2832 CHECK_EQ(static_cast<int>(OFFSET_OF(Isolate, heap_.external_memory_limit_)),
2833 Internals::kExternalMemoryLimitOffset); 2833 Internals::kExternalMemoryLimitOffset);
2834 CHECK_EQ(static_cast<int>(
2835 OFFSET_OF(Isolate, heap_.external_memory_at_last_mark_compact_)),
2836 Internals::kExternalMemoryAtLastMarkCompactOffset);
2834 2837
2835 time_millis_at_init_ = heap_.MonotonicallyIncreasingTimeInMs(); 2838 time_millis_at_init_ = heap_.MonotonicallyIncreasingTimeInMs();
2836 2839
2837 { 2840 {
2838 HandleScope scope(this); 2841 HandleScope scope(this);
2839 ast_string_constants_ = new AstStringConstants(this, heap()->HashSeed()); 2842 ast_string_constants_ = new AstStringConstants(this, heap()->HashSeed());
2840 } 2843 }
2841 2844
2842 if (!serializer_enabled()) { 2845 if (!serializer_enabled()) {
2843 // Ensure that all stubs which need to be generated ahead of time, but 2846 // Ensure that all stubs which need to be generated ahead of time, but
(...skipping 940 matching lines...) Expand 10 before | Expand all | Expand 10 after
3784 // Then check whether this scope intercepts. 3787 // Then check whether this scope intercepts.
3785 if ((flag & intercept_mask_)) { 3788 if ((flag & intercept_mask_)) {
3786 intercepted_flags_ |= flag; 3789 intercepted_flags_ |= flag;
3787 return true; 3790 return true;
3788 } 3791 }
3789 return false; 3792 return false;
3790 } 3793 }
3791 3794
3792 } // namespace internal 3795 } // namespace internal
3793 } // namespace v8 3796 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/heap.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698