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 // Change the type of the argument into a regular JS object and reinitialize. | |
257 void BecomeJSObject(Handle<JSProxy> object); | |
Mads Ager (chromium)
2011/07/19 08:18:05
This is from a previous change?
rossberg
2011/07/19 09:29:52
Yes, sorry, I keep messing up with Git branches...
| |
258 | |
256 Handle<JSFunction> NewFunction(Handle<String> name, | 259 Handle<JSFunction> NewFunction(Handle<String> name, |
257 Handle<Object> prototype); | 260 Handle<Object> prototype); |
258 | 261 |
259 Handle<JSFunction> NewFunctionWithoutPrototype( | 262 Handle<JSFunction> NewFunctionWithoutPrototype( |
260 Handle<String> name, | 263 Handle<String> name, |
261 StrictModeFlag strict_mode); | 264 StrictModeFlag strict_mode); |
262 | 265 |
263 Handle<JSFunction> NewFunction(Handle<Object> super, bool is_global); | 266 Handle<JSFunction> NewFunction(Handle<Object> super, bool is_global); |
264 | 267 |
265 Handle<JSFunction> BaseNewFunctionFromSharedFunctionInfo( | 268 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) | 452 // Update the map cache in the global context with (keys, map) |
450 Handle<MapCache> AddToMapCache(Handle<Context> context, | 453 Handle<MapCache> AddToMapCache(Handle<Context> context, |
451 Handle<FixedArray> keys, | 454 Handle<FixedArray> keys, |
452 Handle<Map> map); | 455 Handle<Map> map); |
453 }; | 456 }; |
454 | 457 |
455 | 458 |
456 } } // namespace v8::internal | 459 } } // namespace v8::internal |
457 | 460 |
458 #endif // V8_FACTORY_H_ | 461 #endif // V8_FACTORY_H_ |
OLD | NEW |