| 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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 Handle<Context> previous, | 216 Handle<Context> previous, |
| 217 Handle<ScopeInfo> scope_info); | 217 Handle<ScopeInfo> scope_info); |
| 218 | 218 |
| 219 // Return the internalized version of the passed in string. | 219 // Return the internalized version of the passed in string. |
| 220 Handle<String> InternalizedStringFromString(Handle<String> value); | 220 Handle<String> InternalizedStringFromString(Handle<String> value); |
| 221 | 221 |
| 222 // Allocate a new struct. The struct is pretenured (allocated directly in | 222 // Allocate a new struct. The struct is pretenured (allocated directly in |
| 223 // the old generation). | 223 // the old generation). |
| 224 Handle<Struct> NewStruct(InstanceType type); | 224 Handle<Struct> NewStruct(InstanceType type); |
| 225 | 225 |
| 226 Handle<AliasedArgumentsEntry> NewAliasedArgumentsEntry( |
| 227 int aliased_context_slot); |
| 228 |
| 226 Handle<DeclaredAccessorDescriptor> NewDeclaredAccessorDescriptor(); | 229 Handle<DeclaredAccessorDescriptor> NewDeclaredAccessorDescriptor(); |
| 227 | 230 |
| 228 Handle<DeclaredAccessorInfo> NewDeclaredAccessorInfo(); | 231 Handle<DeclaredAccessorInfo> NewDeclaredAccessorInfo(); |
| 229 | 232 |
| 230 Handle<ExecutableAccessorInfo> NewExecutableAccessorInfo(); | 233 Handle<ExecutableAccessorInfo> NewExecutableAccessorInfo(); |
| 231 | 234 |
| 232 Handle<Script> NewScript(Handle<String> source); | 235 Handle<Script> NewScript(Handle<String> source); |
| 233 | 236 |
| 234 // Foreign objects are pretenured when allocated by the bootstrapper. | 237 // Foreign objects are pretenured when allocated by the bootstrapper. |
| 235 Handle<Foreign> NewForeign(Address addr, | 238 Handle<Foreign> NewForeign(Address addr, |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 584 isolate()); | 587 isolate()); |
| 585 } else { | 588 } else { |
| 586 return NewNumber(static_cast<double>(value), pretenure); | 589 return NewNumber(static_cast<double>(value), pretenure); |
| 587 } | 590 } |
| 588 } | 591 } |
| 589 | 592 |
| 590 | 593 |
| 591 } } // namespace v8::internal | 594 } } // namespace v8::internal |
| 592 | 595 |
| 593 #endif // V8_FACTORY_H_ | 596 #endif // V8_FACTORY_H_ |
| OLD | NEW |