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

Side by Side Diff: src/heap.h

Issue 523121: Merge r3481 to branches/1.3 to increase the number of maps... (Closed) Base URL: http://v8.googlecode.com/svn/branches/1.3/
Patch Set: '' Created 10 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « src/globals.h ('k') | src/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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 915 matching lines...) Expand 10 before | Expand all | Expand 10 after
926 static size_t code_range_size_; 926 static size_t code_range_size_;
927 927
928 // For keeping track of how much data has survived 928 // For keeping track of how much data has survived
929 // scavenge since last new space expansion. 929 // scavenge since last new space expansion.
930 static int survived_since_last_expansion_; 930 static int survived_since_last_expansion_;
931 931
932 static int always_allocate_scope_depth_; 932 static int always_allocate_scope_depth_;
933 static int linear_allocation_scope_depth_; 933 static int linear_allocation_scope_depth_;
934 static bool context_disposed_pending_; 934 static bool context_disposed_pending_;
935 935
936 static const int kMaxMapSpaceSize = 8*MB; 936 // The number of MapSpace pages is limited by the way we pack
937 // Map pointers during GC.
938 static const int kMaxMapSpaceSize =
939 (1 << (MapWord::kMapPageIndexBits)) * Page::kPageSize;
937 940
938 #if defined(V8_TARGET_ARCH_X64) 941 #if defined(V8_TARGET_ARCH_X64)
939 static const int kMaxObjectSizeInNewSpace = 512*KB; 942 static const int kMaxObjectSizeInNewSpace = 512*KB;
940 #else 943 #else
941 static const int kMaxObjectSizeInNewSpace = 256*KB; 944 static const int kMaxObjectSizeInNewSpace = 256*KB;
942 #endif 945 #endif
943 946
944 static NewSpace new_space_; 947 static NewSpace new_space_;
945 static OldSpace* old_pointer_space_; 948 static OldSpace* old_pointer_space_;
946 static OldSpace* old_data_space_; 949 static OldSpace* old_data_space_;
(...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after
1666 } 1669 }
1667 static TranscendentalCache* caches_[kNumberOfCaches]; 1670 static TranscendentalCache* caches_[kNumberOfCaches];
1668 Element elements_[kCacheSize]; 1671 Element elements_[kCacheSize];
1669 Type type_; 1672 Type type_;
1670 }; 1673 };
1671 1674
1672 1675
1673 } } // namespace v8::internal 1676 } } // namespace v8::internal
1674 1677
1675 #endif // V8_HEAP_H_ 1678 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/globals.h ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698