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

Side by Side Diff: Source/bindings/v8/V8PerIsolateData.h

Issue 13973026: remove memoryinstrumentation Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove the rest part of MemoryInstrumentation Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « Source/bindings/v8/V8Binding.cpp ('k') | Source/bindings/v8/V8PerIsolateData.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 int decrementRecursionLevel() { return --m_recursionLevel; } 118 int decrementRecursionLevel() { return --m_recursionLevel; }
119 119
120 #ifndef NDEBUG 120 #ifndef NDEBUG
121 int internalScriptRecursionLevel() const { return m_internalScriptRecursionL evel; } 121 int internalScriptRecursionLevel() const { return m_internalScriptRecursionL evel; }
122 int incrementInternalScriptRecursionLevel() { return ++m_internalScriptRecur sionLevel; } 122 int incrementInternalScriptRecursionLevel() { return ++m_internalScriptRecur sionLevel; }
123 int decrementInternalScriptRecursionLevel() { return --m_internalScriptRecur sionLevel; } 123 int decrementInternalScriptRecursionLevel() { return --m_internalScriptRecur sionLevel; }
124 #endif 124 #endif
125 125
126 GCEventData* gcEventData() { return m_gcEventData.get(); } 126 GCEventData* gcEventData() { return m_gcEventData.get(); }
127 127
128 void reportMemoryUsage(MemoryObjectInfo*) const;
129
130 // Gives the system a hint that we should request garbage collection 128 // Gives the system a hint that we should request garbage collection
131 // upon the next close or navigation event, because some expensive 129 // upon the next close or navigation event, because some expensive
132 // objects have been allocated that we want to take every opportunity 130 // objects have been allocated that we want to take every opportunity
133 // to collect. 131 // to collect.
134 void setShouldCollectGarbageSoon() { m_shouldCollectGarbageSoon = true; } 132 void setShouldCollectGarbageSoon() { m_shouldCollectGarbageSoon = true; }
135 void clearShouldCollectGarbageSoon() { m_shouldCollectGarbageSoon = false; } 133 void clearShouldCollectGarbageSoon() { m_shouldCollectGarbageSoon = false; }
136 bool shouldCollectGarbageSoon() const { return m_shouldCollectGarbageSoon; } 134 bool shouldCollectGarbageSoon() const { return m_shouldCollectGarbageSoon; }
137 135
138 bool hasPrivateTemplate(WrapperWorldType, void* privatePointer); 136 bool hasPrivateTemplate(WrapperWorldType, void* privatePointer);
139 v8::Persistent<v8::FunctionTemplate> privateTemplate(WrapperWorldType, void* privatePointer, v8::InvocationCallback, v8::Handle<v8::Value> data, v8::Handle< v8::Signature>, int length = 0); 137 v8::Persistent<v8::FunctionTemplate> privateTemplate(WrapperWorldType, void* privatePointer, v8::InvocationCallback, v8::Handle<v8::Value> data, v8::Handle< v8::Signature>, int length = 0);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 #ifndef NDEBUG 171 #ifndef NDEBUG
174 int m_internalScriptRecursionLevel; 172 int m_internalScriptRecursionLevel;
175 #endif 173 #endif
176 OwnPtr<GCEventData> m_gcEventData; 174 OwnPtr<GCEventData> m_gcEventData;
177 bool m_shouldCollectGarbageSoon; 175 bool m_shouldCollectGarbageSoon;
178 }; 176 };
179 177
180 } // namespace WebCore 178 } // namespace WebCore
181 179
182 #endif // V8PerIsolateData_h 180 #endif // V8PerIsolateData_h
OLDNEW
« no previous file with comments | « Source/bindings/v8/V8Binding.cpp ('k') | Source/bindings/v8/V8PerIsolateData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698