| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 // Properties and elements are copied too. | 445 // Properties and elements are copied too. |
| 446 // Returns failure if allocation failed. | 446 // Returns failure if allocation failed. |
| 447 MUST_USE_RESULT MaybeObject* CopyJSObject(JSObject* source); | 447 MUST_USE_RESULT MaybeObject* CopyJSObject(JSObject* source); |
| 448 | 448 |
| 449 // Allocates the function prototype. | 449 // Allocates the function prototype. |
| 450 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 450 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
| 451 // failed. | 451 // failed. |
| 452 // Please note this does not perform a garbage collection. | 452 // Please note this does not perform a garbage collection. |
| 453 MUST_USE_RESULT MaybeObject* AllocateFunctionPrototype(JSFunction* function); | 453 MUST_USE_RESULT MaybeObject* AllocateFunctionPrototype(JSFunction* function); |
| 454 | 454 |
| 455 // Allocates a Harmony Proxy. |
| 456 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
| 457 // failed. |
| 458 // Please note this does not perform a garbage collection. |
| 459 MUST_USE_RESULT MaybeObject* AllocateJSProxy(Object* handler, |
| 460 Object* prototype); |
| 461 |
| 455 // Reinitialize an JSGlobalProxy based on a constructor. The object | 462 // Reinitialize an JSGlobalProxy based on a constructor. The object |
| 456 // must have the same size as objects allocated using the | 463 // must have the same size as objects allocated using the |
| 457 // constructor. The object is reinitialized and behaves as an | 464 // constructor. The object is reinitialized and behaves as an |
| 458 // object that has been freshly allocated using the constructor. | 465 // object that has been freshly allocated using the constructor. |
| 459 MUST_USE_RESULT MaybeObject* ReinitializeJSGlobalProxy( | 466 MUST_USE_RESULT MaybeObject* ReinitializeJSGlobalProxy( |
| 460 JSFunction* constructor, JSGlobalProxy* global); | 467 JSFunction* constructor, JSGlobalProxy* global); |
| 461 | 468 |
| 462 // Allocates and initializes a new JavaScript object based on a map. | 469 // Allocates and initializes a new JavaScript object based on a map. |
| 463 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 470 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
| 464 // failed. | 471 // failed. |
| (...skipping 1802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2267 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2274 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2268 }; | 2275 }; |
| 2269 #endif // DEBUG || LIVE_OBJECT_LIST | 2276 #endif // DEBUG || LIVE_OBJECT_LIST |
| 2270 | 2277 |
| 2271 | 2278 |
| 2272 } } // namespace v8::internal | 2279 } } // namespace v8::internal |
| 2273 | 2280 |
| 2274 #undef HEAP | 2281 #undef HEAP |
| 2275 | 2282 |
| 2276 #endif // V8_HEAP_H_ | 2283 #endif // V8_HEAP_H_ |
| OLD | NEW |