| 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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 // Please note this does not perform a garbage collection. | 273 // Please note this does not perform a garbage collection. |
| 274 static Object* AllocateJSObject(JSFunction* constructor, | 274 static Object* AllocateJSObject(JSFunction* constructor, |
| 275 PretenureFlag pretenure = NOT_TENURED); | 275 PretenureFlag pretenure = NOT_TENURED); |
| 276 | 276 |
| 277 // Allocates the function prototype. | 277 // Allocates the function prototype. |
| 278 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 278 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
| 279 // failed. | 279 // failed. |
| 280 // Please note this does not perform a garbage collection. | 280 // Please note this does not perform a garbage collection. |
| 281 static Object* AllocateFunctionPrototype(JSFunction* function); | 281 static Object* AllocateFunctionPrototype(JSFunction* function); |
| 282 | 282 |
| 283 // Reinitialize a JSGlobalObject based on a constructor. The JSObject | 283 // Reinitialize an JSGlobalProxy based on a constructor. The object |
| 284 // must have the same size as objects allocated using the | 284 // must have the same size as objects allocated using the |
| 285 // constructor. The JSObject is reinitialized and behaves as an | 285 // constructor. The object is reinitialized and behaves as an |
| 286 // object that has been freshly allocated using the constructor. | 286 // object that has been freshly allocated using the constructor. |
| 287 static Object* ReinitializeJSGlobalObject(JSFunction* constructor, | 287 static Object* ReinitializeJSGlobalProxy(JSFunction* constructor, |
| 288 JSGlobalObject* global); | 288 JSGlobalProxy* global); |
| 289 | 289 |
| 290 // Allocates and initializes a new JavaScript object based on a map. | 290 // Allocates and initializes a new JavaScript object based on a map. |
| 291 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 291 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
| 292 // failed. | 292 // failed. |
| 293 // Please note this does not perform a garbage collection. | 293 // Please note this does not perform a garbage collection. |
| 294 static Object* AllocateJSObjectFromMap(Map* map, | 294 static Object* AllocateJSObjectFromMap(Map* map, |
| 295 PretenureFlag pretenure = NOT_TENURED); | 295 PretenureFlag pretenure = NOT_TENURED); |
| 296 | 296 |
| 297 // Allocates a heap object based on the map. | 297 // Allocates a heap object based on the map. |
| 298 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 298 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
| (...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1184 int marked_count_; | 1184 int marked_count_; |
| 1185 | 1185 |
| 1186 // The count from the end of the previous full GC. Will be zero if there | 1186 // The count from the end of the previous full GC. Will be zero if there |
| 1187 // was no previous full GC. | 1187 // was no previous full GC. |
| 1188 int previous_marked_count_; | 1188 int previous_marked_count_; |
| 1189 }; | 1189 }; |
| 1190 | 1190 |
| 1191 } } // namespace v8::internal | 1191 } } // namespace v8::internal |
| 1192 | 1192 |
| 1193 #endif // V8_HEAP_H_ | 1193 #endif // V8_HEAP_H_ |
| OLD | NEW |