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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 | 250 |
251 Handle<ByteArray> NewByteArray(int length, | 251 Handle<ByteArray> NewByteArray(int length, |
252 PretenureFlag pretenure = NOT_TENURED); | 252 PretenureFlag pretenure = NOT_TENURED); |
253 | 253 |
254 Handle<ExternalArray> NewExternalArray( | 254 Handle<ExternalArray> NewExternalArray( |
255 int length, | 255 int length, |
256 ExternalArrayType array_type, | 256 ExternalArrayType array_type, |
257 void* external_pointer, | 257 void* external_pointer, |
258 PretenureFlag pretenure = NOT_TENURED); | 258 PretenureFlag pretenure = NOT_TENURED); |
259 | 259 |
260 Handle<FixedTypedArrayBase> NewFixedTypedArray( | |
261 int length, | |
262 ExternalArrayType array_type, | |
263 PretenureFlag pretenure = NOT_TENURED); | |
264 | |
265 Handle<Cell> NewCell(Handle<Object> value); | 260 Handle<Cell> NewCell(Handle<Object> value); |
266 | 261 |
267 Handle<PropertyCell> NewPropertyCellWithHole(); | 262 Handle<PropertyCell> NewPropertyCellWithHole(); |
268 | 263 |
269 Handle<PropertyCell> NewPropertyCell(Handle<Object> value); | 264 Handle<PropertyCell> NewPropertyCell(Handle<Object> value); |
270 | 265 |
271 Handle<AllocationSite> NewAllocationSite(); | 266 Handle<AllocationSite> NewAllocationSite(); |
272 | 267 |
273 Handle<Map> NewMap( | 268 Handle<Map> NewMap( |
274 InstanceType type, | 269 InstanceType type, |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
598 isolate()); | 593 isolate()); |
599 } else { | 594 } else { |
600 return NewNumber(static_cast<double>(value), pretenure); | 595 return NewNumber(static_cast<double>(value), pretenure); |
601 } | 596 } |
602 } | 597 } |
603 | 598 |
604 | 599 |
605 } } // namespace v8::internal | 600 } } // namespace v8::internal |
606 | 601 |
607 #endif // V8_FACTORY_H_ | 602 #endif // V8_FACTORY_H_ |
OLD | NEW |