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

Side by Side Diff: src/factory.h

Issue 1302173007: [es6] Introduce a dedicated JSIteratorResult type. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 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/contexts.h ('k') | src/factory.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 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 10
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 Handle<JSDataView> NewJSDataView(Handle<JSArrayBuffer> buffer, 468 Handle<JSDataView> NewJSDataView(Handle<JSArrayBuffer> buffer,
469 size_t byte_offset, size_t byte_length); 469 size_t byte_offset, size_t byte_length);
470 470
471 Handle<JSMap> NewJSMap(); 471 Handle<JSMap> NewJSMap();
472 Handle<JSSet> NewJSSet(); 472 Handle<JSSet> NewJSSet();
473 473
474 // TODO(aandrey): Maybe these should take table, index and kind arguments. 474 // TODO(aandrey): Maybe these should take table, index and kind arguments.
475 Handle<JSMapIterator> NewJSMapIterator(); 475 Handle<JSMapIterator> NewJSMapIterator();
476 Handle<JSSetIterator> NewJSSetIterator(); 476 Handle<JSSetIterator> NewJSSetIterator();
477 477
478 // Creates a new JSIteratorResult object with the arguments {value} and
479 // {done}. Implemented according to ES6 section 7.4.7 CreateIterResultObject.
480 Handle<JSIteratorResult> NewJSIteratorResult(Handle<Object> value,
481 Handle<Object> done);
482
478 // Allocates a Harmony proxy. 483 // Allocates a Harmony proxy.
479 Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype); 484 Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype);
480 485
481 // Allocates a Harmony function proxy. 486 // Allocates a Harmony function proxy.
482 Handle<JSProxy> NewJSFunctionProxy(Handle<Object> handler, 487 Handle<JSProxy> NewJSFunctionProxy(Handle<Object> handler,
483 Handle<Object> call_trap, 488 Handle<Object> call_trap,
484 Handle<Object> construct_trap, 489 Handle<Object> construct_trap,
485 Handle<Object> prototype); 490 Handle<Object> prototype);
486 491
487 // Reinitialize an JSGlobalProxy based on a constructor. The object 492 // Reinitialize an JSGlobalProxy based on a constructor. The object
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 // Reinitialize a JSProxy into an (empty) JS object of respective type and 722 // Reinitialize a JSProxy into an (empty) JS object of respective type and
718 // size, but keeping the original prototype. The receiver must have at least 723 // size, but keeping the original prototype. The receiver must have at least
719 // the size of the new object. The object is reinitialized and behaves as an 724 // the size of the new object. The object is reinitialized and behaves as an
720 // object that has been freshly allocated. 725 // object that has been freshly allocated.
721 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); 726 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size);
722 }; 727 };
723 728
724 } } // namespace v8::internal 729 } } // namespace v8::internal
725 730
726 #endif // V8_FACTORY_H_ 731 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/contexts.h ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698