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 1108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1119 | 1119 |
1120 /** | 1120 /** |
1121 * Turns on access check on the object if the object is an instance of | 1121 * Turns on access check on the object if the object is an instance of |
1122 * a template that has access check callbacks. If an object has no | 1122 * a template that has access check callbacks. If an object has no |
1123 * access check info, the object cannot be accessed by anyone. | 1123 * access check info, the object cannot be accessed by anyone. |
1124 */ | 1124 */ |
1125 void TurnOnAccessCheck(); | 1125 void TurnOnAccessCheck(); |
1126 | 1126 |
1127 /** | 1127 /** |
1128 * Returns the identity hash for this object. The current implemenation uses | 1128 * Returns the identity hash for this object. The current implemenation uses |
1129 * a hidden property on the object to store the identity hash. | 1129 * a hidden property on the object to store the identity hash. |
1130 * | 1130 * |
1131 * The return value will never be 0. Also, it is not guaranteed to be | 1131 * The return value will never be 0. Also, it is not guaranteed to be |
1132 * unique. | 1132 * unique. |
1133 */ | 1133 */ |
1134 int GetIdentityHash(); | 1134 int GetIdentityHash(); |
1135 | 1135 |
1136 /** | 1136 /** |
1137 * Access hidden properties on JavaScript objects. These properties are | 1137 * Access hidden properties on JavaScript objects. These properties are |
1138 * hidden from the executing JavaScript and only accessible through the V8 | 1138 * hidden from the executing JavaScript and only accessible through the V8 |
1139 * C++ API. Hidden properties introduced by V8 internally (for example the | 1139 * C++ API. Hidden properties introduced by V8 internally (for example the |
1140 * identity hash) are prefixed with "v8::". | 1140 * identity hash) are prefixed with "v8::". |
1141 */ | 1141 */ |
(...skipping 931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2073 */ | 2073 */ |
2074 static void PauseProfiler(); | 2074 static void PauseProfiler(); |
2075 | 2075 |
2076 /** | 2076 /** |
2077 * Resumes recording of tick samples in the profiler. | 2077 * Resumes recording of tick samples in the profiler. |
2078 * See also PauseProfiler(). | 2078 * See also PauseProfiler(). |
2079 */ | 2079 */ |
2080 static void ResumeProfiler(); | 2080 static void ResumeProfiler(); |
2081 | 2081 |
2082 /** | 2082 /** |
2083 * If logging is performed into a memory buffer (via --logfile=*), allows to | |
2084 * retrieve previously written messages. This can be used for retrieving | |
2085 * profiler log data in application. This function is thread-safe. | |
Søren Thygesen Gjesse
2009/05/05 13:52:35
Missing the after in.
Mikhail Naganov
2009/05/05 15:56:46
Done.
| |
2086 * | |
2087 * Caller provides a destination buffer that must exist during GetLogLines | |
2088 * call. Only whole log lines are copied into the buffer. | |
2089 * | |
2090 * \param from_pos specified a point in a buffer to read from, 0 is the | |
2091 * beginning of a buffer. It is assumed that caller updates its current | |
2092 * position using returned size value from the previous call. | |
2093 * \param dest_buf destination buffer for log data. | |
2094 * \param max_size size of the destination buffer. | |
2095 * \returns actual size of log data copied into buffer. | |
2096 */ | |
2097 static int GetLogLines(int from_pos, char* dest_buf, int max_size); | |
2098 | |
2099 | |
2100 /** | |
2083 * Releases any resources used by v8 and stops any utility threads | 2101 * Releases any resources used by v8 and stops any utility threads |
2084 * that may be running. Note that disposing v8 is permanent, it | 2102 * that may be running. Note that disposing v8 is permanent, it |
2085 * cannot be reinitialized. | 2103 * cannot be reinitialized. |
2086 * | 2104 * |
2087 * It should generally not be necessary to dispose v8 before exiting | 2105 * It should generally not be necessary to dispose v8 before exiting |
2088 * a process, this should happen automatically. It is only necessary | 2106 * a process, this should happen automatically. It is only necessary |
2089 * to use if the process needs the resources taken up by v8. | 2107 * to use if the process needs the resources taken up by v8. |
2090 */ | 2108 */ |
2091 static bool Dispose(); | 2109 static bool Dispose(); |
2092 | 2110 |
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2574 | 2592 |
2575 } // namespace v8 | 2593 } // namespace v8 |
2576 | 2594 |
2577 | 2595 |
2578 #undef V8EXPORT | 2596 #undef V8EXPORT |
2579 #undef V8EXPORT_INLINE | 2597 #undef V8EXPORT_INLINE |
2580 #undef TYPE_CHECK | 2598 #undef TYPE_CHECK |
2581 | 2599 |
2582 | 2600 |
2583 #endif // V8_H_ | 2601 #endif // V8_H_ |
OLD | NEW |