Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Side by Side Diff: src/heap.h

Issue 32323013: Introduce JSFunction::EnsureHasInitialMap method. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/factory.cc ('k') | src/heap.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 606 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 // failed. 617 // failed.
618 // Please note this does not perform a garbage collection. 618 // Please note this does not perform a garbage collection.
619 MUST_USE_RESULT MaybeObject* AllocateJSObject( 619 MUST_USE_RESULT MaybeObject* AllocateJSObject(
620 JSFunction* constructor, 620 JSFunction* constructor,
621 PretenureFlag pretenure = NOT_TENURED); 621 PretenureFlag pretenure = NOT_TENURED);
622 622
623 MUST_USE_RESULT MaybeObject* AllocateJSObjectWithAllocationSite( 623 MUST_USE_RESULT MaybeObject* AllocateJSObjectWithAllocationSite(
624 JSFunction* constructor, 624 JSFunction* constructor,
625 Handle<AllocationSite> allocation_site); 625 Handle<AllocationSite> allocation_site);
626 626
627 MUST_USE_RESULT MaybeObject* AllocateJSGeneratorObject(
628 JSFunction* function);
629
630 MUST_USE_RESULT MaybeObject* AllocateJSModule(Context* context, 627 MUST_USE_RESULT MaybeObject* AllocateJSModule(Context* context,
631 ScopeInfo* scope_info); 628 ScopeInfo* scope_info);
632 629
633 // Allocate a JSArray with no elements 630 // Allocate a JSArray with no elements
634 MUST_USE_RESULT MaybeObject* AllocateEmptyJSArray( 631 MUST_USE_RESULT MaybeObject* AllocateEmptyJSArray(
635 ElementsKind elements_kind, 632 ElementsKind elements_kind,
636 PretenureFlag pretenure = NOT_TENURED) { 633 PretenureFlag pretenure = NOT_TENURED) {
637 return AllocateJSArrayAndStorage(elements_kind, 0, 0, 634 return AllocateJSArrayAndStorage(elements_kind, 0, 0,
638 DONT_INITIALIZE_ARRAY_ELEMENTS, 635 DONT_INITIALIZE_ARRAY_ELEMENTS,
639 pretenure); 636 pretenure);
(...skipping 2436 matching lines...) Expand 10 before | Expand all | Expand 10 after
3076 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 3073 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
3077 3074
3078 private: 3075 private:
3079 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 3076 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
3080 }; 3077 };
3081 #endif // DEBUG 3078 #endif // DEBUG
3082 3079
3083 } } // namespace v8::internal 3080 } } // namespace v8::internal
3084 3081
3085 #endif // V8_HEAP_H_ 3082 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698