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

Side by Side Diff: src/factory.h

Issue 1053203007: Revert of Reland "Remove the weak list of views from array buffers" (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
« no previous file with comments | « src/elements.cc ('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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 int length, 441 int length,
442 int capacity, 442 int capacity,
443 ArrayStorageAllocationMode mode = DONT_INITIALIZE_ARRAY_ELEMENTS); 443 ArrayStorageAllocationMode mode = DONT_INITIALIZE_ARRAY_ELEMENTS);
444 444
445 Handle<JSGeneratorObject> NewJSGeneratorObject(Handle<JSFunction> function); 445 Handle<JSGeneratorObject> NewJSGeneratorObject(Handle<JSFunction> function);
446 446
447 Handle<JSArrayBuffer> NewJSArrayBuffer(); 447 Handle<JSArrayBuffer> NewJSArrayBuffer();
448 448
449 Handle<JSTypedArray> NewJSTypedArray(ExternalArrayType type); 449 Handle<JSTypedArray> NewJSTypedArray(ExternalArrayType type);
450 450
451 Handle<JSTypedArray> NewJSTypedArray(ElementsKind elements_kind);
452
453 // Creates a new JSTypedArray with the specified buffer. 451 // Creates a new JSTypedArray with the specified buffer.
454 Handle<JSTypedArray> NewJSTypedArray(ExternalArrayType type, 452 Handle<JSTypedArray> NewJSTypedArray(ExternalArrayType type,
455 Handle<JSArrayBuffer> buffer, 453 Handle<JSArrayBuffer> buffer,
456 size_t byte_offset, size_t length); 454 size_t byte_offset, size_t length);
457 455
458 // Creates a new on-heap JSTypedArray.
459 Handle<JSTypedArray> NewJSTypedArray(ElementsKind elements_kind,
460 size_t number_of_elements);
461
462 Handle<JSDataView> NewJSDataView(); 456 Handle<JSDataView> NewJSDataView();
463 Handle<JSDataView> NewJSDataView(Handle<JSArrayBuffer> buffer, 457 Handle<JSDataView> NewJSDataView(Handle<JSArrayBuffer> buffer,
464 size_t byte_offset, size_t byte_length); 458 size_t byte_offset, size_t byte_length);
465 459
466 // TODO(aandrey): Maybe these should take table, index and kind arguments. 460 // TODO(aandrey): Maybe these should take table, index and kind arguments.
467 Handle<JSMapIterator> NewJSMapIterator(); 461 Handle<JSMapIterator> NewJSMapIterator();
468 Handle<JSSetIterator> NewJSSetIterator(); 462 Handle<JSSetIterator> NewJSSetIterator();
469 463
470 // Allocates a Harmony proxy. 464 // Allocates a Harmony proxy.
471 Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype); 465 Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype);
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
746 // Reinitialize a JSProxy into an (empty) JS object of respective type and 740 // Reinitialize a JSProxy into an (empty) JS object of respective type and
747 // size, but keeping the original prototype. The receiver must have at least 741 // size, but keeping the original prototype. The receiver must have at least
748 // the size of the new object. The object is reinitialized and behaves as an 742 // the size of the new object. The object is reinitialized and behaves as an
749 // object that has been freshly allocated. 743 // object that has been freshly allocated.
750 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); 744 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size);
751 }; 745 };
752 746
753 } } // namespace v8::internal 747 } } // namespace v8::internal
754 748
755 #endif // V8_FACTORY_H_ 749 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/elements.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698