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