OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 | 163 |
164 static Handle<Map> CopyMapDropTransitions(Handle<Map> map); | 164 static Handle<Map> CopyMapDropTransitions(Handle<Map> map); |
165 | 165 |
166 static Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array); | 166 static Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array); |
167 | 167 |
168 // Numbers (eg, literals) are pretenured by the parser. | 168 // Numbers (eg, literals) are pretenured by the parser. |
169 static Handle<Object> NewNumber(double value, | 169 static Handle<Object> NewNumber(double value, |
170 PretenureFlag pretenure = NOT_TENURED); | 170 PretenureFlag pretenure = NOT_TENURED); |
171 | 171 |
172 static Handle<Object> NewNumberFromInt(int value); | 172 static Handle<Object> NewNumberFromInt(int value); |
| 173 static Handle<Object> NewNumberFromUint(uint32_t value); |
173 | 174 |
174 // These objects are used by the api to create env-independent data | 175 // These objects are used by the api to create env-independent data |
175 // structures in the heap. | 176 // structures in the heap. |
176 static Handle<JSObject> NewNeanderObject(); | 177 static Handle<JSObject> NewNeanderObject(); |
177 | 178 |
178 static Handle<JSObject> NewArgumentsObject(Handle<Object> callee, int length); | 179 static Handle<JSObject> NewArgumentsObject(Handle<Object> callee, int length); |
179 | 180 |
180 // JS objects are pretenured when allocated by the bootstrapper and | 181 // JS objects are pretenured when allocated by the bootstrapper and |
181 // runtime. | 182 // runtime. |
182 static Handle<JSObject> NewJSObject(Handle<JSFunction> constructor, | 183 static Handle<JSObject> NewJSObject(Handle<JSFunction> constructor, |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 // Update the map cache in the global context with (keys, map) | 342 // Update the map cache in the global context with (keys, map) |
342 static Handle<MapCache> AddToMapCache(Handle<Context> context, | 343 static Handle<MapCache> AddToMapCache(Handle<Context> context, |
343 Handle<FixedArray> keys, | 344 Handle<FixedArray> keys, |
344 Handle<Map> map); | 345 Handle<Map> map); |
345 }; | 346 }; |
346 | 347 |
347 | 348 |
348 } } // namespace v8::internal | 349 } } // namespace v8::internal |
349 | 350 |
350 #endif // V8_FACTORY_H_ | 351 #endif // V8_FACTORY_H_ |
OLD | NEW |