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

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

Issue 1360723003: Non-Oilpan Memory: Fix HTMLViewSourceDocument and WebLeakDetector. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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 | Source/bindings/core/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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 V8HiddenValue* hiddenValue() { return m_hiddenValue.get(); } 105 V8HiddenValue* hiddenValue() { return m_hiddenValue.get(); }
106 106
107 v8::Local<v8::FunctionTemplate> domTemplate(const void* domTemplateKey, v8:: FunctionCallback = 0, v8::Local<v8::Value> data = v8::Local<v8::Value>(), v8::Lo cal<v8::Signature> = v8::Local<v8::Signature>(), int length = 0); 107 v8::Local<v8::FunctionTemplate> domTemplate(const void* domTemplateKey, v8:: FunctionCallback = 0, v8::Local<v8::Value> data = v8::Local<v8::Value>(), v8::Lo cal<v8::Signature> = v8::Local<v8::Signature>(), int length = 0);
108 v8::Local<v8::FunctionTemplate> existingDOMTemplate(const void* domTemplateK ey); 108 v8::Local<v8::FunctionTemplate> existingDOMTemplate(const void* domTemplateK ey);
109 void setDOMTemplate(const void* domTemplateKey, v8::Local<v8::FunctionTempla te>); 109 void setDOMTemplate(const void* domTemplateKey, v8::Local<v8::FunctionTempla te>);
110 110
111 bool hasInstance(const WrapperTypeInfo* untrusted, v8::Local<v8::Value>); 111 bool hasInstance(const WrapperTypeInfo* untrusted, v8::Local<v8::Value>);
112 v8::Local<v8::Object> findInstanceInPrototypeChain(const WrapperTypeInfo*, v 8::Local<v8::Value>); 112 v8::Local<v8::Object> findInstanceInPrototypeChain(const WrapperTypeInfo*, v 8::Local<v8::Value>);
113 113
114 v8::Local<v8::Context> ensureScriptRegexpContext(); 114 v8::Local<v8::Context> ensureScriptRegexpContext();
115 void clearScriptRegexpContext();
115 116
116 const char* previousSamplingState() const { return m_previousSamplingState; } 117 const char* previousSamplingState() const { return m_previousSamplingState; }
117 void setPreviousSamplingState(const char* name) { m_previousSamplingState = name; } 118 void setPreviousSamplingState(const char* name) { m_previousSamplingState = name; }
118 119
119 // EndOfScopeTasks are run by V8RecursionScope when control is returning 120 // EndOfScopeTasks are run by V8RecursionScope when control is returning
120 // to C++ from script, after executing a script task (e.g. callback, 121 // to C++ from script, after executing a script task (e.g. callback,
121 // event) or microtasks (e.g. promise). This is explicitly needed for 122 // event) or microtasks (e.g. promise). This is explicitly needed for
122 // Indexed DB transactions per spec, but should in general be avoided. 123 // Indexed DB transactions per spec, but should in general be avoided.
123 void addEndOfScopeTask(PassOwnPtr<EndOfScopeTask>); 124 void addEndOfScopeTask(PassOwnPtr<EndOfScopeTask>);
124 void runEndOfScopeTasks(); 125 void runEndOfScopeTasks();
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 #endif 160 #endif
160 bool m_performingMicrotaskCheckpoint; 161 bool m_performingMicrotaskCheckpoint;
161 162
162 Vector<OwnPtr<EndOfScopeTask>> m_endOfScopeTasks; 163 Vector<OwnPtr<EndOfScopeTask>> m_endOfScopeTasks;
163 OwnPtr<ScriptDebuggerBase> m_scriptDebugger; 164 OwnPtr<ScriptDebuggerBase> m_scriptDebugger;
164 }; 165 };
165 166
166 } // namespace blink 167 } // namespace blink
167 168
168 #endif // V8PerIsolateData_h 169 #endif // V8PerIsolateData_h
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/core/v8/V8PerIsolateData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698