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

Side by Side Diff: src/factory.h

Issue 1069883002: WIP SharedArrayBuffer implementation (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
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 9
10 namespace v8 { 10 namespace v8 {
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 } 436 }
437 437
438 void NewJSArrayStorage( 438 void NewJSArrayStorage(
439 Handle<JSArray> array, 439 Handle<JSArray> array,
440 int length, 440 int length,
441 int capacity, 441 int capacity,
442 ArrayStorageAllocationMode mode = DONT_INITIALIZE_ARRAY_ELEMENTS); 442 ArrayStorageAllocationMode mode = DONT_INITIALIZE_ARRAY_ELEMENTS);
443 443
444 Handle<JSGeneratorObject> NewJSGeneratorObject(Handle<JSFunction> function); 444 Handle<JSGeneratorObject> NewJSGeneratorObject(Handle<JSFunction> function);
445 445
446 Handle<JSArrayBuffer> NewJSArrayBuffer(); 446 Handle<JSArrayBuffer> NewJSArrayBuffer(bool is_shared = false);
Jarin 2015/04/16 14:55:28 Please use an enum here and below (rather than a b
binji 2015/04/16 21:00:34 Done.
447 447
448 Handle<JSTypedArray> NewJSTypedArray(ExternalArrayType type); 448 Handle<JSTypedArray> NewJSTypedArray(ExternalArrayType type,
449 bool is_shared = false);
449 450
450 // Creates a new JSTypedArray with the specified buffer. 451 // Creates a new JSTypedArray with the specified buffer.
451 Handle<JSTypedArray> NewJSTypedArray(ExternalArrayType type, 452 Handle<JSTypedArray> NewJSTypedArray(ExternalArrayType type,
452 Handle<JSArrayBuffer> buffer, 453 Handle<JSArrayBuffer> buffer,
453 size_t byte_offset, size_t length); 454 size_t byte_offset, size_t length,
455 bool is_shared = false);
454 456
455 Handle<JSDataView> NewJSDataView(); 457 Handle<JSDataView> NewJSDataView();
456 Handle<JSDataView> NewJSDataView(Handle<JSArrayBuffer> buffer, 458 Handle<JSDataView> NewJSDataView(Handle<JSArrayBuffer> buffer,
457 size_t byte_offset, size_t byte_length); 459 size_t byte_offset, size_t byte_length);
458 460
459 // TODO(aandrey): Maybe these should take table, index and kind arguments. 461 // TODO(aandrey): Maybe these should take table, index and kind arguments.
460 Handle<JSMapIterator> NewJSMapIterator(); 462 Handle<JSMapIterator> NewJSMapIterator();
461 Handle<JSSetIterator> NewJSSetIterator(); 463 Handle<JSSetIterator> NewJSSetIterator();
462 464
463 // Allocates a Harmony proxy. 465 // Allocates a Harmony proxy.
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 // Reinitialize a JSProxy into an (empty) JS object of respective type and 718 // Reinitialize a JSProxy into an (empty) JS object of respective type and
717 // size, but keeping the original prototype. The receiver must have at least 719 // size, but keeping the original prototype. The receiver must have at least
718 // the size of the new object. The object is reinitialized and behaves as an 720 // the size of the new object. The object is reinitialized and behaves as an
719 // object that has been freshly allocated. 721 // object that has been freshly allocated.
720 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); 722 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size);
721 }; 723 };
722 724
723 } } // namespace v8::internal 725 } } // namespace v8::internal
724 726
725 #endif // V8_FACTORY_H_ 727 #endif // V8_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698