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

Side by Side Diff: src/heap.h

Issue 13542002: Calling a generator function returns a generator object (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Link generator iterator definitions and uses through local variable Created 7 years, 8 months 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
« no previous file with comments | « src/full-codegen.cc ('k') | src/heap.cc » ('j') | src/objects.h » ('J')
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 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 // failed. 610 // failed.
611 // Please note this does not perform a garbage collection. 611 // Please note this does not perform a garbage collection.
612 MUST_USE_RESULT MaybeObject* AllocateJSObject( 612 MUST_USE_RESULT MaybeObject* AllocateJSObject(
613 JSFunction* constructor, 613 JSFunction* constructor,
614 PretenureFlag pretenure = NOT_TENURED); 614 PretenureFlag pretenure = NOT_TENURED);
615 615
616 MUST_USE_RESULT MaybeObject* AllocateJSObjectWithAllocationSite( 616 MUST_USE_RESULT MaybeObject* AllocateJSObjectWithAllocationSite(
617 JSFunction* constructor, 617 JSFunction* constructor,
618 Handle<Object> allocation_site_info_payload); 618 Handle<Object> allocation_site_info_payload);
619 619
620 MUST_USE_RESULT MaybeObject* AllocateJSGeneratorIterator(
621 JSFunction* function);
622
620 MUST_USE_RESULT MaybeObject* AllocateJSModule(Context* context, 623 MUST_USE_RESULT MaybeObject* AllocateJSModule(Context* context,
621 ScopeInfo* scope_info); 624 ScopeInfo* scope_info);
622 625
623 // Allocate a JSArray with no elements 626 // Allocate a JSArray with no elements
624 MUST_USE_RESULT MaybeObject* AllocateEmptyJSArray( 627 MUST_USE_RESULT MaybeObject* AllocateEmptyJSArray(
625 ElementsKind elements_kind, 628 ElementsKind elements_kind,
626 PretenureFlag pretenure = NOT_TENURED) { 629 PretenureFlag pretenure = NOT_TENURED) {
627 return AllocateJSArrayAndStorage(elements_kind, 0, 0, 630 return AllocateJSArrayAndStorage(elements_kind, 0, 0,
628 DONT_INITIALIZE_ARRAY_ELEMENTS, 631 DONT_INITIALIZE_ARRAY_ELEMENTS,
629 pretenure); 632 pretenure);
(...skipping 2399 matching lines...) Expand 10 before | Expand all | Expand 10 after
3029 AssertNoAllocation no_alloc; // i.e. no gc allowed. 3032 AssertNoAllocation no_alloc; // i.e. no gc allowed.
3030 3033
3031 private: 3034 private:
3032 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 3035 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
3033 }; 3036 };
3034 #endif // DEBUG 3037 #endif // DEBUG
3035 3038
3036 } } // namespace v8::internal 3039 } } // namespace v8::internal
3037 3040
3038 #endif // V8_HEAP_H_ 3041 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/full-codegen.cc ('k') | src/heap.cc » ('j') | src/objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698