OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 | 218 |
219 Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array); | 219 Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array); |
220 | 220 |
221 // Numbers (eg, literals) are pretenured by the parser. | 221 // Numbers (eg, literals) are pretenured by the parser. |
222 Handle<Object> NewNumber(double value, | 222 Handle<Object> NewNumber(double value, |
223 PretenureFlag pretenure = NOT_TENURED); | 223 PretenureFlag pretenure = NOT_TENURED); |
224 | 224 |
225 Handle<Object> NewNumberFromInt(int value); | 225 Handle<Object> NewNumberFromInt(int value); |
226 Handle<Object> NewNumberFromUint(uint32_t value); | 226 Handle<Object> NewNumberFromUint(uint32_t value); |
227 | 227 |
| 228 Handle<Object> NewBoxedNumber(double value); |
| 229 Handle<Object> NewBoxedString(Handle<String> value); |
| 230 Handle<Object> NewBoxedBoolean(bool value); |
| 231 |
228 // These objects are used by the api to create env-independent data | 232 // These objects are used by the api to create env-independent data |
229 // structures in the heap. | 233 // structures in the heap. |
230 Handle<JSObject> NewNeanderObject(); | 234 Handle<JSObject> NewNeanderObject(); |
231 | 235 |
232 Handle<JSObject> NewArgumentsObject(Handle<Object> callee, int length); | 236 Handle<JSObject> NewArgumentsObject(Handle<Object> callee, int length); |
233 | 237 |
234 // JS objects are pretenured when allocated by the bootstrapper and | 238 // JS objects are pretenured when allocated by the bootstrapper and |
235 // runtime. | 239 // runtime. |
236 Handle<JSObject> NewJSObject(Handle<JSFunction> constructor, | 240 Handle<JSObject> NewJSObject(Handle<JSFunction> constructor, |
237 PretenureFlag pretenure = NOT_TENURED); | 241 PretenureFlag pretenure = NOT_TENURED); |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 // Update the map cache in the global context with (keys, map) | 453 // Update the map cache in the global context with (keys, map) |
450 Handle<MapCache> AddToMapCache(Handle<Context> context, | 454 Handle<MapCache> AddToMapCache(Handle<Context> context, |
451 Handle<FixedArray> keys, | 455 Handle<FixedArray> keys, |
452 Handle<Map> map); | 456 Handle<Map> map); |
453 }; | 457 }; |
454 | 458 |
455 | 459 |
456 } } // namespace v8::internal | 460 } } // namespace v8::internal |
457 | 461 |
458 #endif // V8_FACTORY_H_ | 462 #endif // V8_FACTORY_H_ |
OLD | NEW |