| 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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 #endif | 282 #endif |
| 283 | 283 |
| 284 // Allocates and initializes a new JavaScript object based on a | 284 // Allocates and initializes a new JavaScript object based on a |
| 285 // constructor. | 285 // constructor. |
| 286 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 286 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
| 287 // failed. | 287 // failed. |
| 288 // Please note this does not perform a garbage collection. | 288 // Please note this does not perform a garbage collection. |
| 289 static Object* AllocateJSObject(JSFunction* constructor, | 289 static Object* AllocateJSObject(JSFunction* constructor, |
| 290 PretenureFlag pretenure = NOT_TENURED); | 290 PretenureFlag pretenure = NOT_TENURED); |
| 291 | 291 |
| 292 // Allocates and initializes a new JS global object based on a constructor. | 292 // Allocates and initializes a new global object based on a constructor. |
| 293 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 293 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
| 294 // failed. | 294 // failed. |
| 295 // Please note this does not perform a garbage collection. | 295 // Please note this does not perform a garbage collection. |
| 296 static Object* AllocateJSGlobalObject(JSFunction* constructor); | 296 static Object* AllocateGlobalObject(JSFunction* constructor); |
| 297 | 297 |
| 298 // Returns a deep copy of the JavaScript object. | 298 // Returns a deep copy of the JavaScript object. |
| 299 // Properties and elements are copied too. | 299 // Properties and elements are copied too. |
| 300 // Returns failure if allocation failed. | 300 // Returns failure if allocation failed. |
| 301 static Object* CopyJSObject(JSObject* source); | 301 static Object* CopyJSObject(JSObject* source); |
| 302 | 302 |
| 303 // Allocates the function prototype. | 303 // Allocates the function prototype. |
| 304 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 304 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
| 305 // failed. | 305 // failed. |
| 306 // Please note this does not perform a garbage collection. | 306 // Please note this does not perform a garbage collection. |
| (...skipping 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1401 int marked_count_; | 1401 int marked_count_; |
| 1402 | 1402 |
| 1403 // The count from the end of the previous full GC. Will be zero if there | 1403 // The count from the end of the previous full GC. Will be zero if there |
| 1404 // was no previous full GC. | 1404 // was no previous full GC. |
| 1405 int previous_marked_count_; | 1405 int previous_marked_count_; |
| 1406 }; | 1406 }; |
| 1407 | 1407 |
| 1408 } } // namespace v8::internal | 1408 } } // namespace v8::internal |
| 1409 | 1409 |
| 1410 #endif // V8_HEAP_H_ | 1410 #endif // V8_HEAP_H_ |
| OLD | NEW |