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

Side by Side Diff: src/spaces.h

Issue 10271010: Merge r11471 from the bleeding_edge to the 3.8 branch. (Closed) Base URL: http://v8.googlecode.com/svn/branches/3.8/
Patch Set: Created 8 years, 7 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/spaces.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 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 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after
1032 static int CodePageGuardSize(); 1032 static int CodePageGuardSize();
1033 1033
1034 static int CodePageAreaStartOffset(); 1034 static int CodePageAreaStartOffset();
1035 1035
1036 static int CodePageAreaEndOffset(); 1036 static int CodePageAreaEndOffset();
1037 1037
1038 static int CodePageAreaSize() { 1038 static int CodePageAreaSize() {
1039 return CodePageAreaEndOffset() - CodePageAreaStartOffset(); 1039 return CodePageAreaEndOffset() - CodePageAreaStartOffset();
1040 } 1040 }
1041 1041
1042 static bool CommitCodePage(VirtualMemory* vm, Address start, size_t size); 1042 MUST_USE_RESULT static bool CommitCodePage(VirtualMemory* vm,
1043 Address start,
1044 size_t size);
1043 1045
1044 private: 1046 private:
1045 Isolate* isolate_; 1047 Isolate* isolate_;
1046 1048
1047 // Maximum space size in bytes. 1049 // Maximum space size in bytes.
1048 size_t capacity_; 1050 size_t capacity_;
1049 // Maximum subset of capacity_ that can be executable 1051 // Maximum subset of capacity_ that can be executable
1050 size_t capacity_executable_; 1052 size_t capacity_executable_;
1051 1053
1052 // Allocated space size in bytes. 1054 // Allocated space size in bytes.
(...skipping 1583 matching lines...) Expand 10 before | Expand all | Expand 10 after
2636 } 2638 }
2637 // Must be small, since an iteration is used for lookup. 2639 // Must be small, since an iteration is used for lookup.
2638 static const int kMaxComments = 64; 2640 static const int kMaxComments = 64;
2639 }; 2641 };
2640 #endif 2642 #endif
2641 2643
2642 2644
2643 } } // namespace v8::internal 2645 } } // namespace v8::internal
2644 2646
2645 #endif // V8_SPACES_H_ 2647 #endif // V8_SPACES_H_
OLDNEW
« no previous file with comments | « no previous file | src/spaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698