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 23 matching lines...) Expand all Loading... |
34 | 34 |
35 | 35 |
36 // Interface for handle based allocation. | 36 // Interface for handle based allocation. |
37 | 37 |
38 class Factory : public AllStatic { | 38 class Factory : public AllStatic { |
39 public: | 39 public: |
40 // Allocate a new fixed array. | 40 // Allocate a new fixed array. |
41 static Handle<FixedArray> NewFixedArray( | 41 static Handle<FixedArray> NewFixedArray( |
42 int size, | 42 int size, |
43 PretenureFlag pretenure = NOT_TENURED); | 43 PretenureFlag pretenure = NOT_TENURED); |
| 44 static Handle<Dictionary> NewDictionary(int at_least_space_for); |
44 | 45 |
45 static Handle<DescriptorArray> NewDescriptorArray(int number_of_descriptors); | 46 static Handle<DescriptorArray> NewDescriptorArray(int number_of_descriptors); |
46 | 47 |
47 static Handle<String> LookupSymbol(Vector<const char> str); | 48 static Handle<String> LookupSymbol(Vector<const char> str); |
48 static Handle<String> LookupAsciiSymbol(const char* str) { | 49 static Handle<String> LookupAsciiSymbol(const char* str) { |
49 return LookupSymbol(CStrVector(str)); | 50 return LookupSymbol(CStrVector(str)); |
50 } | 51 } |
51 | 52 |
52 | 53 |
53 // String creation functions. Most of the string creation functions take | 54 // String creation functions. Most of the string creation functions take |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 // Update the map cache in the global context with (keys, map) | 335 // Update the map cache in the global context with (keys, map) |
335 static Handle<MapCache> AddToMapCache(Handle<Context> context, | 336 static Handle<MapCache> AddToMapCache(Handle<Context> context, |
336 Handle<FixedArray> keys, | 337 Handle<FixedArray> keys, |
337 Handle<Map> map); | 338 Handle<Map> map); |
338 }; | 339 }; |
339 | 340 |
340 | 341 |
341 } } // namespace v8::internal | 342 } } // namespace v8::internal |
342 | 343 |
343 #endif // V8_FACTORY_H_ | 344 #endif // V8_FACTORY_H_ |
OLD | NEW |