| OLD | NEW | 
|    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 416 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  427       int length, |  427       int length, | 
|  428       int capacity, |  428       int capacity, | 
|  429       ArrayStorageAllocationMode mode = DONT_INITIALIZE_ARRAY_ELEMENTS); |  429       ArrayStorageAllocationMode mode = DONT_INITIALIZE_ARRAY_ELEMENTS); | 
|  430  |  430  | 
|  431   Handle<JSGeneratorObject> NewJSGeneratorObject(Handle<JSFunction> function); |  431   Handle<JSGeneratorObject> NewJSGeneratorObject(Handle<JSFunction> function); | 
|  432  |  432  | 
|  433   Handle<JSArrayBuffer> NewJSArrayBuffer(); |  433   Handle<JSArrayBuffer> NewJSArrayBuffer(); | 
|  434  |  434  | 
|  435   Handle<JSTypedArray> NewJSTypedArray(ExternalArrayType type); |  435   Handle<JSTypedArray> NewJSTypedArray(ExternalArrayType type); | 
|  436  |  436  | 
|  437   // Creates a new JSTypedArray with the specified buffer. |  | 
|  438   Handle<JSTypedArray> NewJSTypedArray(ExternalArrayType type, |  | 
|  439                                        Handle<JSArrayBuffer> buffer, |  | 
|  440                                        size_t length); |  | 
|  441  |  | 
|  442   Handle<JSDataView> NewJSDataView(); |  437   Handle<JSDataView> NewJSDataView(); | 
|  443  |  438  | 
|  444   // Allocates a Harmony proxy. |  439   // Allocates a Harmony proxy. | 
|  445   Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype); |  440   Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype); | 
|  446  |  441  | 
|  447   // Allocates a Harmony function proxy. |  442   // Allocates a Harmony function proxy. | 
|  448   Handle<JSProxy> NewJSFunctionProxy(Handle<Object> handler, |  443   Handle<JSProxy> NewJSFunctionProxy(Handle<Object> handler, | 
|  449                                      Handle<Object> call_trap, |  444                                      Handle<Object> call_trap, | 
|  450                                      Handle<Object> construct_trap, |  445                                      Handle<Object> construct_trap, | 
|  451                                      Handle<Object> prototype); |  446                                      Handle<Object> prototype); | 
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  713   // Reinitialize a JSProxy into an (empty) JS object of respective type and |  708   // Reinitialize a JSProxy into an (empty) JS object of respective type and | 
|  714   // size, but keeping the original prototype.  The receiver must have at least |  709   // size, but keeping the original prototype.  The receiver must have at least | 
|  715   // the size of the new object.  The object is reinitialized and behaves as an |  710   // the size of the new object.  The object is reinitialized and behaves as an | 
|  716   // object that has been freshly allocated. |  711   // object that has been freshly allocated. | 
|  717   void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); |  712   void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); | 
|  718 }; |  713 }; | 
|  719  |  714  | 
|  720 } }  // namespace v8::internal |  715 } }  // namespace v8::internal | 
|  721  |  716  | 
|  722 #endif  // V8_FACTORY_H_ |  717 #endif  // V8_FACTORY_H_ | 
| OLD | NEW |