OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
611 // failed. | 611 // failed. |
612 // Please note this does not perform a garbage collection. | 612 // Please note this does not perform a garbage collection. |
613 MUST_USE_RESULT MaybeObject* AllocateJSObject( | 613 MUST_USE_RESULT MaybeObject* AllocateJSObject( |
614 JSFunction* constructor, | 614 JSFunction* constructor, |
615 PretenureFlag pretenure = NOT_TENURED); | 615 PretenureFlag pretenure = NOT_TENURED); |
616 | 616 |
617 MUST_USE_RESULT MaybeObject* AllocateJSObjectWithAllocationSite( | 617 MUST_USE_RESULT MaybeObject* AllocateJSObjectWithAllocationSite( |
618 JSFunction* constructor, | 618 JSFunction* constructor, |
619 Handle<Object> allocation_site_info_payload); | 619 Handle<Object> allocation_site_info_payload); |
620 | 620 |
| 621 MUST_USE_RESULT MaybeObject* AllocateJSGeneratorObject( |
| 622 JSFunction* function); |
| 623 |
621 MUST_USE_RESULT MaybeObject* AllocateJSModule(Context* context, | 624 MUST_USE_RESULT MaybeObject* AllocateJSModule(Context* context, |
622 ScopeInfo* scope_info); | 625 ScopeInfo* scope_info); |
623 | 626 |
624 // Allocate a JSArray with no elements | 627 // Allocate a JSArray with no elements |
625 MUST_USE_RESULT MaybeObject* AllocateEmptyJSArray( | 628 MUST_USE_RESULT MaybeObject* AllocateEmptyJSArray( |
626 ElementsKind elements_kind, | 629 ElementsKind elements_kind, |
627 PretenureFlag pretenure = NOT_TENURED) { | 630 PretenureFlag pretenure = NOT_TENURED) { |
628 return AllocateJSArrayAndStorage(elements_kind, 0, 0, | 631 return AllocateJSArrayAndStorage(elements_kind, 0, 0, |
629 DONT_INITIALIZE_ARRAY_ELEMENTS, | 632 DONT_INITIALIZE_ARRAY_ELEMENTS, |
630 pretenure); | 633 pretenure); |
(...skipping 2399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3030 AssertNoAllocation no_alloc; // i.e. no gc allowed. | 3033 AssertNoAllocation no_alloc; // i.e. no gc allowed. |
3031 | 3034 |
3032 private: | 3035 private: |
3033 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 3036 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
3034 }; | 3037 }; |
3035 #endif // DEBUG | 3038 #endif // DEBUG |
3036 | 3039 |
3037 } } // namespace v8::internal | 3040 } } // namespace v8::internal |
3038 | 3041 |
3039 #endif // V8_HEAP_H_ | 3042 #endif // V8_HEAP_H_ |
OLD | NEW |