Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(487)

Side by Side Diff: include/v8.h

Issue 53089: Fixed test memory leaks (Closed)
Patch Set: Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | samples/shell.cc » ('j') | src/debug.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1062 matching lines...) Expand 10 before | Expand all | Expand 10 after
1073 1073
1074 /** Tests for an index lookup interceptor.*/ 1074 /** Tests for an index lookup interceptor.*/
1075 bool HasIndexedLookupInterceptor(); 1075 bool HasIndexedLookupInterceptor();
1076 1076
1077 /** 1077 /**
1078 * Turns on access check on the object if the object is an instance of 1078 * Turns on access check on the object if the object is an instance of
1079 * a template that has access check callbacks. If an object has no 1079 * a template that has access check callbacks. If an object has no
1080 * access check info, the object cannot be accessed by anyone. 1080 * access check info, the object cannot be accessed by anyone.
1081 */ 1081 */
1082 void TurnOnAccessCheck(); 1082 void TurnOnAccessCheck();
1083 1083
1084 /** 1084 /**
1085 * Returns the identity hash for this object. The current implemenation uses 1085 * Returns the identity hash for this object. The current implemenation uses
1086 * a hidden property on the object to store the identity hash. 1086 * a hidden property on the object to store the identity hash.
1087 */ 1087 */
1088 int GetIdentityHash(); 1088 int GetIdentityHash();
1089 1089
1090 /** 1090 /**
1091 * Access hidden properties on JavaScript objects. These properties are 1091 * Access hidden properties on JavaScript objects. These properties are
1092 * hidden from the executing JavaScript and only accessible through the V8 1092 * hidden from the executing JavaScript and only accessible through the V8
1093 * C++ API. Hidden properties introduced by V8 internally (for example the 1093 * C++ API. Hidden properties introduced by V8 internally (for example the
1094 * identity hash) are prefixed with "v8::". 1094 * identity hash) are prefixed with "v8::".
1095 */ 1095 */
1096 bool SetHiddenValue(Handle<String> key, Handle<Value> value); 1096 bool SetHiddenValue(Handle<String> key, Handle<Value> value);
1097 Local<Value> GetHiddenValue(Handle<String> key); 1097 Local<Value> GetHiddenValue(Handle<String> key);
1098 bool DeleteHiddenValue(Handle<String> key); 1098 bool DeleteHiddenValue(Handle<String> key);
1099 1099
(...skipping 926 matching lines...) Expand 10 before | Expand all | Expand 10 after
2026 * enable V8 profiling. 2026 * enable V8 profiling.
2027 */ 2027 */
2028 static void PauseProfiler(); 2028 static void PauseProfiler();
2029 2029
2030 /** 2030 /**
2031 * Resumes recording of tick samples in the profiler. 2031 * Resumes recording of tick samples in the profiler.
2032 * See also PauseProfiler(). 2032 * See also PauseProfiler().
2033 */ 2033 */
2034 static void ResumeProfiler(); 2034 static void ResumeProfiler();
2035 2035
2036 /**
2037 * Releases any resources used by v8 and stops any utility threads
2038 * that may be running. Note that disposing v8 is permanent, it
2039 * cannot be reinitialized.
2040 *
2041 * It should generally not be necessary to dispose v8 before exiting
2042 * a process.
Søren Thygesen Gjesse 2009/03/26 10:50:09 Perhaps explain in which cases this is actually ne
Christian Plesner Hansen 2009/03/27 00:24:26 Done. I left it out originally because I had no i
2043 */
2044 static bool Dispose();
2045
2036 private: 2046 private:
2037 V8(); 2047 V8();
2038 2048
2039 static void** GlobalizeReference(void** handle); 2049 static void** GlobalizeReference(void** handle);
2040 static void DisposeGlobal(void** global_handle); 2050 static void DisposeGlobal(void** global_handle);
2041 static void MakeWeak(void** global_handle, void* data, WeakReferenceCallback); 2051 static void MakeWeak(void** global_handle, void* data, WeakReferenceCallback);
2042 static void ClearWeak(void** global_handle); 2052 static void ClearWeak(void** global_handle);
2043 static bool IsGlobalNearDeath(void** global_handle); 2053 static bool IsGlobalNearDeath(void** global_handle);
2044 static bool IsGlobalWeak(void** global_handle); 2054 static bool IsGlobalWeak(void** global_handle);
2045 2055
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
2509 2519
2510 } // namespace v8 2520 } // namespace v8
2511 2521
2512 2522
2513 #undef V8EXPORT 2523 #undef V8EXPORT
2514 #undef V8EXPORT_INLINE 2524 #undef V8EXPORT_INLINE
2515 #undef TYPE_CHECK 2525 #undef TYPE_CHECK
2516 2526
2517 2527
2518 #endif // V8_H_ 2528 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | samples/shell.cc » ('j') | src/debug.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698