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

Side by Side Diff: Source/bindings/tests/results/V8TestCallback.cpp

Issue 23470004: Have handleMaxRecursionDepthExceeded() take an isolate in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 This file is part of the Blink open source project. 2 This file is part of the Blink open source project.
3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY!
4 4
5 This library is free software; you can redistribute it and/or 5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public 6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either 7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version. 8 version 2 of the License, or (at your option) any later version.
9 9
10 This library is distributed in the hope that it will be useful, 10 This library is distributed in the hope that it will be useful,
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 v8::Handle<v8::Context> v8Context = toV8Context(scriptExecutionContext(), m_ world.get()); 55 v8::Handle<v8::Context> v8Context = toV8Context(scriptExecutionContext(), m_ world.get());
56 if (v8Context.IsEmpty()) 56 if (v8Context.IsEmpty())
57 return true; 57 return true;
58 58
59 v8::Context::Scope scope(v8Context); 59 v8::Context::Scope scope(v8Context);
60 60
61 61
62 v8::Handle<v8::Value> *argv = 0; 62 v8::Handle<v8::Value> *argv = 0;
63 63
64 bool callbackReturnValue = false; 64 bool callbackReturnValue = false;
65 return !invokeCallback(m_callback.newLocal(isolate), 0, argv, callbackReturn Value, scriptExecutionContext()); 65 return !invokeCallback(m_callback.newLocal(isolate), 0, argv, callbackReturn Value, scriptExecutionContext(), isolate);
66 } 66 }
67 67
68 bool V8TestCallback::callbackWithTestObjectParam(TestObj* class1Param) 68 bool V8TestCallback::callbackWithTestObjectParam(TestObj* class1Param)
69 { 69 {
70 if (!canInvokeCallback()) 70 if (!canInvokeCallback())
71 return true; 71 return true;
72 72
73 v8::Isolate* isolate = v8::Isolate::GetCurrent(); 73 v8::Isolate* isolate = v8::Isolate::GetCurrent();
74 v8::HandleScope handleScope(isolate); 74 v8::HandleScope handleScope(isolate);
75 75
76 v8::Handle<v8::Context> v8Context = toV8Context(scriptExecutionContext(), m_ world.get()); 76 v8::Handle<v8::Context> v8Context = toV8Context(scriptExecutionContext(), m_ world.get());
77 if (v8Context.IsEmpty()) 77 if (v8Context.IsEmpty())
78 return true; 78 return true;
79 79
80 v8::Context::Scope scope(v8Context); 80 v8::Context::Scope scope(v8Context);
81 81
82 v8::Handle<v8::Value> class1ParamHandle = toV8(class1Param, v8::Handle<v8::O bject>(), isolate); 82 v8::Handle<v8::Value> class1ParamHandle = toV8(class1Param, v8::Handle<v8::O bject>(), isolate);
83 if (class1ParamHandle.IsEmpty()) { 83 if (class1ParamHandle.IsEmpty()) {
84 if (!isScriptControllerTerminating()) 84 if (!isScriptControllerTerminating())
85 CRASH(); 85 CRASH();
86 return true; 86 return true;
87 } 87 }
88 88
89 v8::Handle<v8::Value> argv[] = { 89 v8::Handle<v8::Value> argv[] = {
90 class1ParamHandle 90 class1ParamHandle
91 }; 91 };
92 92
93 bool callbackReturnValue = false; 93 bool callbackReturnValue = false;
94 return !invokeCallback(m_callback.newLocal(isolate), 1, argv, callbackReturn Value, scriptExecutionContext()); 94 return !invokeCallback(m_callback.newLocal(isolate), 1, argv, callbackReturn Value, scriptExecutionContext(), isolate);
95 } 95 }
96 96
97 bool V8TestCallback::callbackWithTestObjectParam(TestObj* class2Param, const Str ing& strArg) 97 bool V8TestCallback::callbackWithTestObjectParam(TestObj* class2Param, const Str ing& strArg)
98 { 98 {
99 if (!canInvokeCallback()) 99 if (!canInvokeCallback())
100 return true; 100 return true;
101 101
102 v8::Isolate* isolate = v8::Isolate::GetCurrent(); 102 v8::Isolate* isolate = v8::Isolate::GetCurrent();
103 v8::HandleScope handleScope(isolate); 103 v8::HandleScope handleScope(isolate);
104 104
(...skipping 15 matching lines...) Expand all
120 CRASH(); 120 CRASH();
121 return true; 121 return true;
122 } 122 }
123 123
124 v8::Handle<v8::Value> argv[] = { 124 v8::Handle<v8::Value> argv[] = {
125 class2ParamHandle, 125 class2ParamHandle,
126 strArgHandle 126 strArgHandle
127 }; 127 };
128 128
129 bool callbackReturnValue = false; 129 bool callbackReturnValue = false;
130 return !invokeCallback(m_callback.newLocal(isolate), 2, argv, callbackReturn Value, scriptExecutionContext()); 130 return !invokeCallback(m_callback.newLocal(isolate), 2, argv, callbackReturn Value, scriptExecutionContext(), isolate);
131 } 131 }
132 132
133 bool V8TestCallback::callbackWithStringList(RefPtr<DOMStringList> listParam) 133 bool V8TestCallback::callbackWithStringList(RefPtr<DOMStringList> listParam)
134 { 134 {
135 if (!canInvokeCallback()) 135 if (!canInvokeCallback())
136 return true; 136 return true;
137 137
138 v8::Isolate* isolate = v8::Isolate::GetCurrent(); 138 v8::Isolate* isolate = v8::Isolate::GetCurrent();
139 v8::HandleScope handleScope(isolate); 139 v8::HandleScope handleScope(isolate);
140 140
141 v8::Handle<v8::Context> v8Context = toV8Context(scriptExecutionContext(), m_ world.get()); 141 v8::Handle<v8::Context> v8Context = toV8Context(scriptExecutionContext(), m_ world.get());
142 if (v8Context.IsEmpty()) 142 if (v8Context.IsEmpty())
143 return true; 143 return true;
144 144
145 v8::Context::Scope scope(v8Context); 145 v8::Context::Scope scope(v8Context);
146 146
147 v8::Handle<v8::Value> listParamHandle = toV8(listParam, v8::Handle<v8::Objec t>(), isolate); 147 v8::Handle<v8::Value> listParamHandle = toV8(listParam, v8::Handle<v8::Objec t>(), isolate);
148 if (listParamHandle.IsEmpty()) { 148 if (listParamHandle.IsEmpty()) {
149 if (!isScriptControllerTerminating()) 149 if (!isScriptControllerTerminating())
150 CRASH(); 150 CRASH();
151 return true; 151 return true;
152 } 152 }
153 153
154 v8::Handle<v8::Value> argv[] = { 154 v8::Handle<v8::Value> argv[] = {
155 listParamHandle 155 listParamHandle
156 }; 156 };
157 157
158 bool callbackReturnValue = false; 158 bool callbackReturnValue = false;
159 return !invokeCallback(m_callback.newLocal(isolate), 1, argv, callbackReturn Value, scriptExecutionContext()); 159 return !invokeCallback(m_callback.newLocal(isolate), 1, argv, callbackReturn Value, scriptExecutionContext(), isolate);
160 } 160 }
161 161
162 bool V8TestCallback::callbackWithBoolean(bool boolParam) 162 bool V8TestCallback::callbackWithBoolean(bool boolParam)
163 { 163 {
164 if (!canInvokeCallback()) 164 if (!canInvokeCallback())
165 return true; 165 return true;
166 166
167 v8::Isolate* isolate = v8::Isolate::GetCurrent(); 167 v8::Isolate* isolate = v8::Isolate::GetCurrent();
168 v8::HandleScope handleScope(isolate); 168 v8::HandleScope handleScope(isolate);
169 169
170 v8::Handle<v8::Context> v8Context = toV8Context(scriptExecutionContext(), m_ world.get()); 170 v8::Handle<v8::Context> v8Context = toV8Context(scriptExecutionContext(), m_ world.get());
171 if (v8Context.IsEmpty()) 171 if (v8Context.IsEmpty())
172 return true; 172 return true;
173 173
174 v8::Context::Scope scope(v8Context); 174 v8::Context::Scope scope(v8Context);
175 175
176 v8::Handle<v8::Value> boolParamHandle = v8Boolean(boolParam, isolate); 176 v8::Handle<v8::Value> boolParamHandle = v8Boolean(boolParam, isolate);
177 if (boolParamHandle.IsEmpty()) { 177 if (boolParamHandle.IsEmpty()) {
178 if (!isScriptControllerTerminating()) 178 if (!isScriptControllerTerminating())
179 CRASH(); 179 CRASH();
180 return true; 180 return true;
181 } 181 }
182 182
183 v8::Handle<v8::Value> argv[] = { 183 v8::Handle<v8::Value> argv[] = {
184 boolParamHandle 184 boolParamHandle
185 }; 185 };
186 186
187 bool callbackReturnValue = false; 187 bool callbackReturnValue = false;
188 return !invokeCallback(m_callback.newLocal(isolate), 1, argv, callbackReturn Value, scriptExecutionContext()); 188 return !invokeCallback(m_callback.newLocal(isolate), 1, argv, callbackReturn Value, scriptExecutionContext(), isolate);
189 } 189 }
190 190
191 bool V8TestCallback::callbackWithSequence(const Vector<RefPtr<TestObj> >& sequen ceParam) 191 bool V8TestCallback::callbackWithSequence(const Vector<RefPtr<TestObj> >& sequen ceParam)
192 { 192 {
193 if (!canInvokeCallback()) 193 if (!canInvokeCallback())
194 return true; 194 return true;
195 195
196 v8::Isolate* isolate = v8::Isolate::GetCurrent(); 196 v8::Isolate* isolate = v8::Isolate::GetCurrent();
197 v8::HandleScope handleScope(isolate); 197 v8::HandleScope handleScope(isolate);
198 198
199 v8::Handle<v8::Context> v8Context = toV8Context(scriptExecutionContext(), m_ world.get()); 199 v8::Handle<v8::Context> v8Context = toV8Context(scriptExecutionContext(), m_ world.get());
200 if (v8Context.IsEmpty()) 200 if (v8Context.IsEmpty())
201 return true; 201 return true;
202 202
203 v8::Context::Scope scope(v8Context); 203 v8::Context::Scope scope(v8Context);
204 204
205 v8::Handle<v8::Value> sequenceParamHandle = v8Array(sequenceParam, isolate); 205 v8::Handle<v8::Value> sequenceParamHandle = v8Array(sequenceParam, isolate);
206 if (sequenceParamHandle.IsEmpty()) { 206 if (sequenceParamHandle.IsEmpty()) {
207 if (!isScriptControllerTerminating()) 207 if (!isScriptControllerTerminating())
208 CRASH(); 208 CRASH();
209 return true; 209 return true;
210 } 210 }
211 211
212 v8::Handle<v8::Value> argv[] = { 212 v8::Handle<v8::Value> argv[] = {
213 sequenceParamHandle 213 sequenceParamHandle
214 }; 214 };
215 215
216 bool callbackReturnValue = false; 216 bool callbackReturnValue = false;
217 return !invokeCallback(m_callback.newLocal(isolate), 1, argv, callbackReturn Value, scriptExecutionContext()); 217 return !invokeCallback(m_callback.newLocal(isolate), 1, argv, callbackReturn Value, scriptExecutionContext(), isolate);
218 } 218 }
219 219
220 bool V8TestCallback::callbackWithThisArg(ScriptValue thisValue, int param) 220 bool V8TestCallback::callbackWithThisArg(ScriptValue thisValue, int param)
221 { 221 {
222 if (!canInvokeCallback()) 222 if (!canInvokeCallback())
223 return true; 223 return true;
224 224
225 v8::Isolate* isolate = v8::Isolate::GetCurrent(); 225 v8::Isolate* isolate = v8::Isolate::GetCurrent();
226 v8::HandleScope handleScope(isolate); 226 v8::HandleScope handleScope(isolate);
227 227
(...skipping 15 matching lines...) Expand all
243 if (!isScriptControllerTerminating()) 243 if (!isScriptControllerTerminating())
244 CRASH(); 244 CRASH();
245 return true; 245 return true;
246 } 246 }
247 247
248 v8::Handle<v8::Value> argv[] = { 248 v8::Handle<v8::Value> argv[] = {
249 paramHandle 249 paramHandle
250 }; 250 };
251 251
252 bool callbackReturnValue = false; 252 bool callbackReturnValue = false;
253 return !invokeCallback(m_callback.newLocal(isolate), v8::Handle<v8::Object>: :Cast(thisHandle), 1, argv, callbackReturnValue, scriptExecutionContext()); 253 return !invokeCallback(m_callback.newLocal(isolate), v8::Handle<v8::Object>: :Cast(thisHandle), 1, argv, callbackReturnValue, scriptExecutionContext(), isola te);
254 } 254 }
255 255
256 } // namespace WebCore 256 } // namespace WebCore
257 257
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698