| 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 // in the system: ASCII and two byte. Unlike other String types, it does | 177 // in the system: ASCII and two byte. Unlike other String types, it does |
| 178 // not make sense to have a UTF-8 factory function for external strings, | 178 // not make sense to have a UTF-8 factory function for external strings, |
| 179 // because we cannot change the underlying buffer. | 179 // because we cannot change the underlying buffer. |
| 180 Handle<String> NewExternalStringFromAscii( | 180 Handle<String> NewExternalStringFromAscii( |
| 181 const ExternalAsciiString::Resource* resource); | 181 const ExternalAsciiString::Resource* resource); |
| 182 Handle<String> NewExternalStringFromTwoByte( | 182 Handle<String> NewExternalStringFromTwoByte( |
| 183 const ExternalTwoByteString::Resource* resource); | 183 const ExternalTwoByteString::Resource* resource); |
| 184 | 184 |
| 185 // Create a symbol. | 185 // Create a symbol. |
| 186 Handle<Symbol> NewSymbol(); | 186 Handle<Symbol> NewSymbol(); |
| 187 Handle<Private> NewPrivate(); |
| 187 | 188 |
| 188 // Create a global (but otherwise uninitialized) context. | 189 // Create a global (but otherwise uninitialized) context. |
| 189 Handle<Context> NewNativeContext(); | 190 Handle<Context> NewNativeContext(); |
| 190 | 191 |
| 191 // Create a global context. | 192 // Create a global context. |
| 192 Handle<Context> NewGlobalContext(Handle<JSFunction> function, | 193 Handle<Context> NewGlobalContext(Handle<JSFunction> function, |
| 193 Handle<ScopeInfo> scope_info); | 194 Handle<ScopeInfo> scope_info); |
| 194 | 195 |
| 195 // Create a module context. | 196 // Create a module context. |
| 196 Handle<Context> NewModuleContext(Handle<ScopeInfo> scope_info); | 197 Handle<Context> NewModuleContext(Handle<ScopeInfo> scope_info); |
| (...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 675 } | 676 } |
| 676 | 677 |
| 677 private: | 678 private: |
| 678 Isolate* isolate_; | 679 Isolate* isolate_; |
| 679 }; | 680 }; |
| 680 | 681 |
| 681 | 682 |
| 682 } } // namespace v8::internal | 683 } } // namespace v8::internal |
| 683 | 684 |
| 684 #endif // V8_FACTORY_H_ | 685 #endif // V8_FACTORY_H_ |
| OLD | NEW |