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

Side by Side Diff: src/factory.h

Issue 1680513002: [runtime] We don't need an actual instance type for JSIteratorResult. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_FACTORY_H_ 5 #ifndef V8_FACTORY_H_
6 #define V8_FACTORY_H_ 6 #define V8_FACTORY_H_
7 7
8 #include "src/isolate.h" 8 #include "src/isolate.h"
9 #include "src/messages.h" 9 #include "src/messages.h"
10 #include "src/type-feedback-vector.h" 10 #include "src/type-feedback-vector.h"
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 Handle<JSDataView> NewJSDataView(Handle<JSArrayBuffer> buffer, 462 Handle<JSDataView> NewJSDataView(Handle<JSArrayBuffer> buffer,
463 size_t byte_offset, size_t byte_length); 463 size_t byte_offset, size_t byte_length);
464 464
465 Handle<JSMap> NewJSMap(); 465 Handle<JSMap> NewJSMap();
466 Handle<JSSet> NewJSSet(); 466 Handle<JSSet> NewJSSet();
467 467
468 // TODO(aandrey): Maybe these should take table, index and kind arguments. 468 // TODO(aandrey): Maybe these should take table, index and kind arguments.
469 Handle<JSMapIterator> NewJSMapIterator(); 469 Handle<JSMapIterator> NewJSMapIterator();
470 Handle<JSSetIterator> NewJSSetIterator(); 470 Handle<JSSetIterator> NewJSSetIterator();
471 471
472 // Creates a new JSIteratorResult object with the arguments {value} and
473 // {done}. Implemented according to ES6 section 7.4.7 CreateIterResultObject.
474 Handle<JSIteratorResult> NewJSIteratorResult(Handle<Object> value,
475 Handle<Object> done);
476
477 // Allocates a bound function. 472 // Allocates a bound function.
478 MaybeHandle<JSBoundFunction> NewJSBoundFunction( 473 MaybeHandle<JSBoundFunction> NewJSBoundFunction(
479 Handle<JSReceiver> target_function, Handle<Object> bound_this, 474 Handle<JSReceiver> target_function, Handle<Object> bound_this,
480 Vector<Handle<Object>> bound_args); 475 Vector<Handle<Object>> bound_args);
481 476
482 // Allocates a Harmony proxy. 477 // Allocates a Harmony proxy.
483 Handle<JSProxy> NewJSProxy(Handle<JSReceiver> target, 478 Handle<JSProxy> NewJSProxy(Handle<JSReceiver> target,
484 Handle<JSReceiver> handler); 479 Handle<JSReceiver> handler);
485 480
486 // Reinitialize an JSGlobalProxy based on a constructor. The object 481 // Reinitialize an JSGlobalProxy based on a constructor. The object
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 // Create a JSArray with no elements and no length. 698 // Create a JSArray with no elements and no length.
704 Handle<JSArray> NewJSArray(ElementsKind elements_kind, 699 Handle<JSArray> NewJSArray(ElementsKind elements_kind,
705 Strength strength = Strength::WEAK, 700 Strength strength = Strength::WEAK,
706 PretenureFlag pretenure = NOT_TENURED); 701 PretenureFlag pretenure = NOT_TENURED);
707 }; 702 };
708 703
709 } // namespace internal 704 } // namespace internal
710 } // namespace v8 705 } // namespace v8
711 706
712 #endif // V8_FACTORY_H_ 707 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/crankshaft/hydrogen.cc ('k') | src/factory.cc » ('j') | src/objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698