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

Side by Side Diff: src/heap.h

Issue 1619017: Changing byte_size from size_t to int in heap-inl.h (making win64 build work) (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 8 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 | « no previous file | src/heap-inl.h » ('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 937 matching lines...) Expand 10 before | Expand all | Expand 10 after
948 ExternalArrayType array_type); 948 ExternalArrayType array_type);
949 949
950 static void RecordStats(HeapStats* stats); 950 static void RecordStats(HeapStats* stats);
951 951
952 // Copy block of memory from src to dst. Size of block should be aligned 952 // Copy block of memory from src to dst. Size of block should be aligned
953 // by pointer size. 953 // by pointer size.
954 static inline void CopyBlock(Object** dst, Object** src, int byte_size); 954 static inline void CopyBlock(Object** dst, Object** src, int byte_size);
955 955
956 // Optimized version of memmove for blocks with pointer size aligned sizes and 956 // Optimized version of memmove for blocks with pointer size aligned sizes and
957 // pointer size aligned addresses. 957 // pointer size aligned addresses.
958 static inline void MoveBlock(Object** dst, Object** src, size_t byte_size); 958 static inline void MoveBlock(Object** dst, Object** src, int byte_size);
959 959
960 // Check new space expansion criteria and expand semispaces if it was hit. 960 // Check new space expansion criteria and expand semispaces if it was hit.
961 static void CheckNewSpaceExpansionCriteria(); 961 static void CheckNewSpaceExpansionCriteria();
962 962
963 static inline void IncrementYoungSurvivorsCounter(int survived) { 963 static inline void IncrementYoungSurvivorsCounter(int survived) {
964 survived_since_last_expansion_ += survived; 964 survived_since_last_expansion_ += survived;
965 } 965 }
966 966
967 static void UpdateNewSpaceReferencesInExternalStringTable( 967 static void UpdateNewSpaceReferencesInExternalStringTable(
968 ExternalStringTableUpdaterCallback updater_func); 968 ExternalStringTableUpdaterCallback updater_func);
(...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after
1828 1828
1829 // To speed up scavenge collections new space string are kept 1829 // To speed up scavenge collections new space string are kept
1830 // separate from old space strings. 1830 // separate from old space strings.
1831 static List<Object*> new_space_strings_; 1831 static List<Object*> new_space_strings_;
1832 static List<Object*> old_space_strings_; 1832 static List<Object*> old_space_strings_;
1833 }; 1833 };
1834 1834
1835 } } // namespace v8::internal 1835 } } // namespace v8::internal
1836 1836
1837 #endif // V8_HEAP_H_ 1837 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698