| 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 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 640 // AllocateHashTable is identical to AllocateFixedArray except | 640 // AllocateHashTable is identical to AllocateFixedArray except |
| 641 // that the resulting object has hash_table_map as map. | 641 // that the resulting object has hash_table_map as map. |
| 642 MUST_USE_RESULT MaybeObject* AllocateHashTable( | 642 MUST_USE_RESULT MaybeObject* AllocateHashTable( |
| 643 int length, PretenureFlag pretenure = NOT_TENURED); | 643 int length, PretenureFlag pretenure = NOT_TENURED); |
| 644 | 644 |
| 645 // Allocate a global (but otherwise uninitialized) context. | 645 // Allocate a global (but otherwise uninitialized) context. |
| 646 MUST_USE_RESULT MaybeObject* AllocateGlobalContext(); | 646 MUST_USE_RESULT MaybeObject* AllocateGlobalContext(); |
| 647 | 647 |
| 648 // Allocate a function context. | 648 // Allocate a function context. |
| 649 MUST_USE_RESULT MaybeObject* AllocateFunctionContext(int length, | 649 MUST_USE_RESULT MaybeObject* AllocateFunctionContext(int length, |
| 650 JSFunction* closure); | 650 JSFunction* function); |
| 651 | 651 |
| 652 // Allocate a catch context. | 652 // Allocate a catch context. |
| 653 MUST_USE_RESULT MaybeObject* AllocateCatchContext(Context* previous, | 653 MUST_USE_RESULT MaybeObject* AllocateCatchContext(JSFunction* function, |
| 654 Context* previous, |
| 654 String* name, | 655 String* name, |
| 655 Object* thrown_object); | 656 Object* thrown_object); |
| 656 // Allocate a 'with' context. | 657 // Allocate a 'with' context. |
| 657 MUST_USE_RESULT MaybeObject* AllocateWithContext(Context* previous, | 658 MUST_USE_RESULT MaybeObject* AllocateWithContext(JSFunction* function, |
| 659 Context* previous, |
| 658 JSObject* extension); | 660 JSObject* extension); |
| 659 | 661 |
| 660 // Allocates a new utility object in the old generation. | 662 // Allocates a new utility object in the old generation. |
| 661 MUST_USE_RESULT MaybeObject* AllocateStruct(InstanceType type); | 663 MUST_USE_RESULT MaybeObject* AllocateStruct(InstanceType type); |
| 662 | 664 |
| 663 // Allocates a function initialized with a shared part. | 665 // Allocates a function initialized with a shared part. |
| 664 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 666 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
| 665 // failed. | 667 // failed. |
| 666 // Please note this does not perform a garbage collection. | 668 // Please note this does not perform a garbage collection. |
| 667 MUST_USE_RESULT MaybeObject* AllocateFunction( | 669 MUST_USE_RESULT MaybeObject* AllocateFunction( |
| (...skipping 1622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2290 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2292 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2291 }; | 2293 }; |
| 2292 #endif // DEBUG || LIVE_OBJECT_LIST | 2294 #endif // DEBUG || LIVE_OBJECT_LIST |
| 2293 | 2295 |
| 2294 | 2296 |
| 2295 } } // namespace v8::internal | 2297 } } // namespace v8::internal |
| 2296 | 2298 |
| 2297 #undef HEAP | 2299 #undef HEAP |
| 2298 | 2300 |
| 2299 #endif // V8_HEAP_H_ | 2301 #endif // V8_HEAP_H_ |
| OLD | NEW |