OLD | NEW |
---|---|
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
246 // JS arrays are pretenured when allocated by the parser. | 246 // JS arrays are pretenured when allocated by the parser. |
247 Handle<JSArray> NewJSArray(int capacity, | 247 Handle<JSArray> NewJSArray(int capacity, |
248 PretenureFlag pretenure = NOT_TENURED); | 248 PretenureFlag pretenure = NOT_TENURED); |
249 | 249 |
250 Handle<JSArray> NewJSArrayWithElements( | 250 Handle<JSArray> NewJSArrayWithElements( |
251 Handle<FixedArray> elements, | 251 Handle<FixedArray> elements, |
252 PretenureFlag pretenure = NOT_TENURED); | 252 PretenureFlag pretenure = NOT_TENURED); |
253 | 253 |
254 Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype); | 254 Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype); |
255 | 255 |
256 void BecomeJSObject(Handle<JSReceiver> object); | |
Mads Ager (chromium)
2011/07/17 10:43:47
A comment explaining what this operation does woul
rossberg
2011/07/18 10:53:53
Done.
| |
257 | |
256 Handle<JSFunction> NewFunction(Handle<String> name, | 258 Handle<JSFunction> NewFunction(Handle<String> name, |
257 Handle<Object> prototype); | 259 Handle<Object> prototype); |
258 | 260 |
259 Handle<JSFunction> NewFunctionWithoutPrototype( | 261 Handle<JSFunction> NewFunctionWithoutPrototype( |
260 Handle<String> name, | 262 Handle<String> name, |
261 StrictModeFlag strict_mode); | 263 StrictModeFlag strict_mode); |
262 | 264 |
263 Handle<JSFunction> NewFunction(Handle<Object> super, bool is_global); | 265 Handle<JSFunction> NewFunction(Handle<Object> super, bool is_global); |
264 | 266 |
265 Handle<JSFunction> BaseNewFunctionFromSharedFunctionInfo( | 267 Handle<JSFunction> BaseNewFunctionFromSharedFunctionInfo( |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
449 // Update the map cache in the global context with (keys, map) | 451 // Update the map cache in the global context with (keys, map) |
450 Handle<MapCache> AddToMapCache(Handle<Context> context, | 452 Handle<MapCache> AddToMapCache(Handle<Context> context, |
451 Handle<FixedArray> keys, | 453 Handle<FixedArray> keys, |
452 Handle<Map> map); | 454 Handle<Map> map); |
453 }; | 455 }; |
454 | 456 |
455 | 457 |
456 } } // namespace v8::internal | 458 } } // namespace v8::internal |
457 | 459 |
458 #endif // V8_FACTORY_H_ | 460 #endif // V8_FACTORY_H_ |
OLD | NEW |