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

Side by Side Diff: src/heap.h

Issue 435020: Fast-compiler: Add stack limit checks to back edges of while, do-while and for. (Closed)
Patch Set: Created 11 years, 1 month 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
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 892 matching lines...) Expand 10 before | Expand all | Expand 10 after
903 static size_t code_range_size_; 903 static size_t code_range_size_;
904 904
905 // For keeping track of how much data has survived 905 // For keeping track of how much data has survived
906 // scavenge since last new space expansion. 906 // scavenge since last new space expansion.
907 static int survived_since_last_expansion_; 907 static int survived_since_last_expansion_;
908 908
909 static int always_allocate_scope_depth_; 909 static int always_allocate_scope_depth_;
910 static int linear_allocation_scope_depth_; 910 static int linear_allocation_scope_depth_;
911 static bool context_disposed_pending_; 911 static bool context_disposed_pending_;
912 912
913 static const int kMaxMapSpaceSize = 8*MB; 913 static const int kMaxMapSpaceSize =
914 (1 << MapWord::kMapPageIndexBits) * Page::kPageSize;
Lasse Reichstein 2009/11/24 14:21:36 By popular demand: Make it obvious what map space
Mads Ager (chromium) 2009/11/24 14:46:32 by the amount of bits available for map page index
Lasse Reichstein 2009/11/25 08:56:26 Guess I should add a comment to make it more obvio
914 915
915 #if defined(V8_TARGET_ARCH_X64) 916 #if defined(V8_TARGET_ARCH_X64)
916 static const int kMaxObjectSizeInNewSpace = 512*KB; 917 static const int kMaxObjectSizeInNewSpace = 512*KB;
917 #else 918 #else
918 static const int kMaxObjectSizeInNewSpace = 256*KB; 919 static const int kMaxObjectSizeInNewSpace = 256*KB;
919 #endif 920 #endif
920 921
921 static NewSpace new_space_; 922 static NewSpace new_space_;
922 static OldSpace* old_pointer_space_; 923 static OldSpace* old_pointer_space_;
923 static OldSpace* old_data_space_; 924 static OldSpace* old_data_space_;
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after
1618 } 1619 }
1619 static TranscendentalCache* caches_[kNumberOfCaches]; 1620 static TranscendentalCache* caches_[kNumberOfCaches];
1620 Element elements_[kCacheSize]; 1621 Element elements_[kCacheSize];
1621 Type type_; 1622 Type type_;
1622 }; 1623 };
1623 1624
1624 1625
1625 } } // namespace v8::internal 1626 } } // namespace v8::internal
1626 1627
1627 #endif // V8_HEAP_H_ 1628 #endif // V8_HEAP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698