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

Side by Side Diff: src/spaces.h

Issue 10270015: Merge r11471 from the bleeding_edge to the 3.9 branch. (Closed) Base URL: http://v8.googlecode.com/svn/branches/3.9/
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 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after
1033 static int CodePageGuardSize(); 1033 static int CodePageGuardSize();
1034 1034
1035 static int CodePageAreaStartOffset(); 1035 static int CodePageAreaStartOffset();
1036 1036
1037 static int CodePageAreaEndOffset(); 1037 static int CodePageAreaEndOffset();
1038 1038
1039 static int CodePageAreaSize() { 1039 static int CodePageAreaSize() {
1040 return CodePageAreaEndOffset() - CodePageAreaStartOffset(); 1040 return CodePageAreaEndOffset() - CodePageAreaStartOffset();
1041 } 1041 }
1042 1042
1043 static bool CommitCodePage(VirtualMemory* vm, Address start, size_t size); 1043 MUST_USE_RESULT static bool CommitCodePage(VirtualMemory* vm,
1044 Address start,
1045 size_t size);
1044 1046
1045 private: 1047 private:
1046 Isolate* isolate_; 1048 Isolate* isolate_;
1047 1049
1048 // Maximum space size in bytes. 1050 // Maximum space size in bytes.
1049 size_t capacity_; 1051 size_t capacity_;
1050 // Maximum subset of capacity_ that can be executable 1052 // Maximum subset of capacity_ that can be executable
1051 size_t capacity_executable_; 1053 size_t capacity_executable_;
1052 1054
1053 // Allocated space size in bytes. 1055 // Allocated space size in bytes.
(...skipping 1582 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