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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 54 |
55 static Handle<DescriptorArray> NewDescriptorArray(int number_of_descriptors); | 55 static Handle<DescriptorArray> NewDescriptorArray(int number_of_descriptors); |
56 static Handle<DeoptimizationInputData> NewDeoptimizationInputData( | 56 static Handle<DeoptimizationInputData> NewDeoptimizationInputData( |
57 int deopt_entry_count, | 57 int deopt_entry_count, |
58 PretenureFlag pretenure); | 58 PretenureFlag pretenure); |
59 static Handle<DeoptimizationOutputData> NewDeoptimizationOutputData( | 59 static Handle<DeoptimizationOutputData> NewDeoptimizationOutputData( |
60 int deopt_entry_count, | 60 int deopt_entry_count, |
61 PretenureFlag pretenure); | 61 PretenureFlag pretenure); |
62 | 62 |
63 static Handle<String> LookupSymbol(Vector<const char> str); | 63 static Handle<String> LookupSymbol(Vector<const char> str); |
| 64 static Handle<String> LookupAsciiSymbol(Vector<const char> str); |
| 65 static Handle<String> LookupTwoByteSymbol(Vector<const uc16> str); |
64 static Handle<String> LookupAsciiSymbol(const char* str) { | 66 static Handle<String> LookupAsciiSymbol(const char* str) { |
65 return LookupSymbol(CStrVector(str)); | 67 return LookupSymbol(CStrVector(str)); |
66 } | 68 } |
67 | 69 |
68 | 70 |
69 // String creation functions. Most of the string creation functions take | 71 // String creation functions. Most of the string creation functions take |
70 // a Heap::PretenureFlag argument to optionally request that they be | 72 // a Heap::PretenureFlag argument to optionally request that they be |
71 // allocated in the old generation. The pretenure flag defaults to | 73 // allocated in the old generation. The pretenure flag defaults to |
72 // DONT_TENURE. | 74 // DONT_TENURE. |
73 // | 75 // |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 // Update the map cache in the global context with (keys, map) | 412 // Update the map cache in the global context with (keys, map) |
411 static Handle<MapCache> AddToMapCache(Handle<Context> context, | 413 static Handle<MapCache> AddToMapCache(Handle<Context> context, |
412 Handle<FixedArray> keys, | 414 Handle<FixedArray> keys, |
413 Handle<Map> map); | 415 Handle<Map> map); |
414 }; | 416 }; |
415 | 417 |
416 | 418 |
417 } } // namespace v8::internal | 419 } } // namespace v8::internal |
418 | 420 |
419 #endif // V8_FACTORY_H_ | 421 #endif // V8_FACTORY_H_ |
OLD | NEW |