| OLD | NEW | 
|---|
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. | 
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without | 
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are | 
| 4 // met: | 4 // met: | 
| 5 // | 5 // | 
| 6 //     * Redistributions of source code must retain the above copyright | 6 //     * Redistributions of source code must retain the above copyright | 
| 7 //       notice, this list of conditions and the following disclaimer. | 7 //       notice, this list of conditions and the following disclaimer. | 
| 8 //     * Redistributions in binary form must reproduce the above | 8 //     * Redistributions in binary form must reproduce the above | 
| 9 //       copyright notice, this list of conditions and the following | 9 //       copyright notice, this list of conditions and the following | 
| 10 //       disclaimer in the documentation and/or other materials provided | 10 //       disclaimer in the documentation and/or other materials provided | 
| (...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 367   void NewJSArrayStorage( | 367   void NewJSArrayStorage( | 
| 368       Handle<JSArray> array, | 368       Handle<JSArray> array, | 
| 369       int length, | 369       int length, | 
| 370       int capacity, | 370       int capacity, | 
| 371       ArrayStorageAllocationMode mode = DONT_INITIALIZE_ARRAY_ELEMENTS); | 371       ArrayStorageAllocationMode mode = DONT_INITIALIZE_ARRAY_ELEMENTS); | 
| 372 | 372 | 
| 373   void SetElementsCapacityAndLength(Handle<JSArray> array, | 373   void SetElementsCapacityAndLength(Handle<JSArray> array, | 
| 374                                     int capacity, | 374                                     int capacity, | 
| 375                                     int length); | 375                                     int length); | 
| 376 | 376 | 
| 377   void SetContent(Handle<JSArray> array, Handle<FixedArrayBase> elements); |  | 
| 378 |  | 
| 379   Handle<JSGeneratorObject> NewJSGeneratorObject(Handle<JSFunction> function); | 377   Handle<JSGeneratorObject> NewJSGeneratorObject(Handle<JSFunction> function); | 
| 380 | 378 | 
| 381   Handle<JSArrayBuffer> NewJSArrayBuffer(); | 379   Handle<JSArrayBuffer> NewJSArrayBuffer(); | 
| 382 | 380 | 
| 383   Handle<JSTypedArray> NewJSTypedArray(ExternalArrayType type); | 381   Handle<JSTypedArray> NewJSTypedArray(ExternalArrayType type); | 
| 384 | 382 | 
| 385   Handle<JSDataView> NewJSDataView(); | 383   Handle<JSDataView> NewJSDataView(); | 
| 386 | 384 | 
| 387   Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype); | 385   Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype); | 
| 388 | 386 | 
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 617                           isolate()); | 615                           isolate()); | 
| 618   } else { | 616   } else { | 
| 619     return NewNumber(static_cast<double>(value), pretenure); | 617     return NewNumber(static_cast<double>(value), pretenure); | 
| 620   } | 618   } | 
| 621 } | 619 } | 
| 622 | 620 | 
| 623 | 621 | 
| 624 } }  // namespace v8::internal | 622 } }  // namespace v8::internal | 
| 625 | 623 | 
| 626 #endif  // V8_FACTORY_H_ | 624 #endif  // V8_FACTORY_H_ | 
| OLD | NEW | 
|---|