OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 // structures in the heap. | 176 // structures in the heap. |
177 static Handle<JSObject> NewNeanderObject(); | 177 static Handle<JSObject> NewNeanderObject(); |
178 | 178 |
179 static Handle<JSObject> NewArgumentsObject(Handle<Object> callee, int length); | 179 static Handle<JSObject> NewArgumentsObject(Handle<Object> callee, int length); |
180 | 180 |
181 // JS objects are pretenured when allocated by the bootstrapper and | 181 // JS objects are pretenured when allocated by the bootstrapper and |
182 // runtime. | 182 // runtime. |
183 static Handle<JSObject> NewJSObject(Handle<JSFunction> constructor, | 183 static Handle<JSObject> NewJSObject(Handle<JSFunction> constructor, |
184 PretenureFlag pretenure = NOT_TENURED); | 184 PretenureFlag pretenure = NOT_TENURED); |
185 | 185 |
186 // JS global objects are pretenured. | 186 // Global objects are pretenured. |
187 static Handle<JSGlobalObject> NewJSGlobalObject( | 187 static Handle<GlobalObject> NewGlobalObject(Handle<JSFunction> constructor); |
188 Handle<JSFunction> constructor); | |
189 | 188 |
190 // JS objects are pretenured when allocated by the bootstrapper and | 189 // JS objects are pretenured when allocated by the bootstrapper and |
191 // runtime. | 190 // runtime. |
192 static Handle<JSObject> NewJSObjectFromMap(Handle<Map> map); | 191 static Handle<JSObject> NewJSObjectFromMap(Handle<Map> map); |
193 | 192 |
194 // JS arrays are pretenured when allocated by the parser. | 193 // JS arrays are pretenured when allocated by the parser. |
195 static Handle<JSArray> NewJSArray(int init_length, | 194 static Handle<JSArray> NewJSArray(int init_length, |
196 PretenureFlag pretenure = NOT_TENURED); | 195 PretenureFlag pretenure = NOT_TENURED); |
197 | 196 |
198 static Handle<JSArray> NewJSArrayWithElements( | 197 static Handle<JSArray> NewJSArrayWithElements( |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 // Update the map cache in the global context with (keys, map) | 360 // Update the map cache in the global context with (keys, map) |
362 static Handle<MapCache> AddToMapCache(Handle<Context> context, | 361 static Handle<MapCache> AddToMapCache(Handle<Context> context, |
363 Handle<FixedArray> keys, | 362 Handle<FixedArray> keys, |
364 Handle<Map> map); | 363 Handle<Map> map); |
365 }; | 364 }; |
366 | 365 |
367 | 366 |
368 } } // namespace v8::internal | 367 } } // namespace v8::internal |
369 | 368 |
370 #endif // V8_FACTORY_H_ | 369 #endif // V8_FACTORY_H_ |
OLD | NEW |