OLD | NEW |
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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 static const int context_raw_size_; | 83 static const int context_raw_size_; |
84 | 84 |
85 static bool Deserialize(const byte* content, int len); | 85 static bool Deserialize(const byte* content, int len); |
86 | 86 |
87 DISALLOW_IMPLICIT_CONSTRUCTORS(Snapshot); | 87 DISALLOW_IMPLICIT_CONSTRUCTORS(Snapshot); |
88 }; | 88 }; |
89 | 89 |
90 | 90 |
91 // These are the sizes of the spaces that are needed in order to unpack the | 91 // These are the sizes of the spaces that are needed in order to unpack the |
92 // VM boot snapshot. | 92 // VM boot snapshot. |
93 const int kMinimumSpaceSizes[LAST_SPACE + 1] = { | 93 const intptr_t kMinimumSpaceSizes[LAST_SPACE + 1] = { |
94 0, // New space. | 94 0, // New space. |
95 512 * 1024, // Old pointer space. | 95 512 * 1024, // Old pointer space. |
96 128 * 1024, // Old data space. | 96 128 * 1024, // Old data space. |
97 256 * 1024, // Code space. | 97 256 * 1024, // Code space. |
98 64 * 1024, // Map space. | 98 64 * 1024, // Map space. |
99 64 * 1024, // Cell space. | 99 64 * 1024, // Cell space. |
100 0 // Large object space. | 100 0 // Large object space. |
101 }; | 101 }; |
102 | 102 |
103 | 103 |
104 | 104 |
105 } } // namespace v8::internal | 105 } } // namespace v8::internal |
106 | 106 |
107 #endif // V8_SNAPSHOT_H_ | 107 #endif // V8_SNAPSHOT_H_ |
OLD | NEW |