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

Side by Side Diff: src/factory.h

Issue 641343005: Share code between Factory::NewJSTypedArray and API (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « src/api.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 9
10 namespace v8 { 10 namespace v8 {
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 432
433 Handle<JSGeneratorObject> NewJSGeneratorObject(Handle<JSFunction> function); 433 Handle<JSGeneratorObject> NewJSGeneratorObject(Handle<JSFunction> function);
434 434
435 Handle<JSArrayBuffer> NewJSArrayBuffer(); 435 Handle<JSArrayBuffer> NewJSArrayBuffer();
436 436
437 Handle<JSTypedArray> NewJSTypedArray(ExternalArrayType type); 437 Handle<JSTypedArray> NewJSTypedArray(ExternalArrayType type);
438 438
439 // Creates a new JSTypedArray with the specified buffer. 439 // Creates a new JSTypedArray with the specified buffer.
440 Handle<JSTypedArray> NewJSTypedArray(ExternalArrayType type, 440 Handle<JSTypedArray> NewJSTypedArray(ExternalArrayType type,
441 Handle<JSArrayBuffer> buffer, 441 Handle<JSArrayBuffer> buffer,
442 size_t length); 442 size_t byte_offset, size_t length);
443 443
444 Handle<JSDataView> NewJSDataView(); 444 Handle<JSDataView> NewJSDataView();
445 Handle<JSDataView> NewJSDataView(Handle<JSArrayBuffer> buffer,
446 size_t byte_offset, size_t byte_length);
445 447
446 // Allocates a Harmony proxy. 448 // Allocates a Harmony proxy.
447 Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype); 449 Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype);
448 450
449 // Allocates a Harmony function proxy. 451 // Allocates a Harmony function proxy.
450 Handle<JSProxy> NewJSFunctionProxy(Handle<Object> handler, 452 Handle<JSProxy> NewJSFunctionProxy(Handle<Object> handler,
451 Handle<Object> call_trap, 453 Handle<Object> call_trap,
452 Handle<Object> construct_trap, 454 Handle<Object> construct_trap,
453 Handle<Object> prototype); 455 Handle<Object> prototype);
454 456
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 // Reinitialize a JSProxy into an (empty) JS object of respective type and 717 // Reinitialize a JSProxy into an (empty) JS object of respective type and
716 // size, but keeping the original prototype. The receiver must have at least 718 // size, but keeping the original prototype. The receiver must have at least
717 // the size of the new object. The object is reinitialized and behaves as an 719 // the size of the new object. The object is reinitialized and behaves as an
718 // object that has been freshly allocated. 720 // object that has been freshly allocated.
719 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); 721 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size);
720 }; 722 };
721 723
722 } } // namespace v8::internal 724 } } // namespace v8::internal
723 725
724 #endif // V8_FACTORY_H_ 726 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698