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

Side by Side Diff: src/factory.h

Issue 1157453002: Add basic API support for Map & Set (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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 10
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 size_t byte_offset, size_t length); 456 size_t byte_offset, size_t length);
457 457
458 // Creates a new on-heap JSTypedArray. 458 // Creates a new on-heap JSTypedArray.
459 Handle<JSTypedArray> NewJSTypedArray(ElementsKind elements_kind, 459 Handle<JSTypedArray> NewJSTypedArray(ElementsKind elements_kind,
460 size_t number_of_elements); 460 size_t number_of_elements);
461 461
462 Handle<JSDataView> NewJSDataView(); 462 Handle<JSDataView> NewJSDataView();
463 Handle<JSDataView> NewJSDataView(Handle<JSArrayBuffer> buffer, 463 Handle<JSDataView> NewJSDataView(Handle<JSArrayBuffer> buffer,
464 size_t byte_offset, size_t byte_length); 464 size_t byte_offset, size_t byte_length);
465 465
466 Handle<JSMap> NewJSMap();
467 Handle<JSSet> NewJSSet();
468
466 // TODO(aandrey): Maybe these should take table, index and kind arguments. 469 // TODO(aandrey): Maybe these should take table, index and kind arguments.
467 Handle<JSMapIterator> NewJSMapIterator(); 470 Handle<JSMapIterator> NewJSMapIterator();
468 Handle<JSSetIterator> NewJSSetIterator(); 471 Handle<JSSetIterator> NewJSSetIterator();
469 472
470 // Allocates a Harmony proxy. 473 // Allocates a Harmony proxy.
471 Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype); 474 Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype);
472 475
473 // Allocates a Harmony function proxy. 476 // Allocates a Harmony function proxy.
474 Handle<JSProxy> NewJSFunctionProxy(Handle<Object> handler, 477 Handle<JSProxy> NewJSFunctionProxy(Handle<Object> handler,
475 Handle<Object> call_trap, 478 Handle<Object> call_trap,
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
742 // Reinitialize a JSProxy into an (empty) JS object of respective type and 745 // Reinitialize a JSProxy into an (empty) JS object of respective type and
743 // size, but keeping the original prototype. The receiver must have at least 746 // size, but keeping the original prototype. The receiver must have at least
744 // the size of the new object. The object is reinitialized and behaves as an 747 // the size of the new object. The object is reinitialized and behaves as an
745 // object that has been freshly allocated. 748 // object that has been freshly allocated.
746 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); 749 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size);
747 }; 750 };
748 751
749 } } // namespace v8::internal 752 } } // namespace v8::internal
750 753
751 #endif // V8_FACTORY_H_ 754 #endif // V8_FACTORY_H_
OLDNEW
« src/bootstrapper.cc ('K') | « src/contexts.h ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698