| 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 Handle<JSObject> NewJSObjectFromMap(Handle<Map> map); | 224 Handle<JSObject> NewJSObjectFromMap(Handle<Map> map); |
| 225 | 225 |
| 226 // JS arrays are pretenured when allocated by the parser. | 226 // JS arrays are pretenured when allocated by the parser. |
| 227 Handle<JSArray> NewJSArray(int capacity, | 227 Handle<JSArray> NewJSArray(int capacity, |
| 228 PretenureFlag pretenure = NOT_TENURED); | 228 PretenureFlag pretenure = NOT_TENURED); |
| 229 | 229 |
| 230 Handle<JSArray> NewJSArrayWithElements( | 230 Handle<JSArray> NewJSArrayWithElements( |
| 231 Handle<FixedArray> elements, | 231 Handle<FixedArray> elements, |
| 232 PretenureFlag pretenure = NOT_TENURED); | 232 PretenureFlag pretenure = NOT_TENURED); |
| 233 | 233 |
| 234 Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype); |
| 235 |
| 234 Handle<JSFunction> NewFunction(Handle<String> name, | 236 Handle<JSFunction> NewFunction(Handle<String> name, |
| 235 Handle<Object> prototype); | 237 Handle<Object> prototype); |
| 236 | 238 |
| 237 Handle<JSFunction> NewFunctionWithoutPrototype( | 239 Handle<JSFunction> NewFunctionWithoutPrototype( |
| 238 Handle<String> name, | 240 Handle<String> name, |
| 239 StrictModeFlag strict_mode); | 241 StrictModeFlag strict_mode); |
| 240 | 242 |
| 241 Handle<JSFunction> NewFunction(Handle<Object> super, bool is_global); | 243 Handle<JSFunction> NewFunction(Handle<Object> super, bool is_global); |
| 242 | 244 |
| 243 Handle<JSFunction> BaseNewFunctionFromSharedFunctionInfo( | 245 Handle<JSFunction> BaseNewFunctionFromSharedFunctionInfo( |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 // Update the map cache in the global context with (keys, map) | 429 // Update the map cache in the global context with (keys, map) |
| 428 Handle<MapCache> AddToMapCache(Handle<Context> context, | 430 Handle<MapCache> AddToMapCache(Handle<Context> context, |
| 429 Handle<FixedArray> keys, | 431 Handle<FixedArray> keys, |
| 430 Handle<Map> map); | 432 Handle<Map> map); |
| 431 }; | 433 }; |
| 432 | 434 |
| 433 | 435 |
| 434 } } // namespace v8::internal | 436 } } // namespace v8::internal |
| 435 | 437 |
| 436 #endif // V8_FACTORY_H_ | 438 #endif // V8_FACTORY_H_ |
| OLD | NEW |