| 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 // not make sense to have a UTF-8 factory function for external strings, | 155 // not make sense to have a UTF-8 factory function for external strings, |
| 156 // because we cannot change the underlying buffer. | 156 // because we cannot change the underlying buffer. |
| 157 Handle<String> NewExternalStringFromAscii( | 157 Handle<String> NewExternalStringFromAscii( |
| 158 const ExternalAsciiString::Resource* resource); | 158 const ExternalAsciiString::Resource* resource); |
| 159 Handle<String> NewExternalStringFromTwoByte( | 159 Handle<String> NewExternalStringFromTwoByte( |
| 160 const ExternalTwoByteString::Resource* resource); | 160 const ExternalTwoByteString::Resource* resource); |
| 161 | 161 |
| 162 // Create a global (but otherwise uninitialized) context. | 162 // Create a global (but otherwise uninitialized) context. |
| 163 Handle<Context> NewNativeContext(); | 163 Handle<Context> NewNativeContext(); |
| 164 | 164 |
| 165 // Create a global context. |
| 166 Handle<Context> NewGlobalContext(Handle<JSFunction> function, |
| 167 Handle<ScopeInfo> scope_info); |
| 168 |
| 165 // Create a module context. | 169 // Create a module context. |
| 166 Handle<Context> NewModuleContext(Handle<ScopeInfo> scope_info); | 170 Handle<Context> NewModuleContext(Handle<ScopeInfo> scope_info); |
| 167 | 171 |
| 168 // Create a function context. | 172 // Create a function context. |
| 169 Handle<Context> NewFunctionContext(int length, Handle<JSFunction> function); | 173 Handle<Context> NewFunctionContext(int length, Handle<JSFunction> function); |
| 170 | 174 |
| 171 // Create a catch context. | 175 // Create a catch context. |
| 172 Handle<Context> NewCatchContext(Handle<JSFunction> function, | 176 Handle<Context> NewCatchContext(Handle<JSFunction> function, |
| 173 Handle<Context> previous, | 177 Handle<Context> previous, |
| 174 Handle<String> name, | 178 Handle<String> name, |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 502 // Update the map cache in the native context with (keys, map) | 506 // Update the map cache in the native context with (keys, map) |
| 503 Handle<MapCache> AddToMapCache(Handle<Context> context, | 507 Handle<MapCache> AddToMapCache(Handle<Context> context, |
| 504 Handle<FixedArray> keys, | 508 Handle<FixedArray> keys, |
| 505 Handle<Map> map); | 509 Handle<Map> map); |
| 506 }; | 510 }; |
| 507 | 511 |
| 508 | 512 |
| 509 } } // namespace v8::internal | 513 } } // namespace v8::internal |
| 510 | 514 |
| 511 #endif // V8_FACTORY_H_ | 515 #endif // V8_FACTORY_H_ |
| OLD | NEW |