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 1949 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1960 * | 1960 * |
1961 * \note This is an experimental feature and it might be removed. | 1961 * \note This is an experimental feature and it might be removed. |
1962 */ | 1962 */ |
1963 static void SetExternalSymbolCallback(ExternalSymbolCallback); | 1963 static void SetExternalSymbolCallback(ExternalSymbolCallback); |
1964 | 1964 |
1965 /** | 1965 /** |
1966 * Allows the host application to group objects together. If one | 1966 * Allows the host application to group objects together. If one |
1967 * object in the group is alive, all objects in the group are alive. | 1967 * object in the group is alive, all objects in the group are alive. |
1968 * After each garbage collection, object groups are removed. It is | 1968 * After each garbage collection, object groups are removed. It is |
1969 * intended to be used in the before-garbage-collection callback | 1969 * intended to be used in the before-garbage-collection callback |
1970 * function for istance to simulate DOM tree connections among JS | 1970 * function, for instance to simulate DOM tree connections among JS |
1971 * wrapper objects. | 1971 * wrapper objects. |
1972 */ | 1972 */ |
1973 static void AddObjectToGroup(void* id, Persistent<Object> obj); | 1973 static void AddObjectGroup(Persistent<Value>* objects, size_t length); |
1974 | 1974 |
1975 /** | 1975 /** |
1976 * Initializes from snapshot if possible. Otherwise, attempts to | 1976 * Initializes from snapshot if possible. Otherwise, attempts to |
1977 * initialize from scratch. | 1977 * initialize from scratch. |
1978 */ | 1978 */ |
1979 static bool Initialize(); | 1979 static bool Initialize(); |
1980 | 1980 |
1981 /** | 1981 /** |
1982 * Adjusts the amount of registered external memory. Used to give | 1982 * Adjusts the amount of registered external memory. Used to give |
1983 * V8 an indication of the amount of externally allocated memory | 1983 * V8 an indication of the amount of externally allocated memory |
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2463 | 2463 |
2464 } // namespace v8 | 2464 } // namespace v8 |
2465 | 2465 |
2466 | 2466 |
2467 #undef EXPORT | 2467 #undef EXPORT |
2468 #undef EXPORT_INLINE | 2468 #undef EXPORT_INLINE |
2469 #undef TYPE_CHECK | 2469 #undef TYPE_CHECK |
2470 | 2470 |
2471 | 2471 |
2472 #endif // V8_H_ | 2472 #endif // V8_H_ |
OLD | NEW |