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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 Handle<Context> NewCatchContext(Handle<JSFunction> function, | 160 Handle<Context> NewCatchContext(Handle<JSFunction> function, |
161 Handle<Context> previous, | 161 Handle<Context> previous, |
162 Handle<String> name, | 162 Handle<String> name, |
163 Handle<Object> thrown_object); | 163 Handle<Object> thrown_object); |
164 | 164 |
165 // Create a 'with' context. | 165 // Create a 'with' context. |
166 Handle<Context> NewWithContext(Handle<JSFunction> function, | 166 Handle<Context> NewWithContext(Handle<JSFunction> function, |
167 Handle<Context> previous, | 167 Handle<Context> previous, |
168 Handle<JSObject> extension); | 168 Handle<JSObject> extension); |
169 | 169 |
| 170 // Create a 'block' context. |
| 171 Handle<Context> NewBlockContext(Handle<JSFunction> function, |
| 172 Handle<Context> previous, |
| 173 Handle<SerializedScopeInfo> scope_info); |
| 174 |
170 // Return the Symbol matching the passed in string. | 175 // Return the Symbol matching the passed in string. |
171 Handle<String> SymbolFromString(Handle<String> value); | 176 Handle<String> SymbolFromString(Handle<String> value); |
172 | 177 |
173 // Allocate a new struct. The struct is pretenured (allocated directly in | 178 // Allocate a new struct. The struct is pretenured (allocated directly in |
174 // the old generation). | 179 // the old generation). |
175 Handle<Struct> NewStruct(InstanceType type); | 180 Handle<Struct> NewStruct(InstanceType type); |
176 | 181 |
177 Handle<AccessorInfo> NewAccessorInfo(); | 182 Handle<AccessorInfo> NewAccessorInfo(); |
178 | 183 |
179 Handle<Script> NewScript(Handle<String> source); | 184 Handle<Script> NewScript(Handle<String> source); |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 Handle<JSFunction> BaseNewFunctionFromSharedFunctionInfo( | 275 Handle<JSFunction> BaseNewFunctionFromSharedFunctionInfo( |
271 Handle<SharedFunctionInfo> function_info, | 276 Handle<SharedFunctionInfo> function_info, |
272 Handle<Map> function_map, | 277 Handle<Map> function_map, |
273 PretenureFlag pretenure); | 278 PretenureFlag pretenure); |
274 | 279 |
275 Handle<JSFunction> NewFunctionFromSharedFunctionInfo( | 280 Handle<JSFunction> NewFunctionFromSharedFunctionInfo( |
276 Handle<SharedFunctionInfo> function_info, | 281 Handle<SharedFunctionInfo> function_info, |
277 Handle<Context> context, | 282 Handle<Context> context, |
278 PretenureFlag pretenure = TENURED); | 283 PretenureFlag pretenure = TENURED); |
279 | 284 |
| 285 Handle<SerializedScopeInfo> NewSerializedScopeInfo(int length); |
| 286 |
280 Handle<Code> NewCode(const CodeDesc& desc, | 287 Handle<Code> NewCode(const CodeDesc& desc, |
281 Code::Flags flags, | 288 Code::Flags flags, |
282 Handle<Object> self_reference, | 289 Handle<Object> self_reference, |
283 bool immovable = false); | 290 bool immovable = false); |
284 | 291 |
285 Handle<Code> CopyCode(Handle<Code> code); | 292 Handle<Code> CopyCode(Handle<Code> code); |
286 | 293 |
287 Handle<Code> CopyCode(Handle<Code> code, Vector<byte> reloc_info); | 294 Handle<Code> CopyCode(Handle<Code> code, Vector<byte> reloc_info); |
288 | 295 |
289 Handle<Object> ToObject(Handle<Object> object); | 296 Handle<Object> ToObject(Handle<Object> object); |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 // Update the map cache in the global context with (keys, map) | 461 // Update the map cache in the global context with (keys, map) |
455 Handle<MapCache> AddToMapCache(Handle<Context> context, | 462 Handle<MapCache> AddToMapCache(Handle<Context> context, |
456 Handle<FixedArray> keys, | 463 Handle<FixedArray> keys, |
457 Handle<Map> map); | 464 Handle<Map> map); |
458 }; | 465 }; |
459 | 466 |
460 | 467 |
461 } } // namespace v8::internal | 468 } } // namespace v8::internal |
462 | 469 |
463 #endif // V8_FACTORY_H_ | 470 #endif // V8_FACTORY_H_ |
OLD | NEW |