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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 // Traverses the pointers for memory management. | 109 // Traverses the pointers for memory management. |
110 void Iterate(ObjectVisitor* v); | 110 void Iterate(ObjectVisitor* v); |
111 | 111 |
112 // Accessor for the native scripts source code. | 112 // Accessor for the native scripts source code. |
113 Handle<String> NativesSourceLookup(int index); | 113 Handle<String> NativesSourceLookup(int index); |
114 | 114 |
115 // Tells whether bootstrapping is active. | 115 // Tells whether bootstrapping is active. |
116 bool IsActive() const { return nesting_ != 0; } | 116 bool IsActive() const { return nesting_ != 0; } |
117 | 117 |
118 // Support for thread preemption. | 118 // Support for thread preemption. |
119 RLYSTC int ArchiveSpacePerThread(); | 119 static int ArchiveSpacePerThread(); |
120 char* ArchiveState(char* to); | 120 char* ArchiveState(char* to); |
121 char* RestoreState(char* from); | 121 char* RestoreState(char* from); |
122 void FreeThreadResources(); | 122 void FreeThreadResources(); |
123 | 123 |
124 // This will allocate a char array that is deleted when V8 is shut down. | 124 // This will allocate a char array that is deleted when V8 is shut down. |
125 // It should only be used for strictly finite allocations. | 125 // It should only be used for strictly finite allocations. |
126 char* AllocateAutoDeletedArray(int bytes); | 126 char* AllocateAutoDeletedArray(int bytes); |
127 | 127 |
128 // Used for new context creation. | 128 // Used for new context creation. |
129 bool InstallExtensions(Handle<Context> global_context, | 129 bool InstallExtensions(Handle<Context> global_context, |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 return length_; | 179 return length_; |
180 } | 180 } |
181 private: | 181 private: |
182 const char* data_; | 182 const char* data_; |
183 size_t length_; | 183 size_t length_; |
184 }; | 184 }; |
185 | 185 |
186 }} // namespace v8::internal | 186 }} // namespace v8::internal |
187 | 187 |
188 #endif // V8_BOOTSTRAPPER_H_ | 188 #endif // V8_BOOTSTRAPPER_H_ |
OLD | NEW |