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

Side by Side Diff: src/spaces.h

Issue 23604054: Reland "Deuglify V8_INLINE and V8_NOINLINE." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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
« no previous file with comments | « src/platform/socket.h ('k') | src/utils/random-number-generator.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 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 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after
1078 // Returns allocated executable spaces in bytes. 1078 // Returns allocated executable spaces in bytes.
1079 intptr_t SizeExecutable() { return size_executable_; } 1079 intptr_t SizeExecutable() { return size_executable_; }
1080 1080
1081 // Returns maximum available bytes that the old space can have. 1081 // Returns maximum available bytes that the old space can have.
1082 intptr_t MaxAvailable() { 1082 intptr_t MaxAvailable() {
1083 return (Available() / Page::kPageSize) * Page::kMaxNonCodeHeapObjectSize; 1083 return (Available() / Page::kPageSize) * Page::kMaxNonCodeHeapObjectSize;
1084 } 1084 }
1085 1085
1086 // Returns an indication of whether a pointer is in a space that has 1086 // Returns an indication of whether a pointer is in a space that has
1087 // been allocated by this MemoryAllocator. 1087 // been allocated by this MemoryAllocator.
1088 V8_INLINE(bool IsOutsideAllocatedSpace(const void* address)) const { 1088 V8_INLINE bool IsOutsideAllocatedSpace(const void* address) const {
1089 return address < lowest_ever_allocated_ || 1089 return address < lowest_ever_allocated_ ||
1090 address >= highest_ever_allocated_; 1090 address >= highest_ever_allocated_;
1091 } 1091 }
1092 1092
1093 #ifdef DEBUG 1093 #ifdef DEBUG
1094 // Reports statistic info of the space. 1094 // Reports statistic info of the space.
1095 void ReportStatistics(); 1095 void ReportStatistics();
1096 #endif 1096 #endif
1097 1097
1098 // Returns a MemoryChunk in which the memory region from commit_area_size to 1098 // Returns a MemoryChunk in which the memory region from commit_area_size to
(...skipping 1797 matching lines...) Expand 10 before | Expand all | Expand 10 after
2896 } 2896 }
2897 // Must be small, since an iteration is used for lookup. 2897 // Must be small, since an iteration is used for lookup.
2898 static const int kMaxComments = 64; 2898 static const int kMaxComments = 64;
2899 }; 2899 };
2900 #endif 2900 #endif
2901 2901
2902 2902
2903 } } // namespace v8::internal 2903 } } // namespace v8::internal
2904 2904
2905 #endif // V8_SPACES_H_ 2905 #endif // V8_SPACES_H_
OLDNEW
« no previous file with comments | « src/platform/socket.h ('k') | src/utils/random-number-generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698