OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 // Copy the map adding more inobject properties if possible without | 185 // Copy the map adding more inobject properties if possible without |
186 // overflowing the instance size. | 186 // overflowing the instance size. |
187 Handle<Map> CopyMap(Handle<Map> map, int extra_inobject_props); | 187 Handle<Map> CopyMap(Handle<Map> map, int extra_inobject_props); |
188 | 188 |
189 Handle<Map> CopyMapDropTransitions(Handle<Map> map); | 189 Handle<Map> CopyMapDropTransitions(Handle<Map> map); |
190 | 190 |
191 Handle<Map> GetFastElementsMap(Handle<Map> map); | 191 Handle<Map> GetFastElementsMap(Handle<Map> map); |
192 | 192 |
193 Handle<Map> GetSlowElementsMap(Handle<Map> map); | 193 Handle<Map> GetSlowElementsMap(Handle<Map> map); |
194 | 194 |
195 Handle<Map> NewExternalArrayElementsMap(Handle<Map> map); | 195 Handle<Map> GetExternalArrayElementsMap(Handle<Map> map, |
| 196 ExternalArrayType array_type, |
| 197 bool safe_to_add_transition); |
196 | 198 |
197 Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array); | 199 Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array); |
198 | 200 |
199 // Numbers (eg, literals) are pretenured by the parser. | 201 // Numbers (eg, literals) are pretenured by the parser. |
200 Handle<Object> NewNumber(double value, | 202 Handle<Object> NewNumber(double value, |
201 PretenureFlag pretenure = NOT_TENURED); | 203 PretenureFlag pretenure = NOT_TENURED); |
202 | 204 |
203 Handle<Object> NewNumberFromInt(int value); | 205 Handle<Object> NewNumberFromInt(int value); |
204 Handle<Object> NewNumberFromUint(uint32_t value); | 206 Handle<Object> NewNumberFromUint(uint32_t value); |
205 | 207 |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 // Update the map cache in the global context with (keys, map) | 427 // Update the map cache in the global context with (keys, map) |
426 Handle<MapCache> AddToMapCache(Handle<Context> context, | 428 Handle<MapCache> AddToMapCache(Handle<Context> context, |
427 Handle<FixedArray> keys, | 429 Handle<FixedArray> keys, |
428 Handle<Map> map); | 430 Handle<Map> map); |
429 }; | 431 }; |
430 | 432 |
431 | 433 |
432 } } // namespace v8::internal | 434 } } // namespace v8::internal |
433 | 435 |
434 #endif // V8_FACTORY_H_ | 436 #endif // V8_FACTORY_H_ |
OLD | NEW |