| 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 // Copy the map adding more inobject properties if possible without | 184 // Copy the map adding more inobject properties if possible without |
| 185 // overflowing the instance size. | 185 // overflowing the instance size. |
| 186 static Handle<Map> CopyMap(Handle<Map> map, int extra_inobject_props); | 186 static Handle<Map> CopyMap(Handle<Map> map, int extra_inobject_props); |
| 187 | 187 |
| 188 static Handle<Map> CopyMapDropTransitions(Handle<Map> map); | 188 static Handle<Map> CopyMapDropTransitions(Handle<Map> map); |
| 189 | 189 |
| 190 static Handle<Map> GetFastElementsMap(Handle<Map> map); | 190 static Handle<Map> GetFastElementsMap(Handle<Map> map); |
| 191 | 191 |
| 192 static Handle<Map> GetSlowElementsMap(Handle<Map> map); | 192 static Handle<Map> GetSlowElementsMap(Handle<Map> map); |
| 193 | 193 |
| 194 static Handle<Map> NewExternalArrayElementsMap(Handle<Map> map); | 194 static Handle<Map> GetExternalArrayElementsMap(Handle<Map> map, |
| 195 ExternalArrayType array_type); |
| 195 | 196 |
| 196 static Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array); | 197 static Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array); |
| 197 | 198 |
| 198 // Numbers (eg, literals) are pretenured by the parser. | 199 // Numbers (eg, literals) are pretenured by the parser. |
| 199 static Handle<Object> NewNumber(double value, | 200 static Handle<Object> NewNumber(double value, |
| 200 PretenureFlag pretenure = NOT_TENURED); | 201 PretenureFlag pretenure = NOT_TENURED); |
| 201 | 202 |
| 202 static Handle<Object> NewNumberFromInt(int value); | 203 static Handle<Object> NewNumberFromInt(int value); |
| 203 static Handle<Object> NewNumberFromUint(uint32_t value); | 204 static Handle<Object> NewNumberFromUint(uint32_t value); |
| 204 | 205 |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 // Update the map cache in the global context with (keys, map) | 420 // Update the map cache in the global context with (keys, map) |
| 420 static Handle<MapCache> AddToMapCache(Handle<Context> context, | 421 static Handle<MapCache> AddToMapCache(Handle<Context> context, |
| 421 Handle<FixedArray> keys, | 422 Handle<FixedArray> keys, |
| 422 Handle<Map> map); | 423 Handle<Map> map); |
| 423 }; | 424 }; |
| 424 | 425 |
| 425 | 426 |
| 426 } } // namespace v8::internal | 427 } } // namespace v8::internal |
| 427 | 428 |
| 428 #endif // V8_FACTORY_H_ | 429 #endif // V8_FACTORY_H_ |
| OLD | NEW |