OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 | 159 |
160 // Creates a new external String object. There are two String encodings | 160 // Creates a new external String object. There are two String encodings |
161 // in the system: ASCII and two byte. Unlike other String types, it does | 161 // in the system: ASCII and two byte. Unlike other String types, it does |
162 // not make sense to have a UTF-8 factory function for external strings, | 162 // not make sense to have a UTF-8 factory function for external strings, |
163 // because we cannot change the underlying buffer. | 163 // because we cannot change the underlying buffer. |
164 Handle<String> NewExternalStringFromAscii( | 164 Handle<String> NewExternalStringFromAscii( |
165 const ExternalAsciiString::Resource* resource); | 165 const ExternalAsciiString::Resource* resource); |
166 Handle<String> NewExternalStringFromTwoByte( | 166 Handle<String> NewExternalStringFromTwoByte( |
167 const ExternalTwoByteString::Resource* resource); | 167 const ExternalTwoByteString::Resource* resource); |
168 | 168 |
| 169 // Create a symbol. |
| 170 Handle<Symbol> NewSymbol(); |
| 171 |
169 // Create a global (but otherwise uninitialized) context. | 172 // Create a global (but otherwise uninitialized) context. |
170 Handle<Context> NewNativeContext(); | 173 Handle<Context> NewNativeContext(); |
171 | 174 |
172 // Create a global context. | 175 // Create a global context. |
173 Handle<Context> NewGlobalContext(Handle<JSFunction> function, | 176 Handle<Context> NewGlobalContext(Handle<JSFunction> function, |
174 Handle<ScopeInfo> scope_info); | 177 Handle<ScopeInfo> scope_info); |
175 | 178 |
176 // Create a module context. | 179 // Create a module context. |
177 Handle<Context> NewModuleContext(Handle<ScopeInfo> scope_info); | 180 Handle<Context> NewModuleContext(Handle<ScopeInfo> scope_info); |
178 | 181 |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
518 // Update the map cache in the native context with (keys, map) | 521 // Update the map cache in the native context with (keys, map) |
519 Handle<MapCache> AddToMapCache(Handle<Context> context, | 522 Handle<MapCache> AddToMapCache(Handle<Context> context, |
520 Handle<FixedArray> keys, | 523 Handle<FixedArray> keys, |
521 Handle<Map> map); | 524 Handle<Map> map); |
522 }; | 525 }; |
523 | 526 |
524 | 527 |
525 } } // namespace v8::internal | 528 } } // namespace v8::internal |
526 | 529 |
527 #endif // V8_FACTORY_H_ | 530 #endif // V8_FACTORY_H_ |
OLD | NEW |