| 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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> NewGlobalContext(); | 163 Handle<Context> NewGlobalContext(); |
| 164 | 164 |
| 165 // Create a module context. | 165 // Create a module context. |
| 166 Handle<Context> NewModuleContext(Handle<Context> previous, | 166 Handle<Context> NewModuleContext(Handle<ScopeInfo> scope_info); |
| 167 Handle<ScopeInfo> scope_info); | |
| 168 | 167 |
| 169 // Create a function context. | 168 // Create a function context. |
| 170 Handle<Context> NewFunctionContext(int length, Handle<JSFunction> function); | 169 Handle<Context> NewFunctionContext(int length, Handle<JSFunction> function); |
| 171 | 170 |
| 172 // Create a catch context. | 171 // Create a catch context. |
| 173 Handle<Context> NewCatchContext(Handle<JSFunction> function, | 172 Handle<Context> NewCatchContext(Handle<JSFunction> function, |
| 174 Handle<Context> previous, | 173 Handle<Context> previous, |
| 175 Handle<String> name, | 174 Handle<String> name, |
| 176 Handle<Object> thrown_object); | 175 Handle<Object> thrown_object); |
| 177 | 176 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 PretenureFlag pretenure = NOT_TENURED); | 259 PretenureFlag pretenure = NOT_TENURED); |
| 261 | 260 |
| 262 // Global objects are pretenured. | 261 // Global objects are pretenured. |
| 263 Handle<GlobalObject> NewGlobalObject(Handle<JSFunction> constructor); | 262 Handle<GlobalObject> NewGlobalObject(Handle<JSFunction> constructor); |
| 264 | 263 |
| 265 // JS objects are pretenured when allocated by the bootstrapper and | 264 // JS objects are pretenured when allocated by the bootstrapper and |
| 266 // runtime. | 265 // runtime. |
| 267 Handle<JSObject> NewJSObjectFromMap(Handle<Map> map); | 266 Handle<JSObject> NewJSObjectFromMap(Handle<Map> map); |
| 268 | 267 |
| 269 // JS modules are pretenured. | 268 // JS modules are pretenured. |
| 270 Handle<JSModule> NewJSModule(); | 269 Handle<JSModule> NewJSModule(Handle<Context> context, |
| 270 Handle<ScopeInfo> scope_info); |
| 271 | 271 |
| 272 // JS arrays are pretenured when allocated by the parser. | 272 // JS arrays are pretenured when allocated by the parser. |
| 273 Handle<JSArray> NewJSArray( | 273 Handle<JSArray> NewJSArray( |
| 274 int capacity, | 274 int capacity, |
| 275 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND, | 275 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND, |
| 276 PretenureFlag pretenure = NOT_TENURED); | 276 PretenureFlag pretenure = NOT_TENURED); |
| 277 | 277 |
| 278 Handle<JSArray> NewJSArrayWithElements( | 278 Handle<JSArray> NewJSArrayWithElements( |
| 279 Handle<FixedArrayBase> elements, | 279 Handle<FixedArrayBase> elements, |
| 280 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND, | 280 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND, |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 513 // Update the map cache in the global context with (keys, map) | 513 // Update the map cache in the global context with (keys, map) |
| 514 Handle<MapCache> AddToMapCache(Handle<Context> context, | 514 Handle<MapCache> AddToMapCache(Handle<Context> context, |
| 515 Handle<FixedArray> keys, | 515 Handle<FixedArray> keys, |
| 516 Handle<Map> map); | 516 Handle<Map> map); |
| 517 }; | 517 }; |
| 518 | 518 |
| 519 | 519 |
| 520 } } // namespace v8::internal | 520 } } // namespace v8::internal |
| 521 | 521 |
| 522 #endif // V8_FACTORY_H_ | 522 #endif // V8_FACTORY_H_ |
| OLD | NEW |