OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 // Create a 'with' context. | 218 // Create a 'with' context. |
219 Handle<Context> NewWithContext(Handle<JSFunction> function, | 219 Handle<Context> NewWithContext(Handle<JSFunction> function, |
220 Handle<Context> previous, | 220 Handle<Context> previous, |
221 Handle<JSObject> extension); | 221 Handle<JSObject> extension); |
222 | 222 |
223 // Create a block context. | 223 // Create a block context. |
224 Handle<Context> NewBlockContext(Handle<JSFunction> function, | 224 Handle<Context> NewBlockContext(Handle<JSFunction> function, |
225 Handle<Context> previous, | 225 Handle<Context> previous, |
226 Handle<ScopeInfo> scope_info); | 226 Handle<ScopeInfo> scope_info); |
227 | 227 |
228 // Return the internalized version of the passed in string. | |
229 Handle<String> InternalizedStringFromString(Handle<String> value); | |
230 | |
231 // Allocate a new struct. The struct is pretenured (allocated directly in | 228 // Allocate a new struct. The struct is pretenured (allocated directly in |
232 // the old generation). | 229 // the old generation). |
233 Handle<Struct> NewStruct(InstanceType type); | 230 Handle<Struct> NewStruct(InstanceType type); |
234 | 231 |
235 Handle<AliasedArgumentsEntry> NewAliasedArgumentsEntry( | 232 Handle<AliasedArgumentsEntry> NewAliasedArgumentsEntry( |
236 int aliased_context_slot); | 233 int aliased_context_slot); |
237 | 234 |
238 Handle<DeclaredAccessorDescriptor> NewDeclaredAccessorDescriptor(); | 235 Handle<DeclaredAccessorDescriptor> NewDeclaredAccessorDescriptor(); |
239 | 236 |
240 Handle<DeclaredAccessorInfo> NewDeclaredAccessorInfo(); | 237 Handle<DeclaredAccessorInfo> NewDeclaredAccessorInfo(); |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
600 isolate()); | 597 isolate()); |
601 } else { | 598 } else { |
602 return NewNumber(static_cast<double>(value), pretenure); | 599 return NewNumber(static_cast<double>(value), pretenure); |
603 } | 600 } |
604 } | 601 } |
605 | 602 |
606 | 603 |
607 } } // namespace v8::internal | 604 } } // namespace v8::internal |
608 | 605 |
609 #endif // V8_FACTORY_H_ | 606 #endif // V8_FACTORY_H_ |
OLD | NEW |