| OLD | NEW |
| 1 // Copyright 2007-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2007-2008 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 1556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1567 */ | 1567 */ |
| 1568 typedef bool (*IndexedSecurityCallback)(Local<Object> host, | 1568 typedef bool (*IndexedSecurityCallback)(Local<Object> host, |
| 1569 uint32_t index, | 1569 uint32_t index, |
| 1570 AccessType type, | 1570 AccessType type, |
| 1571 Local<Value> data); | 1571 Local<Value> data); |
| 1572 | 1572 |
| 1573 | 1573 |
| 1574 /** | 1574 /** |
| 1575 * A FunctionTemplate is used to create functions at runtime. There | 1575 * A FunctionTemplate is used to create functions at runtime. There |
| 1576 * can only be one function created from a FunctionTemplate in a | 1576 * can only be one function created from a FunctionTemplate in a |
| 1577 * context. | 1577 * context. The lifetime of the created function is equal to the |
| 1578 * lifetime of the context. So in case the embedder needs to create |
| 1579 * temporary functions that can be collected using Scripts is |
| 1580 * preferred. |
| 1578 * | 1581 * |
| 1579 * A FunctionTemplate can have properties, these properties are added to the | 1582 * A FunctionTemplate can have properties, these properties are added to the |
| 1580 * function object when it is created. | 1583 * function object when it is created. |
| 1581 * | 1584 * |
| 1582 * A FunctionTemplate has a corresponding instance template which is | 1585 * A FunctionTemplate has a corresponding instance template which is |
| 1583 * used to create object instances when the function is used as a | 1586 * used to create object instances when the function is used as a |
| 1584 * constructor. Properties added to the instance template are added to | 1587 * constructor. Properties added to the instance template are added to |
| 1585 * each object instance. | 1588 * each object instance. |
| 1586 * | 1589 * |
| 1587 * A FunctionTemplate can have a prototype template. The prototype template | 1590 * A FunctionTemplate can have a prototype template. The prototype template |
| (...skipping 1508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3096 | 3099 |
| 3097 } // namespace v8 | 3100 } // namespace v8 |
| 3098 | 3101 |
| 3099 | 3102 |
| 3100 #undef V8EXPORT | 3103 #undef V8EXPORT |
| 3101 #undef V8EXPORT_INLINE | 3104 #undef V8EXPORT_INLINE |
| 3102 #undef TYPE_CHECK | 3105 #undef TYPE_CHECK |
| 3103 | 3106 |
| 3104 | 3107 |
| 3105 #endif // V8_H_ | 3108 #endif // V8_H_ |
| OLD | NEW |