| 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 |
| 228 // Allocate a new struct. The struct is pretenured (allocated directly in | 231 // Allocate a new struct. The struct is pretenured (allocated directly in |
| 229 // the old generation). | 232 // the old generation). |
| 230 Handle<Struct> NewStruct(InstanceType type); | 233 Handle<Struct> NewStruct(InstanceType type); |
| 231 | 234 |
| 232 Handle<AliasedArgumentsEntry> NewAliasedArgumentsEntry( | 235 Handle<AliasedArgumentsEntry> NewAliasedArgumentsEntry( |
| 233 int aliased_context_slot); | 236 int aliased_context_slot); |
| 234 | 237 |
| 235 Handle<DeclaredAccessorDescriptor> NewDeclaredAccessorDescriptor(); | 238 Handle<DeclaredAccessorDescriptor> NewDeclaredAccessorDescriptor(); |
| 236 | 239 |
| 237 Handle<DeclaredAccessorInfo> NewDeclaredAccessorInfo(); | 240 Handle<DeclaredAccessorInfo> NewDeclaredAccessorInfo(); |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 Handle<Code> code, | 521 Handle<Code> code, |
| 519 Handle<ScopeInfo> scope_info); | 522 Handle<ScopeInfo> scope_info); |
| 520 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name); | 523 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name); |
| 521 | 524 |
| 522 Handle<JSMessageObject> NewJSMessageObject( | 525 Handle<JSMessageObject> NewJSMessageObject( |
| 523 Handle<String> type, | 526 Handle<String> type, |
| 524 Handle<JSArray> arguments, | 527 Handle<JSArray> arguments, |
| 525 int start_position, | 528 int start_position, |
| 526 int end_position, | 529 int end_position, |
| 527 Handle<Object> script, | 530 Handle<Object> script, |
| 531 Handle<Object> stack_trace, |
| 528 Handle<Object> stack_frames); | 532 Handle<Object> stack_frames); |
| 529 | 533 |
| 530 Handle<SeededNumberDictionary> DictionaryAtNumberPut( | 534 Handle<SeededNumberDictionary> DictionaryAtNumberPut( |
| 531 Handle<SeededNumberDictionary>, | 535 Handle<SeededNumberDictionary>, |
| 532 uint32_t key, | 536 uint32_t key, |
| 533 Handle<Object> value); | 537 Handle<Object> value); |
| 534 | 538 |
| 535 Handle<UnseededNumberDictionary> DictionaryAtNumberPut( | 539 Handle<UnseededNumberDictionary> DictionaryAtNumberPut( |
| 536 Handle<UnseededNumberDictionary>, | 540 Handle<UnseededNumberDictionary>, |
| 537 uint32_t key, | 541 uint32_t key, |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 597 isolate()); | 601 isolate()); |
| 598 } else { | 602 } else { |
| 599 return NewNumber(static_cast<double>(value), pretenure); | 603 return NewNumber(static_cast<double>(value), pretenure); |
| 600 } | 604 } |
| 601 } | 605 } |
| 602 | 606 |
| 603 | 607 |
| 604 } } // namespace v8::internal | 608 } } // namespace v8::internal |
| 605 | 609 |
| 606 #endif // V8_FACTORY_H_ | 610 #endif // V8_FACTORY_H_ |
| OLD | NEW |