Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 434 // Please note this does not perform a garbage collection. | 434 // Please note this does not perform a garbage collection. |
| 435 MUST_USE_RESULT MaybeObject* AllocateFunctionPrototype(JSFunction* function); | 435 MUST_USE_RESULT MaybeObject* AllocateFunctionPrototype(JSFunction* function); |
| 436 | 436 |
| 437 // Allocates a Harmony Proxy. | 437 // Allocates a Harmony Proxy. |
| 438 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 438 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
| 439 // failed. | 439 // failed. |
| 440 // Please note this does not perform a garbage collection. | 440 // Please note this does not perform a garbage collection. |
| 441 MUST_USE_RESULT MaybeObject* AllocateJSProxy(Object* handler, | 441 MUST_USE_RESULT MaybeObject* AllocateJSProxy(Object* handler, |
| 442 Object* prototype); | 442 Object* prototype); |
| 443 | 443 |
| 444 // Reinitialize a JSReceiver into an (empty) JSObject. The receiver | |
| 445 // must have the same size as an empty object. The object is reinitialized | |
| 446 // and behaves as an object that has been freshly allocated. | |
| 447 MUST_USE_RESULT MaybeObject* ReinitializeJSReceiverAsJSObject( | |
|
Mads Ager (chromium)
2011/07/17 10:43:47
JSReceiver -> JSProxy
We don't need this operatio
rossberg
2011/07/18 10:53:53
Done.
| |
| 448 JSReceiver* object); | |
| 449 | |
| 444 // Reinitialize an JSGlobalProxy based on a constructor. The object | 450 // Reinitialize an JSGlobalProxy based on a constructor. The object |
| 445 // must have the same size as objects allocated using the | 451 // must have the same size as objects allocated using the |
| 446 // constructor. The object is reinitialized and behaves as an | 452 // constructor. The object is reinitialized and behaves as an |
| 447 // object that has been freshly allocated using the constructor. | 453 // object that has been freshly allocated using the constructor. |
| 448 MUST_USE_RESULT MaybeObject* ReinitializeJSGlobalProxy( | 454 MUST_USE_RESULT MaybeObject* ReinitializeJSGlobalProxy( |
| 449 JSFunction* constructor, JSGlobalProxy* global); | 455 JSFunction* constructor, JSGlobalProxy* global); |
| 450 | 456 |
| 451 // Allocates and initializes a new JavaScript object based on a map. | 457 // Allocates and initializes a new JavaScript object based on a map. |
| 452 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 458 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
| 453 // failed. | 459 // failed. |
| (...skipping 1836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2290 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2296 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2291 }; | 2297 }; |
| 2292 #endif // DEBUG || LIVE_OBJECT_LIST | 2298 #endif // DEBUG || LIVE_OBJECT_LIST |
| 2293 | 2299 |
| 2294 | 2300 |
| 2295 } } // namespace v8::internal | 2301 } } // namespace v8::internal |
| 2296 | 2302 |
| 2297 #undef HEAP | 2303 #undef HEAP |
| 2298 | 2304 |
| 2299 #endif // V8_HEAP_H_ | 2305 #endif // V8_HEAP_H_ |
| OLD | NEW |