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

Side by Side Diff: src/spaces.h

Issue 7865025: Move aligned allocation to the platform files. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Match the VirtualFree return type and arguments. Created 9 years, 3 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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 869 matching lines...) Expand 10 before | Expand all | Expand 10 after
880 // Reports statistic info of the space. 880 // Reports statistic info of the space.
881 void ReportStatistics(); 881 void ReportStatistics();
882 #endif 882 #endif
883 883
884 MemoryChunk* AllocateChunk(intptr_t body_size, 884 MemoryChunk* AllocateChunk(intptr_t body_size,
885 Executability executable, 885 Executability executable,
886 Space* space); 886 Space* space);
887 887
888 Address AllocateAlignedMemory(const size_t requested, 888 Address AllocateAlignedMemory(const size_t requested,
889 size_t alignment, 889 size_t alignment,
890 Executability executable, 890 Executability executable);
891 size_t* allocated_size);
892 891
893 Address ReserveAlignedMemory(const size_t requested, 892 Address ReserveAlignedMemory(const size_t requested,
894 size_t alignment, 893 size_t alignment);
895 size_t* allocated_size);
896 894
897 void FreeMemory(Address addr, size_t size, Executability executable); 895 void FreeMemory(Address addr, size_t size, Executability executable);
898 896
899 // Commit a contiguous block of memory from the initial chunk. Assumes that 897 // Commit a contiguous block of memory from the initial chunk. Assumes that
900 // the address is not NULL, the size is greater than zero, and that the 898 // the address is not NULL, the size is greater than zero, and that the
901 // block is contained in the initial chunk. Returns true if it succeeded 899 // block is contained in the initial chunk. Returns true if it succeeded
902 // and false otherwise. 900 // and false otherwise.
903 bool CommitBlock(Address start, size_t size, Executability executable); 901 bool CommitBlock(Address start, size_t size, Executability executable);
904 902
905 // Uncommit a contiguous block of memory [start..(start+size)[. 903 // Uncommit a contiguous block of memory [start..(start+size)[.
(...skipping 1609 matching lines...) Expand 10 before | Expand all | Expand 10 after
2515 } 2513 }
2516 // Must be small, since an iteration is used for lookup. 2514 // Must be small, since an iteration is used for lookup.
2517 static const int kMaxComments = 64; 2515 static const int kMaxComments = 64;
2518 }; 2516 };
2519 #endif 2517 #endif
2520 2518
2521 2519
2522 } } // namespace v8::internal 2520 } } // namespace v8::internal
2523 2521
2524 #endif // V8_SPACES_H_ 2522 #endif // V8_SPACES_H_
OLDNEW
« src/platform-win32.cc ('K') | « src/platform-win32.cc ('k') | src/spaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698