| 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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 void SetContent(Handle<JSArray> array, Handle<FixedArrayBase> elements); | 313 void SetContent(Handle<JSArray> array, Handle<FixedArrayBase> elements); |
| 314 | 314 |
| 315 void EnsureCanContainHeapObjectElements(Handle<JSArray> array); | 315 void EnsureCanContainHeapObjectElements(Handle<JSArray> array); |
| 316 void EnsureCanContainElements(Handle<JSArray> array, | 316 void EnsureCanContainElements(Handle<JSArray> array, |
| 317 Handle<FixedArrayBase> elements, | 317 Handle<FixedArrayBase> elements, |
| 318 uint32_t length, | 318 uint32_t length, |
| 319 EnsureElementsMode mode); | 319 EnsureElementsMode mode); |
| 320 | 320 |
| 321 Handle<JSArrayBuffer> NewJSArrayBuffer(); | 321 Handle<JSArrayBuffer> NewJSArrayBuffer(); |
| 322 | 322 |
| 323 Handle<JSDataView> NewJSDataView(); |
| 324 |
| 323 Handle<JSTypedArray> NewJSTypedArray(ExternalArrayType type); | 325 Handle<JSTypedArray> NewJSTypedArray(ExternalArrayType type); |
| 324 | 326 |
| 325 Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype); | 327 Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype); |
| 326 | 328 |
| 327 // Change the type of the argument into a JS object/function and reinitialize. | 329 // Change the type of the argument into a JS object/function and reinitialize. |
| 328 void BecomeJSObject(Handle<JSReceiver> object); | 330 void BecomeJSObject(Handle<JSReceiver> object); |
| 329 void BecomeJSFunction(Handle<JSReceiver> object); | 331 void BecomeJSFunction(Handle<JSReceiver> object); |
| 330 | 332 |
| 331 void SetIdentityHash(Handle<JSObject> object, Smi* hash); | 333 void SetIdentityHash(Handle<JSObject> object, Smi* hash); |
| 332 | 334 |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 549 } else { | 551 } else { |
| 550 return NewNumber(static_cast<double>(value), pretenure); | 552 return NewNumber(static_cast<double>(value), pretenure); |
| 551 } | 553 } |
| 552 } | 554 } |
| 553 | 555 |
| 554 | 556 |
| 555 | 557 |
| 556 } } // namespace v8::internal | 558 } } // namespace v8::internal |
| 557 | 559 |
| 558 #endif // V8_FACTORY_H_ | 560 #endif // V8_FACTORY_H_ |
| OLD | NEW |