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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 Handle<Object> thrown_object); | 165 Handle<Object> thrown_object); |
166 | 166 |
167 // Create a 'with' context. | 167 // Create a 'with' context. |
168 Handle<Context> NewWithContext(Handle<JSFunction> function, | 168 Handle<Context> NewWithContext(Handle<JSFunction> function, |
169 Handle<Context> previous, | 169 Handle<Context> previous, |
170 Handle<JSObject> extension); | 170 Handle<JSObject> extension); |
171 | 171 |
172 // Create a 'block' context. | 172 // Create a 'block' context. |
173 Handle<Context> NewBlockContext(Handle<JSFunction> function, | 173 Handle<Context> NewBlockContext(Handle<JSFunction> function, |
174 Handle<Context> previous, | 174 Handle<Context> previous, |
175 Handle<SerializedScopeInfo> scope_info); | 175 Handle<ScopeInfo> scope_info); |
176 | 176 |
177 // Return the Symbol matching the passed in string. | 177 // Return the Symbol matching the passed in string. |
178 Handle<String> SymbolFromString(Handle<String> value); | 178 Handle<String> SymbolFromString(Handle<String> value); |
179 | 179 |
180 // Allocate a new struct. The struct is pretenured (allocated directly in | 180 // Allocate a new struct. The struct is pretenured (allocated directly in |
181 // the old generation). | 181 // the old generation). |
182 Handle<Struct> NewStruct(InstanceType type); | 182 Handle<Struct> NewStruct(InstanceType type); |
183 | 183 |
184 Handle<AccessorInfo> NewAccessorInfo(); | 184 Handle<AccessorInfo> NewAccessorInfo(); |
185 | 185 |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 Handle<JSFunction> BaseNewFunctionFromSharedFunctionInfo( | 284 Handle<JSFunction> BaseNewFunctionFromSharedFunctionInfo( |
285 Handle<SharedFunctionInfo> function_info, | 285 Handle<SharedFunctionInfo> function_info, |
286 Handle<Map> function_map, | 286 Handle<Map> function_map, |
287 PretenureFlag pretenure); | 287 PretenureFlag pretenure); |
288 | 288 |
289 Handle<JSFunction> NewFunctionFromSharedFunctionInfo( | 289 Handle<JSFunction> NewFunctionFromSharedFunctionInfo( |
290 Handle<SharedFunctionInfo> function_info, | 290 Handle<SharedFunctionInfo> function_info, |
291 Handle<Context> context, | 291 Handle<Context> context, |
292 PretenureFlag pretenure = TENURED); | 292 PretenureFlag pretenure = TENURED); |
293 | 293 |
294 Handle<SerializedScopeInfo> NewSerializedScopeInfo(int length); | 294 Handle<ScopeInfo> NewScopeInfo(int length); |
295 | 295 |
296 Handle<Code> NewCode(const CodeDesc& desc, | 296 Handle<Code> NewCode(const CodeDesc& desc, |
297 Code::Flags flags, | 297 Code::Flags flags, |
298 Handle<Object> self_reference, | 298 Handle<Object> self_reference, |
299 bool immovable = false); | 299 bool immovable = false); |
300 | 300 |
301 Handle<Code> CopyCode(Handle<Code> code); | 301 Handle<Code> CopyCode(Handle<Code> code); |
302 | 302 |
303 Handle<Code> CopyCode(Handle<Code> code, Vector<byte> reloc_info); | 303 Handle<Code> CopyCode(Handle<Code> code, Vector<byte> reloc_info); |
304 | 304 |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 #undef SYMBOL_ACCESSOR | 402 #undef SYMBOL_ACCESSOR |
403 | 403 |
404 Handle<String> hidden_symbol() { | 404 Handle<String> hidden_symbol() { |
405 return Handle<String>(&isolate()->heap()->hidden_symbol_); | 405 return Handle<String>(&isolate()->heap()->hidden_symbol_); |
406 } | 406 } |
407 | 407 |
408 Handle<SharedFunctionInfo> NewSharedFunctionInfo( | 408 Handle<SharedFunctionInfo> NewSharedFunctionInfo( |
409 Handle<String> name, | 409 Handle<String> name, |
410 int number_of_literals, | 410 int number_of_literals, |
411 Handle<Code> code, | 411 Handle<Code> code, |
412 Handle<SerializedScopeInfo> scope_info); | 412 Handle<ScopeInfo> scope_info); |
413 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name); | 413 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name); |
414 | 414 |
415 Handle<JSMessageObject> NewJSMessageObject( | 415 Handle<JSMessageObject> NewJSMessageObject( |
416 Handle<String> type, | 416 Handle<String> type, |
417 Handle<JSArray> arguments, | 417 Handle<JSArray> arguments, |
418 int start_position, | 418 int start_position, |
419 int end_position, | 419 int end_position, |
420 Handle<Object> script, | 420 Handle<Object> script, |
421 Handle<Object> stack_trace, | 421 Handle<Object> stack_trace, |
422 Handle<Object> stack_frames); | 422 Handle<Object> stack_frames); |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 // Update the map cache in the global context with (keys, map) | 479 // Update the map cache in the global context with (keys, map) |
480 Handle<MapCache> AddToMapCache(Handle<Context> context, | 480 Handle<MapCache> AddToMapCache(Handle<Context> context, |
481 Handle<FixedArray> keys, | 481 Handle<FixedArray> keys, |
482 Handle<Map> map); | 482 Handle<Map> map); |
483 }; | 483 }; |
484 | 484 |
485 | 485 |
486 } } // namespace v8::internal | 486 } } // namespace v8::internal |
487 | 487 |
488 #endif // V8_FACTORY_H_ | 488 #endif // V8_FACTORY_H_ |
OLD | NEW |