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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 // Copy the map adding more inobject properties if possible without | 189 // Copy the map adding more inobject properties if possible without |
190 // overflowing the instance size. | 190 // overflowing the instance size. |
191 static Handle<Map> CopyMap(Handle<Map> map, int extra_inobject_props); | 191 static Handle<Map> CopyMap(Handle<Map> map, int extra_inobject_props); |
192 | 192 |
193 static Handle<Map> CopyMapDropTransitions(Handle<Map> map); | 193 static Handle<Map> CopyMapDropTransitions(Handle<Map> map); |
194 | 194 |
195 static Handle<Map> GetFastElementsMap(Handle<Map> map); | 195 static Handle<Map> GetFastElementsMap(Handle<Map> map); |
196 | 196 |
197 static Handle<Map> GetSlowElementsMap(Handle<Map> map); | 197 static Handle<Map> GetSlowElementsMap(Handle<Map> map); |
198 | 198 |
| 199 static Handle<Map> GetPixelArrayElementsMap(Handle<Map> map); |
| 200 |
199 static Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array); | 201 static Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array); |
200 | 202 |
201 // Numbers (eg, literals) are pretenured by the parser. | 203 // Numbers (eg, literals) are pretenured by the parser. |
202 static Handle<Object> NewNumber(double value, | 204 static Handle<Object> NewNumber(double value, |
203 PretenureFlag pretenure = NOT_TENURED); | 205 PretenureFlag pretenure = NOT_TENURED); |
204 | 206 |
205 static Handle<Object> NewNumberFromInt(int value); | 207 static Handle<Object> NewNumberFromInt(int value); |
206 static Handle<Object> NewNumberFromUint(uint32_t value); | 208 static Handle<Object> NewNumberFromUint(uint32_t value); |
207 | 209 |
208 // These objects are used by the api to create env-independent data | 210 // These objects are used by the api to create env-independent data |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 // Update the map cache in the global context with (keys, map) | 423 // Update the map cache in the global context with (keys, map) |
422 static Handle<MapCache> AddToMapCache(Handle<Context> context, | 424 static Handle<MapCache> AddToMapCache(Handle<Context> context, |
423 Handle<FixedArray> keys, | 425 Handle<FixedArray> keys, |
424 Handle<Map> map); | 426 Handle<Map> map); |
425 }; | 427 }; |
426 | 428 |
427 | 429 |
428 } } // namespace v8::internal | 430 } } // namespace v8::internal |
429 | 431 |
430 #endif // V8_FACTORY_H_ | 432 #endif // V8_FACTORY_H_ |
OLD | NEW |