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 310 matching lines...) Loading... |
321 void EnsureCanContainHeapObjectElements(Handle<JSArray> array); | 321 void EnsureCanContainHeapObjectElements(Handle<JSArray> array); |
322 void EnsureCanContainElements(Handle<JSArray> array, | 322 void EnsureCanContainElements(Handle<JSArray> array, |
323 Handle<FixedArrayBase> elements, | 323 Handle<FixedArrayBase> elements, |
324 uint32_t length, | 324 uint32_t length, |
325 EnsureElementsMode mode); | 325 EnsureElementsMode mode); |
326 | 326 |
327 Handle<JSArrayBuffer> NewJSArrayBuffer(); | 327 Handle<JSArrayBuffer> NewJSArrayBuffer(); |
328 | 328 |
329 Handle<JSTypedArray> NewJSTypedArray(ExternalArrayType type); | 329 Handle<JSTypedArray> NewJSTypedArray(ExternalArrayType type); |
330 | 330 |
| 331 Handle<JSDataView> NewJSDataView(); |
| 332 |
331 Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype); | 333 Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype); |
332 | 334 |
333 // Change the type of the argument into a JS object/function and reinitialize. | 335 // Change the type of the argument into a JS object/function and reinitialize. |
334 void BecomeJSObject(Handle<JSReceiver> object); | 336 void BecomeJSObject(Handle<JSReceiver> object); |
335 void BecomeJSFunction(Handle<JSReceiver> object); | 337 void BecomeJSFunction(Handle<JSReceiver> object); |
336 | 338 |
337 void SetIdentityHash(Handle<JSObject> object, Smi* hash); | 339 void SetIdentityHash(Handle<JSObject> object, Smi* hash); |
338 | 340 |
339 Handle<JSFunction> NewFunction(Handle<String> name, | 341 Handle<JSFunction> NewFunction(Handle<String> name, |
340 Handle<Object> prototype); | 342 Handle<Object> prototype); |
(...skipping 214 matching lines...) Loading... |
555 } else { | 557 } else { |
556 return NewNumber(static_cast<double>(value), pretenure); | 558 return NewNumber(static_cast<double>(value), pretenure); |
557 } | 559 } |
558 } | 560 } |
559 | 561 |
560 | 562 |
561 | 563 |
562 } } // namespace v8::internal | 564 } } // namespace v8::internal |
563 | 565 |
564 #endif // V8_FACTORY_H_ | 566 #endif // V8_FACTORY_H_ |
OLD | NEW |