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

Side by Side Diff: src/factory.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/ast.h ('k') | src/factory.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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 PretenureFlag pretenure = NOT_TENURED); 279 PretenureFlag pretenure = NOT_TENURED);
280 280
281 // Global objects are pretenured. 281 // Global objects are pretenured.
282 Handle<GlobalObject> NewGlobalObject(Handle<JSFunction> constructor); 282 Handle<GlobalObject> NewGlobalObject(Handle<JSFunction> constructor);
283 283
284 // JS objects are pretenured when allocated by the bootstrapper and 284 // JS objects are pretenured when allocated by the bootstrapper and
285 // runtime. 285 // runtime.
286 Handle<JSObject> NewJSObjectFromMap(Handle<Map> map, 286 Handle<JSObject> NewJSObjectFromMap(Handle<Map> map,
287 PretenureFlag pretenure = NOT_TENURED); 287 PretenureFlag pretenure = NOT_TENURED);
288 288
289 // JS generator iterators are not pretenured.
290 Handle<JSGeneratorIterator> NewJSGeneratorIterator(
291 Handle<JSFunction> function);
292
289 // JS modules are pretenured. 293 // JS modules are pretenured.
290 Handle<JSModule> NewJSModule(Handle<Context> context, 294 Handle<JSModule> NewJSModule(Handle<Context> context,
291 Handle<ScopeInfo> scope_info); 295 Handle<ScopeInfo> scope_info);
292 296
293 // JS arrays are pretenured when allocated by the parser. 297 // JS arrays are pretenured when allocated by the parser.
294 Handle<JSArray> NewJSArray( 298 Handle<JSArray> NewJSArray(
295 int capacity, 299 int capacity,
296 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND, 300 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND,
297 PretenureFlag pretenure = NOT_TENURED); 301 PretenureFlag pretenure = NOT_TENURED);
298 302
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 // Update the map cache in the native context with (keys, map) 530 // Update the map cache in the native context with (keys, map)
527 Handle<MapCache> AddToMapCache(Handle<Context> context, 531 Handle<MapCache> AddToMapCache(Handle<Context> context,
528 Handle<FixedArray> keys, 532 Handle<FixedArray> keys,
529 Handle<Map> map); 533 Handle<Map> map);
530 }; 534 };
531 535
532 536
533 } } // namespace v8::internal 537 } } // namespace v8::internal
534 538
535 #endif // V8_FACTORY_H_ 539 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/ast.h ('k') | src/factory.cc » ('j') | src/objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698