/work/obj-fuzz/ipc/ipdl/PJavaScriptParent.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | // |
2 | | // Automatically generated by ipdlc. |
3 | | // Edit at your own risk |
4 | | // |
5 | | |
6 | | |
7 | | #include "mozilla/jsipc/PJavaScriptParent.h" |
8 | | #include "ipc/IPCMessageUtils.h" |
9 | | |
10 | | #include "mozilla/dom/PContentParent.h" |
11 | | #include "mozilla/dom/PContentBridgeParent.h" |
12 | | |
13 | | #include "nsIFile.h" |
14 | | #include "GeckoProfiler.h" |
15 | | |
16 | | namespace mozilla { |
17 | | namespace jsipc { |
18 | | |
19 | | |
20 | | auto PJavaScriptParent::Recv__delete__() -> mozilla::ipc::IPCResult |
21 | 0 | { |
22 | 0 | return IPC_OK(); |
23 | 0 | } |
24 | | |
25 | | auto PJavaScriptParent::ActorDestroy(ActorDestroyReason aWhy) -> void |
26 | 0 | { |
27 | 0 | } |
28 | | |
29 | | MOZ_IMPLICIT PJavaScriptParent::PJavaScriptParent() : |
30 | | mozilla::ipc::IProtocol(mozilla::ipc::ParentSide), |
31 | | mLivenessState(mozilla::ipc::LivenessState::Dead) |
32 | 0 | { |
33 | 0 | MOZ_COUNT_CTOR(PJavaScriptParent); |
34 | 0 | } |
35 | | |
36 | | PJavaScriptParent::~PJavaScriptParent() |
37 | 0 | { |
38 | 0 | MOZ_COUNT_DTOR(PJavaScriptParent); |
39 | 0 | } |
40 | | |
41 | | auto PJavaScriptParent::SendDropObject(const uint64_t& objId) -> bool |
42 | 0 | { |
43 | 0 | IPC::Message* msg__ = PJavaScript::Msg_DropObject(Id()); |
44 | 0 |
|
45 | 0 | WriteIPDLParam(msg__, this, objId); |
46 | 0 | // Sentinel = 'objId' |
47 | 0 | (msg__)->WriteSentinel(89635797); |
48 | 0 |
|
49 | 0 |
|
50 | 0 |
|
51 | 0 |
|
52 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
53 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
54 | 0 | } |
55 | 0 | AUTO_PROFILER_LABEL("PJavaScript::Msg_DropObject", OTHER); |
56 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
57 | 0 | mozilla::ipc::LogicError("Transition error"); |
58 | 0 | } |
59 | 0 |
|
60 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
61 | 0 | return sendok__; |
62 | 0 | } |
63 | | |
64 | | auto PJavaScriptParent::SendPreventExtensions( |
65 | | const uint64_t& objId, |
66 | | ReturnStatus* rs) -> bool |
67 | 0 | { |
68 | 0 | IPC::Message* msg__ = PJavaScript::Msg_PreventExtensions(Id()); |
69 | 0 |
|
70 | 0 | WriteIPDLParam(msg__, this, objId); |
71 | 0 | // Sentinel = 'objId' |
72 | 0 | (msg__)->WriteSentinel(89635797); |
73 | 0 |
|
74 | 0 |
|
75 | 0 |
|
76 | 0 | Message reply__; |
77 | 0 |
|
78 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
79 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
80 | 0 | } |
81 | 0 | AUTO_PROFILER_LABEL("PJavaScript::Msg_PreventExtensions", OTHER); |
82 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
83 | 0 | mozilla::ipc::LogicError("Transition error"); |
84 | 0 | } |
85 | 0 |
|
86 | 0 | bool sendok__; |
87 | 0 | { |
88 | 0 | AUTO_PROFILER_TRACING("IPC", "PJavaScript::Msg_PreventExtensions"); |
89 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
90 | 0 | } |
91 | 0 | if ((!(sendok__))) { |
92 | 0 | return false; |
93 | 0 | } |
94 | 0 | |
95 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
96 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
97 | 0 | } |
98 | 0 |
|
99 | 0 | PickleIterator iter__(reply__); |
100 | 0 |
|
101 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, rs)))) { |
102 | 0 | FatalError("Error deserializing 'ReturnStatus'"); |
103 | 0 | return false; |
104 | 0 | } |
105 | 0 | // Sentinel = 'rs' |
106 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481063)))) { |
107 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ReturnStatus'"); |
108 | 0 | return false; |
109 | 0 | } |
110 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
111 | 0 |
|
112 | 0 | return true; |
113 | 0 | } |
114 | | |
115 | | auto PJavaScriptParent::SendGetOwnPropertyDescriptor( |
116 | | const uint64_t& objId, |
117 | | const JSIDVariant& id, |
118 | | ReturnStatus* rs, |
119 | | PPropertyDescriptor* result) -> bool |
120 | 0 | { |
121 | 0 | IPC::Message* msg__ = PJavaScript::Msg_GetOwnPropertyDescriptor(Id()); |
122 | 0 |
|
123 | 0 | WriteIPDLParam(msg__, this, objId); |
124 | 0 | // Sentinel = 'objId' |
125 | 0 | (msg__)->WriteSentinel(89635797); |
126 | 0 | WriteIPDLParam(msg__, this, id); |
127 | 0 | // Sentinel = 'id' |
128 | 0 | (msg__)->WriteSentinel(2794505629); |
129 | 0 |
|
130 | 0 |
|
131 | 0 |
|
132 | 0 | Message reply__; |
133 | 0 |
|
134 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
135 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
136 | 0 | } |
137 | 0 | AUTO_PROFILER_LABEL("PJavaScript::Msg_GetOwnPropertyDescriptor", OTHER); |
138 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
139 | 0 | mozilla::ipc::LogicError("Transition error"); |
140 | 0 | } |
141 | 0 |
|
142 | 0 | bool sendok__; |
143 | 0 | { |
144 | 0 | AUTO_PROFILER_TRACING("IPC", "PJavaScript::Msg_GetOwnPropertyDescriptor"); |
145 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
146 | 0 | } |
147 | 0 | if ((!(sendok__))) { |
148 | 0 | return false; |
149 | 0 | } |
150 | 0 | |
151 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
152 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
153 | 0 | } |
154 | 0 |
|
155 | 0 | PickleIterator iter__(reply__); |
156 | 0 |
|
157 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, rs)))) { |
158 | 0 | FatalError("Error deserializing 'ReturnStatus'"); |
159 | 0 | return false; |
160 | 0 | } |
161 | 0 | // Sentinel = 'rs' |
162 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481063)))) { |
163 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ReturnStatus'"); |
164 | 0 | return false; |
165 | 0 | } |
166 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, result)))) { |
167 | 0 | FatalError("Error deserializing 'PPropertyDescriptor'"); |
168 | 0 | return false; |
169 | 0 | } |
170 | 0 | // Sentinel = 'result' |
171 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3991766165)))) { |
172 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'PPropertyDescriptor'"); |
173 | 0 | return false; |
174 | 0 | } |
175 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
176 | 0 |
|
177 | 0 | return true; |
178 | 0 | } |
179 | | |
180 | | auto PJavaScriptParent::SendDefineProperty( |
181 | | const uint64_t& objId, |
182 | | const JSIDVariant& id, |
183 | | const PPropertyDescriptor& descriptor, |
184 | | ReturnStatus* rs) -> bool |
185 | 0 | { |
186 | 0 | IPC::Message* msg__ = PJavaScript::Msg_DefineProperty(Id()); |
187 | 0 |
|
188 | 0 | WriteIPDLParam(msg__, this, objId); |
189 | 0 | // Sentinel = 'objId' |
190 | 0 | (msg__)->WriteSentinel(89635797); |
191 | 0 | WriteIPDLParam(msg__, this, id); |
192 | 0 | // Sentinel = 'id' |
193 | 0 | (msg__)->WriteSentinel(2794505629); |
194 | 0 | WriteIPDLParam(msg__, this, descriptor); |
195 | 0 | // Sentinel = 'descriptor' |
196 | 0 | (msg__)->WriteSentinel(2435877233); |
197 | 0 |
|
198 | 0 |
|
199 | 0 |
|
200 | 0 | Message reply__; |
201 | 0 |
|
202 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
203 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
204 | 0 | } |
205 | 0 | AUTO_PROFILER_LABEL("PJavaScript::Msg_DefineProperty", OTHER); |
206 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
207 | 0 | mozilla::ipc::LogicError("Transition error"); |
208 | 0 | } |
209 | 0 |
|
210 | 0 | bool sendok__; |
211 | 0 | { |
212 | 0 | AUTO_PROFILER_TRACING("IPC", "PJavaScript::Msg_DefineProperty"); |
213 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
214 | 0 | } |
215 | 0 | if ((!(sendok__))) { |
216 | 0 | return false; |
217 | 0 | } |
218 | 0 | |
219 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
220 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
221 | 0 | } |
222 | 0 |
|
223 | 0 | PickleIterator iter__(reply__); |
224 | 0 |
|
225 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, rs)))) { |
226 | 0 | FatalError("Error deserializing 'ReturnStatus'"); |
227 | 0 | return false; |
228 | 0 | } |
229 | 0 | // Sentinel = 'rs' |
230 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481063)))) { |
231 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ReturnStatus'"); |
232 | 0 | return false; |
233 | 0 | } |
234 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
235 | 0 |
|
236 | 0 | return true; |
237 | 0 | } |
238 | | |
239 | | auto PJavaScriptParent::SendDelete( |
240 | | const uint64_t& objId, |
241 | | const JSIDVariant& id, |
242 | | ReturnStatus* rs) -> bool |
243 | 0 | { |
244 | 0 | IPC::Message* msg__ = PJavaScript::Msg_Delete(Id()); |
245 | 0 |
|
246 | 0 | WriteIPDLParam(msg__, this, objId); |
247 | 0 | // Sentinel = 'objId' |
248 | 0 | (msg__)->WriteSentinel(89635797); |
249 | 0 | WriteIPDLParam(msg__, this, id); |
250 | 0 | // Sentinel = 'id' |
251 | 0 | (msg__)->WriteSentinel(2794505629); |
252 | 0 |
|
253 | 0 |
|
254 | 0 |
|
255 | 0 | Message reply__; |
256 | 0 |
|
257 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
258 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
259 | 0 | } |
260 | 0 | AUTO_PROFILER_LABEL("PJavaScript::Msg_Delete", OTHER); |
261 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
262 | 0 | mozilla::ipc::LogicError("Transition error"); |
263 | 0 | } |
264 | 0 |
|
265 | 0 | bool sendok__; |
266 | 0 | { |
267 | 0 | AUTO_PROFILER_TRACING("IPC", "PJavaScript::Msg_Delete"); |
268 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
269 | 0 | } |
270 | 0 | if ((!(sendok__))) { |
271 | 0 | return false; |
272 | 0 | } |
273 | 0 | |
274 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
275 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
276 | 0 | } |
277 | 0 |
|
278 | 0 | PickleIterator iter__(reply__); |
279 | 0 |
|
280 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, rs)))) { |
281 | 0 | FatalError("Error deserializing 'ReturnStatus'"); |
282 | 0 | return false; |
283 | 0 | } |
284 | 0 | // Sentinel = 'rs' |
285 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481063)))) { |
286 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ReturnStatus'"); |
287 | 0 | return false; |
288 | 0 | } |
289 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
290 | 0 |
|
291 | 0 | return true; |
292 | 0 | } |
293 | | |
294 | | auto PJavaScriptParent::SendHas( |
295 | | const uint64_t& objId, |
296 | | const JSIDVariant& id, |
297 | | ReturnStatus* rs, |
298 | | bool* has) -> bool |
299 | 0 | { |
300 | 0 | IPC::Message* msg__ = PJavaScript::Msg_Has(Id()); |
301 | 0 |
|
302 | 0 | WriteIPDLParam(msg__, this, objId); |
303 | 0 | // Sentinel = 'objId' |
304 | 0 | (msg__)->WriteSentinel(89635797); |
305 | 0 | WriteIPDLParam(msg__, this, id); |
306 | 0 | // Sentinel = 'id' |
307 | 0 | (msg__)->WriteSentinel(2794505629); |
308 | 0 |
|
309 | 0 |
|
310 | 0 |
|
311 | 0 | Message reply__; |
312 | 0 |
|
313 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
314 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
315 | 0 | } |
316 | 0 | AUTO_PROFILER_LABEL("PJavaScript::Msg_Has", OTHER); |
317 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
318 | 0 | mozilla::ipc::LogicError("Transition error"); |
319 | 0 | } |
320 | 0 |
|
321 | 0 | bool sendok__; |
322 | 0 | { |
323 | 0 | AUTO_PROFILER_TRACING("IPC", "PJavaScript::Msg_Has"); |
324 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
325 | 0 | } |
326 | 0 | if ((!(sendok__))) { |
327 | 0 | return false; |
328 | 0 | } |
329 | 0 | |
330 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
331 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
332 | 0 | } |
333 | 0 |
|
334 | 0 | PickleIterator iter__(reply__); |
335 | 0 |
|
336 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, rs)))) { |
337 | 0 | FatalError("Error deserializing 'ReturnStatus'"); |
338 | 0 | return false; |
339 | 0 | } |
340 | 0 | // Sentinel = 'rs' |
341 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481063)))) { |
342 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ReturnStatus'"); |
343 | 0 | return false; |
344 | 0 | } |
345 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, has)))) { |
346 | 0 | FatalError("Error deserializing 'bool'"); |
347 | 0 | return false; |
348 | 0 | } |
349 | 0 | // Sentinel = 'has' |
350 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1255409211)))) { |
351 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
352 | 0 | return false; |
353 | 0 | } |
354 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
355 | 0 |
|
356 | 0 | return true; |
357 | 0 | } |
358 | | |
359 | | auto PJavaScriptParent::SendHasOwn( |
360 | | const uint64_t& objId, |
361 | | const JSIDVariant& id, |
362 | | ReturnStatus* rs, |
363 | | bool* has) -> bool |
364 | 0 | { |
365 | 0 | IPC::Message* msg__ = PJavaScript::Msg_HasOwn(Id()); |
366 | 0 |
|
367 | 0 | WriteIPDLParam(msg__, this, objId); |
368 | 0 | // Sentinel = 'objId' |
369 | 0 | (msg__)->WriteSentinel(89635797); |
370 | 0 | WriteIPDLParam(msg__, this, id); |
371 | 0 | // Sentinel = 'id' |
372 | 0 | (msg__)->WriteSentinel(2794505629); |
373 | 0 |
|
374 | 0 |
|
375 | 0 |
|
376 | 0 | Message reply__; |
377 | 0 |
|
378 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
379 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
380 | 0 | } |
381 | 0 | AUTO_PROFILER_LABEL("PJavaScript::Msg_HasOwn", OTHER); |
382 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
383 | 0 | mozilla::ipc::LogicError("Transition error"); |
384 | 0 | } |
385 | 0 |
|
386 | 0 | bool sendok__; |
387 | 0 | { |
388 | 0 | AUTO_PROFILER_TRACING("IPC", "PJavaScript::Msg_HasOwn"); |
389 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
390 | 0 | } |
391 | 0 | if ((!(sendok__))) { |
392 | 0 | return false; |
393 | 0 | } |
394 | 0 | |
395 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
396 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
397 | 0 | } |
398 | 0 |
|
399 | 0 | PickleIterator iter__(reply__); |
400 | 0 |
|
401 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, rs)))) { |
402 | 0 | FatalError("Error deserializing 'ReturnStatus'"); |
403 | 0 | return false; |
404 | 0 | } |
405 | 0 | // Sentinel = 'rs' |
406 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481063)))) { |
407 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ReturnStatus'"); |
408 | 0 | return false; |
409 | 0 | } |
410 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, has)))) { |
411 | 0 | FatalError("Error deserializing 'bool'"); |
412 | 0 | return false; |
413 | 0 | } |
414 | 0 | // Sentinel = 'has' |
415 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1255409211)))) { |
416 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
417 | 0 | return false; |
418 | 0 | } |
419 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
420 | 0 |
|
421 | 0 | return true; |
422 | 0 | } |
423 | | |
424 | | auto PJavaScriptParent::SendGet( |
425 | | const uint64_t& objId, |
426 | | const JSVariant& receiver, |
427 | | const JSIDVariant& id, |
428 | | ReturnStatus* rs, |
429 | | JSVariant* result) -> bool |
430 | 0 | { |
431 | 0 | IPC::Message* msg__ = PJavaScript::Msg_Get(Id()); |
432 | 0 |
|
433 | 0 | WriteIPDLParam(msg__, this, objId); |
434 | 0 | // Sentinel = 'objId' |
435 | 0 | (msg__)->WriteSentinel(89635797); |
436 | 0 | WriteIPDLParam(msg__, this, receiver); |
437 | 0 | // Sentinel = 'receiver' |
438 | 0 | (msg__)->WriteSentinel(2352325879); |
439 | 0 | WriteIPDLParam(msg__, this, id); |
440 | 0 | // Sentinel = 'id' |
441 | 0 | (msg__)->WriteSentinel(2794505629); |
442 | 0 |
|
443 | 0 |
|
444 | 0 |
|
445 | 0 | Message reply__; |
446 | 0 |
|
447 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
448 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
449 | 0 | } |
450 | 0 | AUTO_PROFILER_LABEL("PJavaScript::Msg_Get", OTHER); |
451 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
452 | 0 | mozilla::ipc::LogicError("Transition error"); |
453 | 0 | } |
454 | 0 |
|
455 | 0 | bool sendok__; |
456 | 0 | { |
457 | 0 | AUTO_PROFILER_TRACING("IPC", "PJavaScript::Msg_Get"); |
458 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
459 | 0 | } |
460 | 0 | if ((!(sendok__))) { |
461 | 0 | return false; |
462 | 0 | } |
463 | 0 | |
464 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
465 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
466 | 0 | } |
467 | 0 |
|
468 | 0 | PickleIterator iter__(reply__); |
469 | 0 |
|
470 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, rs)))) { |
471 | 0 | FatalError("Error deserializing 'ReturnStatus'"); |
472 | 0 | return false; |
473 | 0 | } |
474 | 0 | // Sentinel = 'rs' |
475 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481063)))) { |
476 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ReturnStatus'"); |
477 | 0 | return false; |
478 | 0 | } |
479 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, result)))) { |
480 | 0 | FatalError("Error deserializing 'JSVariant'"); |
481 | 0 | return false; |
482 | 0 | } |
483 | 0 | // Sentinel = 'result' |
484 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3991766165)))) { |
485 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'JSVariant'"); |
486 | 0 | return false; |
487 | 0 | } |
488 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
489 | 0 |
|
490 | 0 | return true; |
491 | 0 | } |
492 | | |
493 | | auto PJavaScriptParent::SendSet( |
494 | | const uint64_t& objId, |
495 | | const JSIDVariant& id, |
496 | | const JSVariant& value, |
497 | | const JSVariant& receiver, |
498 | | ReturnStatus* rs) -> bool |
499 | 0 | { |
500 | 0 | IPC::Message* msg__ = PJavaScript::Msg_Set(Id()); |
501 | 0 |
|
502 | 0 | WriteIPDLParam(msg__, this, objId); |
503 | 0 | // Sentinel = 'objId' |
504 | 0 | (msg__)->WriteSentinel(89635797); |
505 | 0 | WriteIPDLParam(msg__, this, id); |
506 | 0 | // Sentinel = 'id' |
507 | 0 | (msg__)->WriteSentinel(2794505629); |
508 | 0 | WriteIPDLParam(msg__, this, value); |
509 | 0 | // Sentinel = 'value' |
510 | 0 | (msg__)->WriteSentinel(3456818542); |
511 | 0 | WriteIPDLParam(msg__, this, receiver); |
512 | 0 | // Sentinel = 'receiver' |
513 | 0 | (msg__)->WriteSentinel(2352325879); |
514 | 0 |
|
515 | 0 |
|
516 | 0 |
|
517 | 0 | Message reply__; |
518 | 0 |
|
519 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
520 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
521 | 0 | } |
522 | 0 | AUTO_PROFILER_LABEL("PJavaScript::Msg_Set", OTHER); |
523 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
524 | 0 | mozilla::ipc::LogicError("Transition error"); |
525 | 0 | } |
526 | 0 |
|
527 | 0 | bool sendok__; |
528 | 0 | { |
529 | 0 | AUTO_PROFILER_TRACING("IPC", "PJavaScript::Msg_Set"); |
530 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
531 | 0 | } |
532 | 0 | if ((!(sendok__))) { |
533 | 0 | return false; |
534 | 0 | } |
535 | 0 | |
536 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
537 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
538 | 0 | } |
539 | 0 |
|
540 | 0 | PickleIterator iter__(reply__); |
541 | 0 |
|
542 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, rs)))) { |
543 | 0 | FatalError("Error deserializing 'ReturnStatus'"); |
544 | 0 | return false; |
545 | 0 | } |
546 | 0 | // Sentinel = 'rs' |
547 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481063)))) { |
548 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ReturnStatus'"); |
549 | 0 | return false; |
550 | 0 | } |
551 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
552 | 0 |
|
553 | 0 | return true; |
554 | 0 | } |
555 | | |
556 | | auto PJavaScriptParent::SendIsExtensible( |
557 | | const uint64_t& objId, |
558 | | ReturnStatus* rs, |
559 | | bool* result) -> bool |
560 | 0 | { |
561 | 0 | IPC::Message* msg__ = PJavaScript::Msg_IsExtensible(Id()); |
562 | 0 |
|
563 | 0 | WriteIPDLParam(msg__, this, objId); |
564 | 0 | // Sentinel = 'objId' |
565 | 0 | (msg__)->WriteSentinel(89635797); |
566 | 0 |
|
567 | 0 |
|
568 | 0 |
|
569 | 0 | Message reply__; |
570 | 0 |
|
571 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
572 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
573 | 0 | } |
574 | 0 | AUTO_PROFILER_LABEL("PJavaScript::Msg_IsExtensible", OTHER); |
575 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
576 | 0 | mozilla::ipc::LogicError("Transition error"); |
577 | 0 | } |
578 | 0 |
|
579 | 0 | bool sendok__; |
580 | 0 | { |
581 | 0 | AUTO_PROFILER_TRACING("IPC", "PJavaScript::Msg_IsExtensible"); |
582 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
583 | 0 | } |
584 | 0 | if ((!(sendok__))) { |
585 | 0 | return false; |
586 | 0 | } |
587 | 0 | |
588 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
589 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
590 | 0 | } |
591 | 0 |
|
592 | 0 | PickleIterator iter__(reply__); |
593 | 0 |
|
594 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, rs)))) { |
595 | 0 | FatalError("Error deserializing 'ReturnStatus'"); |
596 | 0 | return false; |
597 | 0 | } |
598 | 0 | // Sentinel = 'rs' |
599 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481063)))) { |
600 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ReturnStatus'"); |
601 | 0 | return false; |
602 | 0 | } |
603 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, result)))) { |
604 | 0 | FatalError("Error deserializing 'bool'"); |
605 | 0 | return false; |
606 | 0 | } |
607 | 0 | // Sentinel = 'result' |
608 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3991766165)))) { |
609 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
610 | 0 | return false; |
611 | 0 | } |
612 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
613 | 0 |
|
614 | 0 | return true; |
615 | 0 | } |
616 | | |
617 | | auto PJavaScriptParent::SendCallOrConstruct( |
618 | | const uint64_t& objId, |
619 | | const nsTArray<JSParam>& argv, |
620 | | const bool& construct, |
621 | | ReturnStatus* rs, |
622 | | JSVariant* result, |
623 | | nsTArray<JSParam>* outparams) -> bool |
624 | 0 | { |
625 | 0 | IPC::Message* msg__ = PJavaScript::Msg_CallOrConstruct(Id()); |
626 | 0 |
|
627 | 0 | WriteIPDLParam(msg__, this, objId); |
628 | 0 | // Sentinel = 'objId' |
629 | 0 | (msg__)->WriteSentinel(89635797); |
630 | 0 | WriteIPDLParam(msg__, this, argv); |
631 | 0 | // Sentinel = 'argv' |
632 | 0 | (msg__)->WriteSentinel(2823760590); |
633 | 0 | WriteIPDLParam(msg__, this, construct); |
634 | 0 | // Sentinel = 'construct' |
635 | 0 | (msg__)->WriteSentinel(1907020590); |
636 | 0 |
|
637 | 0 |
|
638 | 0 |
|
639 | 0 | Message reply__; |
640 | 0 |
|
641 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
642 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
643 | 0 | } |
644 | 0 | AUTO_PROFILER_LABEL("PJavaScript::Msg_CallOrConstruct", OTHER); |
645 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
646 | 0 | mozilla::ipc::LogicError("Transition error"); |
647 | 0 | } |
648 | 0 |
|
649 | 0 | bool sendok__; |
650 | 0 | { |
651 | 0 | AUTO_PROFILER_TRACING("IPC", "PJavaScript::Msg_CallOrConstruct"); |
652 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
653 | 0 | } |
654 | 0 | if ((!(sendok__))) { |
655 | 0 | return false; |
656 | 0 | } |
657 | 0 | |
658 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
659 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
660 | 0 | } |
661 | 0 |
|
662 | 0 | PickleIterator iter__(reply__); |
663 | 0 |
|
664 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, rs)))) { |
665 | 0 | FatalError("Error deserializing 'ReturnStatus'"); |
666 | 0 | return false; |
667 | 0 | } |
668 | 0 | // Sentinel = 'rs' |
669 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481063)))) { |
670 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ReturnStatus'"); |
671 | 0 | return false; |
672 | 0 | } |
673 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, result)))) { |
674 | 0 | FatalError("Error deserializing 'JSVariant'"); |
675 | 0 | return false; |
676 | 0 | } |
677 | 0 | // Sentinel = 'result' |
678 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3991766165)))) { |
679 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'JSVariant'"); |
680 | 0 | return false; |
681 | 0 | } |
682 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, outparams)))) { |
683 | 0 | FatalError("Error deserializing 'nsTArray'"); |
684 | 0 | return false; |
685 | 0 | } |
686 | 0 | // Sentinel = 'outparams' |
687 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1380950303)))) { |
688 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
689 | 0 | return false; |
690 | 0 | } |
691 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
692 | 0 |
|
693 | 0 | return true; |
694 | 0 | } |
695 | | |
696 | | auto PJavaScriptParent::SendHasInstance( |
697 | | const uint64_t& objId, |
698 | | const JSVariant& v, |
699 | | ReturnStatus* rs, |
700 | | bool* has) -> bool |
701 | 0 | { |
702 | 0 | IPC::Message* msg__ = PJavaScript::Msg_HasInstance(Id()); |
703 | 0 |
|
704 | 0 | WriteIPDLParam(msg__, this, objId); |
705 | 0 | // Sentinel = 'objId' |
706 | 0 | (msg__)->WriteSentinel(89635797); |
707 | 0 | WriteIPDLParam(msg__, this, v); |
708 | 0 | // Sentinel = 'v' |
709 | 0 | (msg__)->WriteSentinel(2219143543); |
710 | 0 |
|
711 | 0 |
|
712 | 0 |
|
713 | 0 | Message reply__; |
714 | 0 |
|
715 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
716 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
717 | 0 | } |
718 | 0 | AUTO_PROFILER_LABEL("PJavaScript::Msg_HasInstance", OTHER); |
719 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
720 | 0 | mozilla::ipc::LogicError("Transition error"); |
721 | 0 | } |
722 | 0 |
|
723 | 0 | bool sendok__; |
724 | 0 | { |
725 | 0 | AUTO_PROFILER_TRACING("IPC", "PJavaScript::Msg_HasInstance"); |
726 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
727 | 0 | } |
728 | 0 | if ((!(sendok__))) { |
729 | 0 | return false; |
730 | 0 | } |
731 | 0 | |
732 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
733 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
734 | 0 | } |
735 | 0 |
|
736 | 0 | PickleIterator iter__(reply__); |
737 | 0 |
|
738 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, rs)))) { |
739 | 0 | FatalError("Error deserializing 'ReturnStatus'"); |
740 | 0 | return false; |
741 | 0 | } |
742 | 0 | // Sentinel = 'rs' |
743 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481063)))) { |
744 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ReturnStatus'"); |
745 | 0 | return false; |
746 | 0 | } |
747 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, has)))) { |
748 | 0 | FatalError("Error deserializing 'bool'"); |
749 | 0 | return false; |
750 | 0 | } |
751 | 0 | // Sentinel = 'has' |
752 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1255409211)))) { |
753 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
754 | 0 | return false; |
755 | 0 | } |
756 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
757 | 0 |
|
758 | 0 | return true; |
759 | 0 | } |
760 | | |
761 | | auto PJavaScriptParent::SendGetBuiltinClass( |
762 | | const uint64_t& objId, |
763 | | ReturnStatus* rs, |
764 | | uint32_t* classValue) -> bool |
765 | 0 | { |
766 | 0 | IPC::Message* msg__ = PJavaScript::Msg_GetBuiltinClass(Id()); |
767 | 0 |
|
768 | 0 | WriteIPDLParam(msg__, this, objId); |
769 | 0 | // Sentinel = 'objId' |
770 | 0 | (msg__)->WriteSentinel(89635797); |
771 | 0 |
|
772 | 0 |
|
773 | 0 |
|
774 | 0 | Message reply__; |
775 | 0 |
|
776 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
777 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
778 | 0 | } |
779 | 0 | AUTO_PROFILER_LABEL("PJavaScript::Msg_GetBuiltinClass", OTHER); |
780 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
781 | 0 | mozilla::ipc::LogicError("Transition error"); |
782 | 0 | } |
783 | 0 |
|
784 | 0 | bool sendok__; |
785 | 0 | { |
786 | 0 | AUTO_PROFILER_TRACING("IPC", "PJavaScript::Msg_GetBuiltinClass"); |
787 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
788 | 0 | } |
789 | 0 | if ((!(sendok__))) { |
790 | 0 | return false; |
791 | 0 | } |
792 | 0 | |
793 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
794 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
795 | 0 | } |
796 | 0 |
|
797 | 0 | PickleIterator iter__(reply__); |
798 | 0 |
|
799 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, rs)))) { |
800 | 0 | FatalError("Error deserializing 'ReturnStatus'"); |
801 | 0 | return false; |
802 | 0 | } |
803 | 0 | // Sentinel = 'rs' |
804 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481063)))) { |
805 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ReturnStatus'"); |
806 | 0 | return false; |
807 | 0 | } |
808 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, classValue)))) { |
809 | 0 | FatalError("Error deserializing 'uint32_t'"); |
810 | 0 | return false; |
811 | 0 | } |
812 | 0 | // Sentinel = 'classValue' |
813 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2941051785)))) { |
814 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
815 | 0 | return false; |
816 | 0 | } |
817 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
818 | 0 |
|
819 | 0 | return true; |
820 | 0 | } |
821 | | |
822 | | auto PJavaScriptParent::SendIsArray( |
823 | | const uint64_t& objId, |
824 | | ReturnStatus* rs, |
825 | | uint32_t* ans) -> bool |
826 | 0 | { |
827 | 0 | IPC::Message* msg__ = PJavaScript::Msg_IsArray(Id()); |
828 | 0 |
|
829 | 0 | WriteIPDLParam(msg__, this, objId); |
830 | 0 | // Sentinel = 'objId' |
831 | 0 | (msg__)->WriteSentinel(89635797); |
832 | 0 |
|
833 | 0 |
|
834 | 0 |
|
835 | 0 | Message reply__; |
836 | 0 |
|
837 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
838 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
839 | 0 | } |
840 | 0 | AUTO_PROFILER_LABEL("PJavaScript::Msg_IsArray", OTHER); |
841 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
842 | 0 | mozilla::ipc::LogicError("Transition error"); |
843 | 0 | } |
844 | 0 |
|
845 | 0 | bool sendok__; |
846 | 0 | { |
847 | 0 | AUTO_PROFILER_TRACING("IPC", "PJavaScript::Msg_IsArray"); |
848 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
849 | 0 | } |
850 | 0 | if ((!(sendok__))) { |
851 | 0 | return false; |
852 | 0 | } |
853 | 0 | |
854 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
855 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
856 | 0 | } |
857 | 0 |
|
858 | 0 | PickleIterator iter__(reply__); |
859 | 0 |
|
860 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, rs)))) { |
861 | 0 | FatalError("Error deserializing 'ReturnStatus'"); |
862 | 0 | return false; |
863 | 0 | } |
864 | 0 | // Sentinel = 'rs' |
865 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481063)))) { |
866 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ReturnStatus'"); |
867 | 0 | return false; |
868 | 0 | } |
869 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, ans)))) { |
870 | 0 | FatalError("Error deserializing 'uint32_t'"); |
871 | 0 | return false; |
872 | 0 | } |
873 | 0 | // Sentinel = 'ans' |
874 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2706041751)))) { |
875 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
876 | 0 | return false; |
877 | 0 | } |
878 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
879 | 0 |
|
880 | 0 | return true; |
881 | 0 | } |
882 | | |
883 | | auto PJavaScriptParent::SendClassName( |
884 | | const uint64_t& objId, |
885 | | nsCString* name) -> bool |
886 | 0 | { |
887 | 0 | IPC::Message* msg__ = PJavaScript::Msg_ClassName(Id()); |
888 | 0 |
|
889 | 0 | WriteIPDLParam(msg__, this, objId); |
890 | 0 | // Sentinel = 'objId' |
891 | 0 | (msg__)->WriteSentinel(89635797); |
892 | 0 |
|
893 | 0 |
|
894 | 0 |
|
895 | 0 | Message reply__; |
896 | 0 |
|
897 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
898 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
899 | 0 | } |
900 | 0 | AUTO_PROFILER_LABEL("PJavaScript::Msg_ClassName", OTHER); |
901 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
902 | 0 | mozilla::ipc::LogicError("Transition error"); |
903 | 0 | } |
904 | 0 |
|
905 | 0 | bool sendok__; |
906 | 0 | { |
907 | 0 | AUTO_PROFILER_TRACING("IPC", "PJavaScript::Msg_ClassName"); |
908 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
909 | 0 | } |
910 | 0 | if ((!(sendok__))) { |
911 | 0 | return false; |
912 | 0 | } |
913 | 0 | |
914 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
915 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
916 | 0 | } |
917 | 0 |
|
918 | 0 | PickleIterator iter__(reply__); |
919 | 0 |
|
920 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, name)))) { |
921 | 0 | FatalError("Error deserializing 'nsCString'"); |
922 | 0 | return false; |
923 | 0 | } |
924 | 0 | // Sentinel = 'name' |
925 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 15034981)))) { |
926 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'"); |
927 | 0 | return false; |
928 | 0 | } |
929 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
930 | 0 |
|
931 | 0 | return true; |
932 | 0 | } |
933 | | |
934 | | auto PJavaScriptParent::SendGetPrototype( |
935 | | const uint64_t& objId, |
936 | | ReturnStatus* rs, |
937 | | ObjectOrNullVariant* result) -> bool |
938 | 0 | { |
939 | 0 | IPC::Message* msg__ = PJavaScript::Msg_GetPrototype(Id()); |
940 | 0 |
|
941 | 0 | WriteIPDLParam(msg__, this, objId); |
942 | 0 | // Sentinel = 'objId' |
943 | 0 | (msg__)->WriteSentinel(89635797); |
944 | 0 |
|
945 | 0 |
|
946 | 0 |
|
947 | 0 | Message reply__; |
948 | 0 |
|
949 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
950 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
951 | 0 | } |
952 | 0 | AUTO_PROFILER_LABEL("PJavaScript::Msg_GetPrototype", OTHER); |
953 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
954 | 0 | mozilla::ipc::LogicError("Transition error"); |
955 | 0 | } |
956 | 0 |
|
957 | 0 | bool sendok__; |
958 | 0 | { |
959 | 0 | AUTO_PROFILER_TRACING("IPC", "PJavaScript::Msg_GetPrototype"); |
960 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
961 | 0 | } |
962 | 0 | if ((!(sendok__))) { |
963 | 0 | return false; |
964 | 0 | } |
965 | 0 | |
966 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
967 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
968 | 0 | } |
969 | 0 |
|
970 | 0 | PickleIterator iter__(reply__); |
971 | 0 |
|
972 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, rs)))) { |
973 | 0 | FatalError("Error deserializing 'ReturnStatus'"); |
974 | 0 | return false; |
975 | 0 | } |
976 | 0 | // Sentinel = 'rs' |
977 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481063)))) { |
978 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ReturnStatus'"); |
979 | 0 | return false; |
980 | 0 | } |
981 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, result)))) { |
982 | 0 | FatalError("Error deserializing 'ObjectOrNullVariant'"); |
983 | 0 | return false; |
984 | 0 | } |
985 | 0 | // Sentinel = 'result' |
986 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3991766165)))) { |
987 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ObjectOrNullVariant'"); |
988 | 0 | return false; |
989 | 0 | } |
990 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
991 | 0 |
|
992 | 0 | return true; |
993 | 0 | } |
994 | | |
995 | | auto PJavaScriptParent::SendGetPrototypeIfOrdinary( |
996 | | const uint64_t& objId, |
997 | | ReturnStatus* rs, |
998 | | bool* isOrdinary, |
999 | | ObjectOrNullVariant* result) -> bool |
1000 | 0 | { |
1001 | 0 | IPC::Message* msg__ = PJavaScript::Msg_GetPrototypeIfOrdinary(Id()); |
1002 | 0 |
|
1003 | 0 | WriteIPDLParam(msg__, this, objId); |
1004 | 0 | // Sentinel = 'objId' |
1005 | 0 | (msg__)->WriteSentinel(89635797); |
1006 | 0 |
|
1007 | 0 |
|
1008 | 0 |
|
1009 | 0 | Message reply__; |
1010 | 0 |
|
1011 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
1012 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1013 | 0 | } |
1014 | 0 | AUTO_PROFILER_LABEL("PJavaScript::Msg_GetPrototypeIfOrdinary", OTHER); |
1015 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1016 | 0 | mozilla::ipc::LogicError("Transition error"); |
1017 | 0 | } |
1018 | 0 |
|
1019 | 0 | bool sendok__; |
1020 | 0 | { |
1021 | 0 | AUTO_PROFILER_TRACING("IPC", "PJavaScript::Msg_GetPrototypeIfOrdinary"); |
1022 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
1023 | 0 | } |
1024 | 0 | if ((!(sendok__))) { |
1025 | 0 | return false; |
1026 | 0 | } |
1027 | 0 | |
1028 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
1029 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
1030 | 0 | } |
1031 | 0 |
|
1032 | 0 | PickleIterator iter__(reply__); |
1033 | 0 |
|
1034 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, rs)))) { |
1035 | 0 | FatalError("Error deserializing 'ReturnStatus'"); |
1036 | 0 | return false; |
1037 | 0 | } |
1038 | 0 | // Sentinel = 'rs' |
1039 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481063)))) { |
1040 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ReturnStatus'"); |
1041 | 0 | return false; |
1042 | 0 | } |
1043 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, isOrdinary)))) { |
1044 | 0 | FatalError("Error deserializing 'bool'"); |
1045 | 0 | return false; |
1046 | 0 | } |
1047 | 0 | // Sentinel = 'isOrdinary' |
1048 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3108664816)))) { |
1049 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
1050 | 0 | return false; |
1051 | 0 | } |
1052 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, result)))) { |
1053 | 0 | FatalError("Error deserializing 'ObjectOrNullVariant'"); |
1054 | 0 | return false; |
1055 | 0 | } |
1056 | 0 | // Sentinel = 'result' |
1057 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3991766165)))) { |
1058 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ObjectOrNullVariant'"); |
1059 | 0 | return false; |
1060 | 0 | } |
1061 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
1062 | 0 |
|
1063 | 0 | return true; |
1064 | 0 | } |
1065 | | |
1066 | | auto PJavaScriptParent::SendRegExpToShared( |
1067 | | const uint64_t& objId, |
1068 | | ReturnStatus* rs, |
1069 | | nsString* source, |
1070 | | uint32_t* flags) -> bool |
1071 | 0 | { |
1072 | 0 | IPC::Message* msg__ = PJavaScript::Msg_RegExpToShared(Id()); |
1073 | 0 |
|
1074 | 0 | WriteIPDLParam(msg__, this, objId); |
1075 | 0 | // Sentinel = 'objId' |
1076 | 0 | (msg__)->WriteSentinel(89635797); |
1077 | 0 |
|
1078 | 0 |
|
1079 | 0 |
|
1080 | 0 | Message reply__; |
1081 | 0 |
|
1082 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
1083 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1084 | 0 | } |
1085 | 0 | AUTO_PROFILER_LABEL("PJavaScript::Msg_RegExpToShared", OTHER); |
1086 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1087 | 0 | mozilla::ipc::LogicError("Transition error"); |
1088 | 0 | } |
1089 | 0 |
|
1090 | 0 | bool sendok__; |
1091 | 0 | { |
1092 | 0 | AUTO_PROFILER_TRACING("IPC", "PJavaScript::Msg_RegExpToShared"); |
1093 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
1094 | 0 | } |
1095 | 0 | if ((!(sendok__))) { |
1096 | 0 | return false; |
1097 | 0 | } |
1098 | 0 | |
1099 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
1100 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
1101 | 0 | } |
1102 | 0 |
|
1103 | 0 | PickleIterator iter__(reply__); |
1104 | 0 |
|
1105 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, rs)))) { |
1106 | 0 | FatalError("Error deserializing 'ReturnStatus'"); |
1107 | 0 | return false; |
1108 | 0 | } |
1109 | 0 | // Sentinel = 'rs' |
1110 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481063)))) { |
1111 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ReturnStatus'"); |
1112 | 0 | return false; |
1113 | 0 | } |
1114 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, source)))) { |
1115 | 0 | FatalError("Error deserializing 'nsString'"); |
1116 | 0 | return false; |
1117 | 0 | } |
1118 | 0 | // Sentinel = 'source' |
1119 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 774264369)))) { |
1120 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsString'"); |
1121 | 0 | return false; |
1122 | 0 | } |
1123 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, flags)))) { |
1124 | 0 | FatalError("Error deserializing 'uint32_t'"); |
1125 | 0 | return false; |
1126 | 0 | } |
1127 | 0 | // Sentinel = 'flags' |
1128 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2550519284)))) { |
1129 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
1130 | 0 | return false; |
1131 | 0 | } |
1132 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
1133 | 0 |
|
1134 | 0 | return true; |
1135 | 0 | } |
1136 | | |
1137 | | auto PJavaScriptParent::SendGetPropertyKeys( |
1138 | | const uint64_t& objId, |
1139 | | const uint32_t& flags, |
1140 | | ReturnStatus* rs, |
1141 | | nsTArray<JSIDVariant>* ids) -> bool |
1142 | 0 | { |
1143 | 0 | IPC::Message* msg__ = PJavaScript::Msg_GetPropertyKeys(Id()); |
1144 | 0 |
|
1145 | 0 | WriteIPDLParam(msg__, this, objId); |
1146 | 0 | // Sentinel = 'objId' |
1147 | 0 | (msg__)->WriteSentinel(89635797); |
1148 | 0 | WriteIPDLParam(msg__, this, flags); |
1149 | 0 | // Sentinel = 'flags' |
1150 | 0 | (msg__)->WriteSentinel(2550519284); |
1151 | 0 |
|
1152 | 0 |
|
1153 | 0 |
|
1154 | 0 | Message reply__; |
1155 | 0 |
|
1156 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
1157 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1158 | 0 | } |
1159 | 0 | AUTO_PROFILER_LABEL("PJavaScript::Msg_GetPropertyKeys", OTHER); |
1160 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1161 | 0 | mozilla::ipc::LogicError("Transition error"); |
1162 | 0 | } |
1163 | 0 |
|
1164 | 0 | bool sendok__; |
1165 | 0 | { |
1166 | 0 | AUTO_PROFILER_TRACING("IPC", "PJavaScript::Msg_GetPropertyKeys"); |
1167 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
1168 | 0 | } |
1169 | 0 | if ((!(sendok__))) { |
1170 | 0 | return false; |
1171 | 0 | } |
1172 | 0 | |
1173 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
1174 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
1175 | 0 | } |
1176 | 0 |
|
1177 | 0 | PickleIterator iter__(reply__); |
1178 | 0 |
|
1179 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, rs)))) { |
1180 | 0 | FatalError("Error deserializing 'ReturnStatus'"); |
1181 | 0 | return false; |
1182 | 0 | } |
1183 | 0 | // Sentinel = 'rs' |
1184 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481063)))) { |
1185 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ReturnStatus'"); |
1186 | 0 | return false; |
1187 | 0 | } |
1188 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, ids)))) { |
1189 | 0 | FatalError("Error deserializing 'nsTArray'"); |
1190 | 0 | return false; |
1191 | 0 | } |
1192 | 0 | // Sentinel = 'ids' |
1193 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2133309165)))) { |
1194 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
1195 | 0 | return false; |
1196 | 0 | } |
1197 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
1198 | 0 |
|
1199 | 0 | return true; |
1200 | 0 | } |
1201 | | |
1202 | | auto PJavaScriptParent::SendInstanceOf( |
1203 | | const uint64_t& objId, |
1204 | | const JSIID& iid, |
1205 | | ReturnStatus* rs, |
1206 | | bool* instanceof) -> bool |
1207 | 0 | { |
1208 | 0 | IPC::Message* msg__ = PJavaScript::Msg_InstanceOf(Id()); |
1209 | 0 |
|
1210 | 0 | WriteIPDLParam(msg__, this, objId); |
1211 | 0 | // Sentinel = 'objId' |
1212 | 0 | (msg__)->WriteSentinel(89635797); |
1213 | 0 | WriteIPDLParam(msg__, this, iid); |
1214 | 0 | // Sentinel = 'iid' |
1215 | 0 | (msg__)->WriteSentinel(2120309073); |
1216 | 0 |
|
1217 | 0 |
|
1218 | 0 |
|
1219 | 0 | Message reply__; |
1220 | 0 |
|
1221 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
1222 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1223 | 0 | } |
1224 | 0 | AUTO_PROFILER_LABEL("PJavaScript::Msg_InstanceOf", OTHER); |
1225 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1226 | 0 | mozilla::ipc::LogicError("Transition error"); |
1227 | 0 | } |
1228 | 0 |
|
1229 | 0 | bool sendok__; |
1230 | 0 | { |
1231 | 0 | AUTO_PROFILER_TRACING("IPC", "PJavaScript::Msg_InstanceOf"); |
1232 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
1233 | 0 | } |
1234 | 0 | if ((!(sendok__))) { |
1235 | 0 | return false; |
1236 | 0 | } |
1237 | 0 | |
1238 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
1239 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
1240 | 0 | } |
1241 | 0 |
|
1242 | 0 | PickleIterator iter__(reply__); |
1243 | 0 |
|
1244 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, rs)))) { |
1245 | 0 | FatalError("Error deserializing 'ReturnStatus'"); |
1246 | 0 | return false; |
1247 | 0 | } |
1248 | 0 | // Sentinel = 'rs' |
1249 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481063)))) { |
1250 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ReturnStatus'"); |
1251 | 0 | return false; |
1252 | 0 | } |
1253 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, instanceof)))) { |
1254 | 0 | FatalError("Error deserializing 'bool'"); |
1255 | 0 | return false; |
1256 | 0 | } |
1257 | 0 | // Sentinel = 'instanceof' |
1258 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3780461152)))) { |
1259 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
1260 | 0 | return false; |
1261 | 0 | } |
1262 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
1263 | 0 |
|
1264 | 0 | return true; |
1265 | 0 | } |
1266 | | |
1267 | | auto PJavaScriptParent::SendDOMInstanceOf( |
1268 | | const uint64_t& objId, |
1269 | | const int& prototypeID, |
1270 | | const int& depth, |
1271 | | ReturnStatus* rs, |
1272 | | bool* instanceof) -> bool |
1273 | 0 | { |
1274 | 0 | IPC::Message* msg__ = PJavaScript::Msg_DOMInstanceOf(Id()); |
1275 | 0 |
|
1276 | 0 | WriteIPDLParam(msg__, this, objId); |
1277 | 0 | // Sentinel = 'objId' |
1278 | 0 | (msg__)->WriteSentinel(89635797); |
1279 | 0 | WriteIPDLParam(msg__, this, prototypeID); |
1280 | 0 | // Sentinel = 'prototypeID' |
1281 | 0 | (msg__)->WriteSentinel(1277533842); |
1282 | 0 | WriteIPDLParam(msg__, this, depth); |
1283 | 0 | // Sentinel = 'depth' |
1284 | 0 | (msg__)->WriteSentinel(1427290098); |
1285 | 0 |
|
1286 | 0 |
|
1287 | 0 |
|
1288 | 0 | Message reply__; |
1289 | 0 |
|
1290 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
1291 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1292 | 0 | } |
1293 | 0 | AUTO_PROFILER_LABEL("PJavaScript::Msg_DOMInstanceOf", OTHER); |
1294 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1295 | 0 | mozilla::ipc::LogicError("Transition error"); |
1296 | 0 | } |
1297 | 0 |
|
1298 | 0 | bool sendok__; |
1299 | 0 | { |
1300 | 0 | AUTO_PROFILER_TRACING("IPC", "PJavaScript::Msg_DOMInstanceOf"); |
1301 | 0 | sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__))); |
1302 | 0 | } |
1303 | 0 | if ((!(sendok__))) { |
1304 | 0 | return false; |
1305 | 0 | } |
1306 | 0 | |
1307 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
1308 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
1309 | 0 | } |
1310 | 0 |
|
1311 | 0 | PickleIterator iter__(reply__); |
1312 | 0 |
|
1313 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, rs)))) { |
1314 | 0 | FatalError("Error deserializing 'ReturnStatus'"); |
1315 | 0 | return false; |
1316 | 0 | } |
1317 | 0 | // Sentinel = 'rs' |
1318 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481063)))) { |
1319 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'ReturnStatus'"); |
1320 | 0 | return false; |
1321 | 0 | } |
1322 | 0 | if ((!(ReadIPDLParam((&(reply__)), (&(iter__)), this, instanceof)))) { |
1323 | 0 | FatalError("Error deserializing 'bool'"); |
1324 | 0 | return false; |
1325 | 0 | } |
1326 | 0 | // Sentinel = 'instanceof' |
1327 | 0 | if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3780461152)))) { |
1328 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
1329 | 0 | return false; |
1330 | 0 | } |
1331 | 0 | (reply__).EndRead(iter__, (reply__).type()); |
1332 | 0 |
|
1333 | 0 | return true; |
1334 | 0 | } |
1335 | | |
1336 | | auto PJavaScriptParent::SendDropTemporaryStrongReferences(const uint64_t& upToObjId) -> bool |
1337 | 0 | { |
1338 | 0 | IPC::Message* msg__ = PJavaScript::Msg_DropTemporaryStrongReferences(Id()); |
1339 | 0 |
|
1340 | 0 | WriteIPDLParam(msg__, this, upToObjId); |
1341 | 0 | // Sentinel = 'upToObjId' |
1342 | 0 | (msg__)->WriteSentinel(1095532117); |
1343 | 0 |
|
1344 | 0 |
|
1345 | 0 |
|
1346 | 0 |
|
1347 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
1348 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending); |
1349 | 0 | } |
1350 | 0 | AUTO_PROFILER_LABEL("PJavaScript::Msg_DropTemporaryStrongReferences", OTHER); |
1351 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1352 | 0 | mozilla::ipc::LogicError("Transition error"); |
1353 | 0 | } |
1354 | 0 |
|
1355 | 0 | bool sendok__ = (GetIPCChannel())->Send(msg__); |
1356 | 0 | return sendok__; |
1357 | 0 | } |
1358 | | |
1359 | | auto PJavaScriptParent::RemoveManagee( |
1360 | | int32_t aProtocolId, |
1361 | | IProtocol* aListener) -> void |
1362 | 0 | { |
1363 | 0 | FatalError("unreached"); |
1364 | 0 | return; |
1365 | 0 | } |
1366 | | |
1367 | | auto PJavaScriptParent::OnMessageReceived(const Message& msg__) -> PJavaScriptParent::Result |
1368 | 0 | { |
1369 | 0 | switch ((msg__).type()) { |
1370 | 0 | case PJavaScript::Msg_DropObject__ID: |
1371 | 0 | { |
1372 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
1373 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
1374 | 0 | } |
1375 | 0 | AUTO_PROFILER_LABEL("PJavaScript::Msg_DropObject", OTHER); |
1376 | 0 |
|
1377 | 0 | PickleIterator iter__(msg__); |
1378 | 0 | uint64_t objId; |
1379 | 0 |
|
1380 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(objId)))))) { |
1381 | 0 | FatalError("Error deserializing 'uint64_t'"); |
1382 | 0 | return MsgValueError; |
1383 | 0 | } |
1384 | 0 | // Sentinel = 'objId' |
1385 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 89635797)))) { |
1386 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'"); |
1387 | 0 | return MsgValueError; |
1388 | 0 | } |
1389 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
1390 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1391 | 0 | FatalError("Transition error"); |
1392 | 0 | return MsgValueError; |
1393 | 0 | } |
1394 | 0 | if ((!(RecvDropObject(objId)))) { |
1395 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
1396 | 0 | // Error handled in mozilla::ipc::IPCResult |
1397 | 0 | return MsgProcessingError; |
1398 | 0 | } |
1399 | 0 | |
1400 | 0 | return MsgProcessed; |
1401 | 0 | } |
1402 | 0 | case PJavaScript::Msg___delete____ID: |
1403 | 0 | { |
1404 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
1405 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
1406 | 0 | } |
1407 | 0 | AUTO_PROFILER_LABEL("PJavaScript::Msg___delete__", OTHER); |
1408 | 0 |
|
1409 | 0 | PickleIterator iter__(msg__); |
1410 | 0 | PJavaScriptParent* actor; |
1411 | 0 |
|
1412 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(actor)))))) { |
1413 | 0 | FatalError("Error deserializing 'PJavaScriptParent'"); |
1414 | 0 | return MsgValueError; |
1415 | 0 | } |
1416 | 0 | if ((!((*((&(actor))))))) { |
1417 | 0 | FatalError("Error deserializing 'PJavaScriptParent'"); |
1418 | 0 | return MsgValueError; |
1419 | 0 | } |
1420 | 0 | // Sentinel = 'actor' |
1421 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) { |
1422 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'PJavaScriptParent'"); |
1423 | 0 | return MsgValueError; |
1424 | 0 | } |
1425 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
1426 | 0 | if ((!(StateTransition(true, (&(mLivenessState)))))) { |
1427 | 0 | FatalError("Transition error"); |
1428 | 0 | return MsgValueError; |
1429 | 0 | } |
1430 | 0 | if ((!(Recv__delete__()))) { |
1431 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
1432 | 0 | // Error handled in mozilla::ipc::IPCResult |
1433 | 0 | return MsgProcessingError; |
1434 | 0 | } |
1435 | 0 | |
1436 | 0 | |
1437 | 0 | IProtocol* mgr = (actor)->Manager(); |
1438 | 0 | (actor)->DestroySubtree(Deletion); |
1439 | 0 | (actor)->DeallocSubtree(); |
1440 | 0 | (mgr)->RemoveManagee(PJavaScriptMsgStart, actor); |
1441 | 0 |
|
1442 | 0 | return MsgProcessed; |
1443 | 0 | } |
1444 | 0 | default: |
1445 | 0 | { |
1446 | 0 | return MsgNotKnown; |
1447 | 0 | } |
1448 | 0 | } |
1449 | 0 | } |
1450 | | |
1451 | | auto PJavaScriptParent::OnMessageReceived( |
1452 | | const Message& msg__, |
1453 | | Message*& reply__) -> PJavaScriptParent::Result |
1454 | 0 | { |
1455 | 0 | switch ((msg__).type()) { |
1456 | 0 | case PJavaScript::Msg_PreventExtensions__ID: |
1457 | 0 | { |
1458 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
1459 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
1460 | 0 | } |
1461 | 0 | AUTO_PROFILER_LABEL("PJavaScript::Msg_PreventExtensions", OTHER); |
1462 | 0 |
|
1463 | 0 | PickleIterator iter__(msg__); |
1464 | 0 | uint64_t objId; |
1465 | 0 |
|
1466 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(objId)))))) { |
1467 | 0 | FatalError("Error deserializing 'uint64_t'"); |
1468 | 0 | return MsgValueError; |
1469 | 0 | } |
1470 | 0 | // Sentinel = 'objId' |
1471 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 89635797)))) { |
1472 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'"); |
1473 | 0 | return MsgValueError; |
1474 | 0 | } |
1475 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
1476 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1477 | 0 | FatalError("Transition error"); |
1478 | 0 | return MsgValueError; |
1479 | 0 | } |
1480 | 0 | int32_t id__ = Id(); |
1481 | 0 | ReturnStatus rs; |
1482 | 0 | if ((!(RecvPreventExtensions(objId, (&(rs)))))) { |
1483 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
1484 | 0 | // Error handled in mozilla::ipc::IPCResult |
1485 | 0 | return MsgProcessingError; |
1486 | 0 | } |
1487 | 0 | |
1488 | 0 | reply__ = PJavaScript::Reply_PreventExtensions(id__); |
1489 | 0 |
|
1490 | 0 | WriteIPDLParam(reply__, this, rs); |
1491 | 0 | // Sentinel = 'rs' |
1492 | 0 | (reply__)->WriteSentinel(702481063); |
1493 | 0 |
|
1494 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
1495 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
1496 | 0 | } |
1497 | 0 | return MsgProcessed; |
1498 | 0 | } |
1499 | 0 | case PJavaScript::Msg_GetOwnPropertyDescriptor__ID: |
1500 | 0 | { |
1501 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
1502 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
1503 | 0 | } |
1504 | 0 | AUTO_PROFILER_LABEL("PJavaScript::Msg_GetOwnPropertyDescriptor", OTHER); |
1505 | 0 |
|
1506 | 0 | PickleIterator iter__(msg__); |
1507 | 0 | uint64_t objId; |
1508 | 0 | JSIDVariant id; |
1509 | 0 |
|
1510 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(objId)))))) { |
1511 | 0 | FatalError("Error deserializing 'uint64_t'"); |
1512 | 0 | return MsgValueError; |
1513 | 0 | } |
1514 | 0 | // Sentinel = 'objId' |
1515 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 89635797)))) { |
1516 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'"); |
1517 | 0 | return MsgValueError; |
1518 | 0 | } |
1519 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(id)))))) { |
1520 | 0 | FatalError("Error deserializing 'JSIDVariant'"); |
1521 | 0 | return MsgValueError; |
1522 | 0 | } |
1523 | 0 | // Sentinel = 'id' |
1524 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2794505629)))) { |
1525 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'JSIDVariant'"); |
1526 | 0 | return MsgValueError; |
1527 | 0 | } |
1528 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
1529 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1530 | 0 | FatalError("Transition error"); |
1531 | 0 | return MsgValueError; |
1532 | 0 | } |
1533 | 0 | int32_t id__ = Id(); |
1534 | 0 | ReturnStatus rs; |
1535 | 0 | PPropertyDescriptor result; |
1536 | 0 | if ((!(RecvGetOwnPropertyDescriptor(objId, id, (&(rs)), (&(result)))))) { |
1537 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
1538 | 0 | // Error handled in mozilla::ipc::IPCResult |
1539 | 0 | return MsgProcessingError; |
1540 | 0 | } |
1541 | 0 | |
1542 | 0 | reply__ = PJavaScript::Reply_GetOwnPropertyDescriptor(id__); |
1543 | 0 |
|
1544 | 0 | WriteIPDLParam(reply__, this, rs); |
1545 | 0 | // Sentinel = 'rs' |
1546 | 0 | (reply__)->WriteSentinel(702481063); |
1547 | 0 | WriteIPDLParam(reply__, this, result); |
1548 | 0 | // Sentinel = 'result' |
1549 | 0 | (reply__)->WriteSentinel(3991766165); |
1550 | 0 |
|
1551 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
1552 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
1553 | 0 | } |
1554 | 0 | return MsgProcessed; |
1555 | 0 | } |
1556 | 0 | case PJavaScript::Msg_DefineProperty__ID: |
1557 | 0 | { |
1558 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
1559 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
1560 | 0 | } |
1561 | 0 | AUTO_PROFILER_LABEL("PJavaScript::Msg_DefineProperty", OTHER); |
1562 | 0 |
|
1563 | 0 | PickleIterator iter__(msg__); |
1564 | 0 | uint64_t objId; |
1565 | 0 | JSIDVariant id; |
1566 | 0 | PPropertyDescriptor descriptor; |
1567 | 0 |
|
1568 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(objId)))))) { |
1569 | 0 | FatalError("Error deserializing 'uint64_t'"); |
1570 | 0 | return MsgValueError; |
1571 | 0 | } |
1572 | 0 | // Sentinel = 'objId' |
1573 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 89635797)))) { |
1574 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'"); |
1575 | 0 | return MsgValueError; |
1576 | 0 | } |
1577 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(id)))))) { |
1578 | 0 | FatalError("Error deserializing 'JSIDVariant'"); |
1579 | 0 | return MsgValueError; |
1580 | 0 | } |
1581 | 0 | // Sentinel = 'id' |
1582 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2794505629)))) { |
1583 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'JSIDVariant'"); |
1584 | 0 | return MsgValueError; |
1585 | 0 | } |
1586 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(descriptor)))))) { |
1587 | 0 | FatalError("Error deserializing 'PPropertyDescriptor'"); |
1588 | 0 | return MsgValueError; |
1589 | 0 | } |
1590 | 0 | // Sentinel = 'descriptor' |
1591 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2435877233)))) { |
1592 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'PPropertyDescriptor'"); |
1593 | 0 | return MsgValueError; |
1594 | 0 | } |
1595 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
1596 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1597 | 0 | FatalError("Transition error"); |
1598 | 0 | return MsgValueError; |
1599 | 0 | } |
1600 | 0 | int32_t id__ = Id(); |
1601 | 0 | ReturnStatus rs; |
1602 | 0 | if ((!(RecvDefineProperty(objId, id, descriptor, (&(rs)))))) { |
1603 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
1604 | 0 | // Error handled in mozilla::ipc::IPCResult |
1605 | 0 | return MsgProcessingError; |
1606 | 0 | } |
1607 | 0 | |
1608 | 0 | reply__ = PJavaScript::Reply_DefineProperty(id__); |
1609 | 0 |
|
1610 | 0 | WriteIPDLParam(reply__, this, rs); |
1611 | 0 | // Sentinel = 'rs' |
1612 | 0 | (reply__)->WriteSentinel(702481063); |
1613 | 0 |
|
1614 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
1615 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
1616 | 0 | } |
1617 | 0 | return MsgProcessed; |
1618 | 0 | } |
1619 | 0 | case PJavaScript::Msg_Delete__ID: |
1620 | 0 | { |
1621 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
1622 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
1623 | 0 | } |
1624 | 0 | AUTO_PROFILER_LABEL("PJavaScript::Msg_Delete", OTHER); |
1625 | 0 |
|
1626 | 0 | PickleIterator iter__(msg__); |
1627 | 0 | uint64_t objId; |
1628 | 0 | JSIDVariant id; |
1629 | 0 |
|
1630 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(objId)))))) { |
1631 | 0 | FatalError("Error deserializing 'uint64_t'"); |
1632 | 0 | return MsgValueError; |
1633 | 0 | } |
1634 | 0 | // Sentinel = 'objId' |
1635 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 89635797)))) { |
1636 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'"); |
1637 | 0 | return MsgValueError; |
1638 | 0 | } |
1639 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(id)))))) { |
1640 | 0 | FatalError("Error deserializing 'JSIDVariant'"); |
1641 | 0 | return MsgValueError; |
1642 | 0 | } |
1643 | 0 | // Sentinel = 'id' |
1644 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2794505629)))) { |
1645 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'JSIDVariant'"); |
1646 | 0 | return MsgValueError; |
1647 | 0 | } |
1648 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
1649 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1650 | 0 | FatalError("Transition error"); |
1651 | 0 | return MsgValueError; |
1652 | 0 | } |
1653 | 0 | int32_t id__ = Id(); |
1654 | 0 | ReturnStatus rs; |
1655 | 0 | if ((!(RecvDelete(objId, id, (&(rs)))))) { |
1656 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
1657 | 0 | // Error handled in mozilla::ipc::IPCResult |
1658 | 0 | return MsgProcessingError; |
1659 | 0 | } |
1660 | 0 | |
1661 | 0 | reply__ = PJavaScript::Reply_Delete(id__); |
1662 | 0 |
|
1663 | 0 | WriteIPDLParam(reply__, this, rs); |
1664 | 0 | // Sentinel = 'rs' |
1665 | 0 | (reply__)->WriteSentinel(702481063); |
1666 | 0 |
|
1667 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
1668 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
1669 | 0 | } |
1670 | 0 | return MsgProcessed; |
1671 | 0 | } |
1672 | 0 | case PJavaScript::Msg_Has__ID: |
1673 | 0 | { |
1674 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
1675 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
1676 | 0 | } |
1677 | 0 | AUTO_PROFILER_LABEL("PJavaScript::Msg_Has", OTHER); |
1678 | 0 |
|
1679 | 0 | PickleIterator iter__(msg__); |
1680 | 0 | uint64_t objId; |
1681 | 0 | JSIDVariant id; |
1682 | 0 |
|
1683 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(objId)))))) { |
1684 | 0 | FatalError("Error deserializing 'uint64_t'"); |
1685 | 0 | return MsgValueError; |
1686 | 0 | } |
1687 | 0 | // Sentinel = 'objId' |
1688 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 89635797)))) { |
1689 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'"); |
1690 | 0 | return MsgValueError; |
1691 | 0 | } |
1692 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(id)))))) { |
1693 | 0 | FatalError("Error deserializing 'JSIDVariant'"); |
1694 | 0 | return MsgValueError; |
1695 | 0 | } |
1696 | 0 | // Sentinel = 'id' |
1697 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2794505629)))) { |
1698 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'JSIDVariant'"); |
1699 | 0 | return MsgValueError; |
1700 | 0 | } |
1701 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
1702 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1703 | 0 | FatalError("Transition error"); |
1704 | 0 | return MsgValueError; |
1705 | 0 | } |
1706 | 0 | int32_t id__ = Id(); |
1707 | 0 | ReturnStatus rs; |
1708 | 0 | bool has; |
1709 | 0 | if ((!(RecvHas(objId, id, (&(rs)), (&(has)))))) { |
1710 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
1711 | 0 | // Error handled in mozilla::ipc::IPCResult |
1712 | 0 | return MsgProcessingError; |
1713 | 0 | } |
1714 | 0 | |
1715 | 0 | reply__ = PJavaScript::Reply_Has(id__); |
1716 | 0 |
|
1717 | 0 | WriteIPDLParam(reply__, this, rs); |
1718 | 0 | // Sentinel = 'rs' |
1719 | 0 | (reply__)->WriteSentinel(702481063); |
1720 | 0 | WriteIPDLParam(reply__, this, has); |
1721 | 0 | // Sentinel = 'has' |
1722 | 0 | (reply__)->WriteSentinel(1255409211); |
1723 | 0 |
|
1724 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
1725 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
1726 | 0 | } |
1727 | 0 | return MsgProcessed; |
1728 | 0 | } |
1729 | 0 | case PJavaScript::Msg_HasOwn__ID: |
1730 | 0 | { |
1731 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
1732 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
1733 | 0 | } |
1734 | 0 | AUTO_PROFILER_LABEL("PJavaScript::Msg_HasOwn", OTHER); |
1735 | 0 |
|
1736 | 0 | PickleIterator iter__(msg__); |
1737 | 0 | uint64_t objId; |
1738 | 0 | JSIDVariant id; |
1739 | 0 |
|
1740 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(objId)))))) { |
1741 | 0 | FatalError("Error deserializing 'uint64_t'"); |
1742 | 0 | return MsgValueError; |
1743 | 0 | } |
1744 | 0 | // Sentinel = 'objId' |
1745 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 89635797)))) { |
1746 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'"); |
1747 | 0 | return MsgValueError; |
1748 | 0 | } |
1749 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(id)))))) { |
1750 | 0 | FatalError("Error deserializing 'JSIDVariant'"); |
1751 | 0 | return MsgValueError; |
1752 | 0 | } |
1753 | 0 | // Sentinel = 'id' |
1754 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2794505629)))) { |
1755 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'JSIDVariant'"); |
1756 | 0 | return MsgValueError; |
1757 | 0 | } |
1758 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
1759 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1760 | 0 | FatalError("Transition error"); |
1761 | 0 | return MsgValueError; |
1762 | 0 | } |
1763 | 0 | int32_t id__ = Id(); |
1764 | 0 | ReturnStatus rs; |
1765 | 0 | bool has; |
1766 | 0 | if ((!(RecvHasOwn(objId, id, (&(rs)), (&(has)))))) { |
1767 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
1768 | 0 | // Error handled in mozilla::ipc::IPCResult |
1769 | 0 | return MsgProcessingError; |
1770 | 0 | } |
1771 | 0 | |
1772 | 0 | reply__ = PJavaScript::Reply_HasOwn(id__); |
1773 | 0 |
|
1774 | 0 | WriteIPDLParam(reply__, this, rs); |
1775 | 0 | // Sentinel = 'rs' |
1776 | 0 | (reply__)->WriteSentinel(702481063); |
1777 | 0 | WriteIPDLParam(reply__, this, has); |
1778 | 0 | // Sentinel = 'has' |
1779 | 0 | (reply__)->WriteSentinel(1255409211); |
1780 | 0 |
|
1781 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
1782 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
1783 | 0 | } |
1784 | 0 | return MsgProcessed; |
1785 | 0 | } |
1786 | 0 | case PJavaScript::Msg_Get__ID: |
1787 | 0 | { |
1788 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
1789 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
1790 | 0 | } |
1791 | 0 | AUTO_PROFILER_LABEL("PJavaScript::Msg_Get", OTHER); |
1792 | 0 |
|
1793 | 0 | PickleIterator iter__(msg__); |
1794 | 0 | uint64_t objId; |
1795 | 0 | JSVariant receiver; |
1796 | 0 | JSIDVariant id; |
1797 | 0 |
|
1798 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(objId)))))) { |
1799 | 0 | FatalError("Error deserializing 'uint64_t'"); |
1800 | 0 | return MsgValueError; |
1801 | 0 | } |
1802 | 0 | // Sentinel = 'objId' |
1803 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 89635797)))) { |
1804 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'"); |
1805 | 0 | return MsgValueError; |
1806 | 0 | } |
1807 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(receiver)))))) { |
1808 | 0 | FatalError("Error deserializing 'JSVariant'"); |
1809 | 0 | return MsgValueError; |
1810 | 0 | } |
1811 | 0 | // Sentinel = 'receiver' |
1812 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2352325879)))) { |
1813 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'JSVariant'"); |
1814 | 0 | return MsgValueError; |
1815 | 0 | } |
1816 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(id)))))) { |
1817 | 0 | FatalError("Error deserializing 'JSIDVariant'"); |
1818 | 0 | return MsgValueError; |
1819 | 0 | } |
1820 | 0 | // Sentinel = 'id' |
1821 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2794505629)))) { |
1822 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'JSIDVariant'"); |
1823 | 0 | return MsgValueError; |
1824 | 0 | } |
1825 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
1826 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1827 | 0 | FatalError("Transition error"); |
1828 | 0 | return MsgValueError; |
1829 | 0 | } |
1830 | 0 | int32_t id__ = Id(); |
1831 | 0 | ReturnStatus rs; |
1832 | 0 | JSVariant result; |
1833 | 0 | if ((!(RecvGet(objId, receiver, id, (&(rs)), (&(result)))))) { |
1834 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
1835 | 0 | // Error handled in mozilla::ipc::IPCResult |
1836 | 0 | return MsgProcessingError; |
1837 | 0 | } |
1838 | 0 | |
1839 | 0 | reply__ = PJavaScript::Reply_Get(id__); |
1840 | 0 |
|
1841 | 0 | WriteIPDLParam(reply__, this, rs); |
1842 | 0 | // Sentinel = 'rs' |
1843 | 0 | (reply__)->WriteSentinel(702481063); |
1844 | 0 | WriteIPDLParam(reply__, this, result); |
1845 | 0 | // Sentinel = 'result' |
1846 | 0 | (reply__)->WriteSentinel(3991766165); |
1847 | 0 |
|
1848 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
1849 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
1850 | 0 | } |
1851 | 0 | return MsgProcessed; |
1852 | 0 | } |
1853 | 0 | case PJavaScript::Msg_Set__ID: |
1854 | 0 | { |
1855 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
1856 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
1857 | 0 | } |
1858 | 0 | AUTO_PROFILER_LABEL("PJavaScript::Msg_Set", OTHER); |
1859 | 0 |
|
1860 | 0 | PickleIterator iter__(msg__); |
1861 | 0 | uint64_t objId; |
1862 | 0 | JSIDVariant id; |
1863 | 0 | JSVariant value; |
1864 | 0 | JSVariant receiver; |
1865 | 0 |
|
1866 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(objId)))))) { |
1867 | 0 | FatalError("Error deserializing 'uint64_t'"); |
1868 | 0 | return MsgValueError; |
1869 | 0 | } |
1870 | 0 | // Sentinel = 'objId' |
1871 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 89635797)))) { |
1872 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'"); |
1873 | 0 | return MsgValueError; |
1874 | 0 | } |
1875 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(id)))))) { |
1876 | 0 | FatalError("Error deserializing 'JSIDVariant'"); |
1877 | 0 | return MsgValueError; |
1878 | 0 | } |
1879 | 0 | // Sentinel = 'id' |
1880 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2794505629)))) { |
1881 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'JSIDVariant'"); |
1882 | 0 | return MsgValueError; |
1883 | 0 | } |
1884 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(value)))))) { |
1885 | 0 | FatalError("Error deserializing 'JSVariant'"); |
1886 | 0 | return MsgValueError; |
1887 | 0 | } |
1888 | 0 | // Sentinel = 'value' |
1889 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3456818542)))) { |
1890 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'JSVariant'"); |
1891 | 0 | return MsgValueError; |
1892 | 0 | } |
1893 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(receiver)))))) { |
1894 | 0 | FatalError("Error deserializing 'JSVariant'"); |
1895 | 0 | return MsgValueError; |
1896 | 0 | } |
1897 | 0 | // Sentinel = 'receiver' |
1898 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2352325879)))) { |
1899 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'JSVariant'"); |
1900 | 0 | return MsgValueError; |
1901 | 0 | } |
1902 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
1903 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1904 | 0 | FatalError("Transition error"); |
1905 | 0 | return MsgValueError; |
1906 | 0 | } |
1907 | 0 | int32_t id__ = Id(); |
1908 | 0 | ReturnStatus rs; |
1909 | 0 | if ((!(RecvSet(objId, id, value, receiver, (&(rs)))))) { |
1910 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
1911 | 0 | // Error handled in mozilla::ipc::IPCResult |
1912 | 0 | return MsgProcessingError; |
1913 | 0 | } |
1914 | 0 | |
1915 | 0 | reply__ = PJavaScript::Reply_Set(id__); |
1916 | 0 |
|
1917 | 0 | WriteIPDLParam(reply__, this, rs); |
1918 | 0 | // Sentinel = 'rs' |
1919 | 0 | (reply__)->WriteSentinel(702481063); |
1920 | 0 |
|
1921 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
1922 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
1923 | 0 | } |
1924 | 0 | return MsgProcessed; |
1925 | 0 | } |
1926 | 0 | case PJavaScript::Msg_IsExtensible__ID: |
1927 | 0 | { |
1928 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
1929 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
1930 | 0 | } |
1931 | 0 | AUTO_PROFILER_LABEL("PJavaScript::Msg_IsExtensible", OTHER); |
1932 | 0 |
|
1933 | 0 | PickleIterator iter__(msg__); |
1934 | 0 | uint64_t objId; |
1935 | 0 |
|
1936 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(objId)))))) { |
1937 | 0 | FatalError("Error deserializing 'uint64_t'"); |
1938 | 0 | return MsgValueError; |
1939 | 0 | } |
1940 | 0 | // Sentinel = 'objId' |
1941 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 89635797)))) { |
1942 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'"); |
1943 | 0 | return MsgValueError; |
1944 | 0 | } |
1945 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
1946 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
1947 | 0 | FatalError("Transition error"); |
1948 | 0 | return MsgValueError; |
1949 | 0 | } |
1950 | 0 | int32_t id__ = Id(); |
1951 | 0 | ReturnStatus rs; |
1952 | 0 | bool result; |
1953 | 0 | if ((!(RecvIsExtensible(objId, (&(rs)), (&(result)))))) { |
1954 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
1955 | 0 | // Error handled in mozilla::ipc::IPCResult |
1956 | 0 | return MsgProcessingError; |
1957 | 0 | } |
1958 | 0 | |
1959 | 0 | reply__ = PJavaScript::Reply_IsExtensible(id__); |
1960 | 0 |
|
1961 | 0 | WriteIPDLParam(reply__, this, rs); |
1962 | 0 | // Sentinel = 'rs' |
1963 | 0 | (reply__)->WriteSentinel(702481063); |
1964 | 0 | WriteIPDLParam(reply__, this, result); |
1965 | 0 | // Sentinel = 'result' |
1966 | 0 | (reply__)->WriteSentinel(3991766165); |
1967 | 0 |
|
1968 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
1969 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
1970 | 0 | } |
1971 | 0 | return MsgProcessed; |
1972 | 0 | } |
1973 | 0 | case PJavaScript::Msg_CallOrConstruct__ID: |
1974 | 0 | { |
1975 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
1976 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
1977 | 0 | } |
1978 | 0 | AUTO_PROFILER_LABEL("PJavaScript::Msg_CallOrConstruct", OTHER); |
1979 | 0 |
|
1980 | 0 | PickleIterator iter__(msg__); |
1981 | 0 | uint64_t objId; |
1982 | 0 | nsTArray<JSParam> argv; |
1983 | 0 | bool construct; |
1984 | 0 |
|
1985 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(objId)))))) { |
1986 | 0 | FatalError("Error deserializing 'uint64_t'"); |
1987 | 0 | return MsgValueError; |
1988 | 0 | } |
1989 | 0 | // Sentinel = 'objId' |
1990 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 89635797)))) { |
1991 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'"); |
1992 | 0 | return MsgValueError; |
1993 | 0 | } |
1994 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(argv)))))) { |
1995 | 0 | FatalError("Error deserializing 'nsTArray'"); |
1996 | 0 | return MsgValueError; |
1997 | 0 | } |
1998 | 0 | // Sentinel = 'argv' |
1999 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2823760590)))) { |
2000 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'"); |
2001 | 0 | return MsgValueError; |
2002 | 0 | } |
2003 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(construct)))))) { |
2004 | 0 | FatalError("Error deserializing 'bool'"); |
2005 | 0 | return MsgValueError; |
2006 | 0 | } |
2007 | 0 | // Sentinel = 'construct' |
2008 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1907020590)))) { |
2009 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'bool'"); |
2010 | 0 | return MsgValueError; |
2011 | 0 | } |
2012 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
2013 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2014 | 0 | FatalError("Transition error"); |
2015 | 0 | return MsgValueError; |
2016 | 0 | } |
2017 | 0 | int32_t id__ = Id(); |
2018 | 0 | ReturnStatus rs; |
2019 | 0 | JSVariant result; |
2020 | 0 | nsTArray<JSParam> outparams; |
2021 | 0 | if ((!(RecvCallOrConstruct(objId, std::move(argv), construct, (&(rs)), (&(result)), (&(outparams)))))) { |
2022 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
2023 | 0 | // Error handled in mozilla::ipc::IPCResult |
2024 | 0 | return MsgProcessingError; |
2025 | 0 | } |
2026 | 0 | |
2027 | 0 | reply__ = PJavaScript::Reply_CallOrConstruct(id__); |
2028 | 0 |
|
2029 | 0 | WriteIPDLParam(reply__, this, rs); |
2030 | 0 | // Sentinel = 'rs' |
2031 | 0 | (reply__)->WriteSentinel(702481063); |
2032 | 0 | WriteIPDLParam(reply__, this, result); |
2033 | 0 | // Sentinel = 'result' |
2034 | 0 | (reply__)->WriteSentinel(3991766165); |
2035 | 0 | WriteIPDLParam(reply__, this, outparams); |
2036 | 0 | // Sentinel = 'outparams' |
2037 | 0 | (reply__)->WriteSentinel(1380950303); |
2038 | 0 |
|
2039 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
2040 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
2041 | 0 | } |
2042 | 0 | return MsgProcessed; |
2043 | 0 | } |
2044 | 0 | case PJavaScript::Msg_HasInstance__ID: |
2045 | 0 | { |
2046 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
2047 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
2048 | 0 | } |
2049 | 0 | AUTO_PROFILER_LABEL("PJavaScript::Msg_HasInstance", OTHER); |
2050 | 0 |
|
2051 | 0 | PickleIterator iter__(msg__); |
2052 | 0 | uint64_t objId; |
2053 | 0 | JSVariant v; |
2054 | 0 |
|
2055 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(objId)))))) { |
2056 | 0 | FatalError("Error deserializing 'uint64_t'"); |
2057 | 0 | return MsgValueError; |
2058 | 0 | } |
2059 | 0 | // Sentinel = 'objId' |
2060 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 89635797)))) { |
2061 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'"); |
2062 | 0 | return MsgValueError; |
2063 | 0 | } |
2064 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(v)))))) { |
2065 | 0 | FatalError("Error deserializing 'JSVariant'"); |
2066 | 0 | return MsgValueError; |
2067 | 0 | } |
2068 | 0 | // Sentinel = 'v' |
2069 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2219143543)))) { |
2070 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'JSVariant'"); |
2071 | 0 | return MsgValueError; |
2072 | 0 | } |
2073 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
2074 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2075 | 0 | FatalError("Transition error"); |
2076 | 0 | return MsgValueError; |
2077 | 0 | } |
2078 | 0 | int32_t id__ = Id(); |
2079 | 0 | ReturnStatus rs; |
2080 | 0 | bool has; |
2081 | 0 | if ((!(RecvHasInstance(objId, v, (&(rs)), (&(has)))))) { |
2082 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
2083 | 0 | // Error handled in mozilla::ipc::IPCResult |
2084 | 0 | return MsgProcessingError; |
2085 | 0 | } |
2086 | 0 | |
2087 | 0 | reply__ = PJavaScript::Reply_HasInstance(id__); |
2088 | 0 |
|
2089 | 0 | WriteIPDLParam(reply__, this, rs); |
2090 | 0 | // Sentinel = 'rs' |
2091 | 0 | (reply__)->WriteSentinel(702481063); |
2092 | 0 | WriteIPDLParam(reply__, this, has); |
2093 | 0 | // Sentinel = 'has' |
2094 | 0 | (reply__)->WriteSentinel(1255409211); |
2095 | 0 |
|
2096 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
2097 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
2098 | 0 | } |
2099 | 0 | return MsgProcessed; |
2100 | 0 | } |
2101 | 0 | case PJavaScript::Msg_GetBuiltinClass__ID: |
2102 | 0 | { |
2103 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
2104 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
2105 | 0 | } |
2106 | 0 | AUTO_PROFILER_LABEL("PJavaScript::Msg_GetBuiltinClass", OTHER); |
2107 | 0 |
|
2108 | 0 | PickleIterator iter__(msg__); |
2109 | 0 | uint64_t objId; |
2110 | 0 |
|
2111 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(objId)))))) { |
2112 | 0 | FatalError("Error deserializing 'uint64_t'"); |
2113 | 0 | return MsgValueError; |
2114 | 0 | } |
2115 | 0 | // Sentinel = 'objId' |
2116 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 89635797)))) { |
2117 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'"); |
2118 | 0 | return MsgValueError; |
2119 | 0 | } |
2120 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
2121 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2122 | 0 | FatalError("Transition error"); |
2123 | 0 | return MsgValueError; |
2124 | 0 | } |
2125 | 0 | int32_t id__ = Id(); |
2126 | 0 | ReturnStatus rs; |
2127 | 0 | uint32_t classValue; |
2128 | 0 | if ((!(RecvGetBuiltinClass(objId, (&(rs)), (&(classValue)))))) { |
2129 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
2130 | 0 | // Error handled in mozilla::ipc::IPCResult |
2131 | 0 | return MsgProcessingError; |
2132 | 0 | } |
2133 | 0 | |
2134 | 0 | reply__ = PJavaScript::Reply_GetBuiltinClass(id__); |
2135 | 0 |
|
2136 | 0 | WriteIPDLParam(reply__, this, rs); |
2137 | 0 | // Sentinel = 'rs' |
2138 | 0 | (reply__)->WriteSentinel(702481063); |
2139 | 0 | WriteIPDLParam(reply__, this, classValue); |
2140 | 0 | // Sentinel = 'classValue' |
2141 | 0 | (reply__)->WriteSentinel(2941051785); |
2142 | 0 |
|
2143 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
2144 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
2145 | 0 | } |
2146 | 0 | return MsgProcessed; |
2147 | 0 | } |
2148 | 0 | case PJavaScript::Msg_IsArray__ID: |
2149 | 0 | { |
2150 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
2151 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
2152 | 0 | } |
2153 | 0 | AUTO_PROFILER_LABEL("PJavaScript::Msg_IsArray", OTHER); |
2154 | 0 |
|
2155 | 0 | PickleIterator iter__(msg__); |
2156 | 0 | uint64_t objId; |
2157 | 0 |
|
2158 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(objId)))))) { |
2159 | 0 | FatalError("Error deserializing 'uint64_t'"); |
2160 | 0 | return MsgValueError; |
2161 | 0 | } |
2162 | 0 | // Sentinel = 'objId' |
2163 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 89635797)))) { |
2164 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'"); |
2165 | 0 | return MsgValueError; |
2166 | 0 | } |
2167 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
2168 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2169 | 0 | FatalError("Transition error"); |
2170 | 0 | return MsgValueError; |
2171 | 0 | } |
2172 | 0 | int32_t id__ = Id(); |
2173 | 0 | ReturnStatus rs; |
2174 | 0 | uint32_t ans; |
2175 | 0 | if ((!(RecvIsArray(objId, (&(rs)), (&(ans)))))) { |
2176 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
2177 | 0 | // Error handled in mozilla::ipc::IPCResult |
2178 | 0 | return MsgProcessingError; |
2179 | 0 | } |
2180 | 0 | |
2181 | 0 | reply__ = PJavaScript::Reply_IsArray(id__); |
2182 | 0 |
|
2183 | 0 | WriteIPDLParam(reply__, this, rs); |
2184 | 0 | // Sentinel = 'rs' |
2185 | 0 | (reply__)->WriteSentinel(702481063); |
2186 | 0 | WriteIPDLParam(reply__, this, ans); |
2187 | 0 | // Sentinel = 'ans' |
2188 | 0 | (reply__)->WriteSentinel(2706041751); |
2189 | 0 |
|
2190 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
2191 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
2192 | 0 | } |
2193 | 0 | return MsgProcessed; |
2194 | 0 | } |
2195 | 0 | case PJavaScript::Msg_ClassName__ID: |
2196 | 0 | { |
2197 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
2198 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
2199 | 0 | } |
2200 | 0 | AUTO_PROFILER_LABEL("PJavaScript::Msg_ClassName", OTHER); |
2201 | 0 |
|
2202 | 0 | PickleIterator iter__(msg__); |
2203 | 0 | uint64_t objId; |
2204 | 0 |
|
2205 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(objId)))))) { |
2206 | 0 | FatalError("Error deserializing 'uint64_t'"); |
2207 | 0 | return MsgValueError; |
2208 | 0 | } |
2209 | 0 | // Sentinel = 'objId' |
2210 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 89635797)))) { |
2211 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'"); |
2212 | 0 | return MsgValueError; |
2213 | 0 | } |
2214 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
2215 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2216 | 0 | FatalError("Transition error"); |
2217 | 0 | return MsgValueError; |
2218 | 0 | } |
2219 | 0 | int32_t id__ = Id(); |
2220 | 0 | nsCString name; |
2221 | 0 | if ((!(RecvClassName(objId, (&(name)))))) { |
2222 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
2223 | 0 | // Error handled in mozilla::ipc::IPCResult |
2224 | 0 | return MsgProcessingError; |
2225 | 0 | } |
2226 | 0 | |
2227 | 0 | reply__ = PJavaScript::Reply_ClassName(id__); |
2228 | 0 |
|
2229 | 0 | WriteIPDLParam(reply__, this, name); |
2230 | 0 | // Sentinel = 'name' |
2231 | 0 | (reply__)->WriteSentinel(15034981); |
2232 | 0 |
|
2233 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
2234 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
2235 | 0 | } |
2236 | 0 | return MsgProcessed; |
2237 | 0 | } |
2238 | 0 | case PJavaScript::Msg_GetPrototype__ID: |
2239 | 0 | { |
2240 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
2241 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
2242 | 0 | } |
2243 | 0 | AUTO_PROFILER_LABEL("PJavaScript::Msg_GetPrototype", OTHER); |
2244 | 0 |
|
2245 | 0 | PickleIterator iter__(msg__); |
2246 | 0 | uint64_t objId; |
2247 | 0 |
|
2248 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(objId)))))) { |
2249 | 0 | FatalError("Error deserializing 'uint64_t'"); |
2250 | 0 | return MsgValueError; |
2251 | 0 | } |
2252 | 0 | // Sentinel = 'objId' |
2253 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 89635797)))) { |
2254 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'"); |
2255 | 0 | return MsgValueError; |
2256 | 0 | } |
2257 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
2258 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2259 | 0 | FatalError("Transition error"); |
2260 | 0 | return MsgValueError; |
2261 | 0 | } |
2262 | 0 | int32_t id__ = Id(); |
2263 | 0 | ReturnStatus rs; |
2264 | 0 | ObjectOrNullVariant result; |
2265 | 0 | if ((!(RecvGetPrototype(objId, (&(rs)), (&(result)))))) { |
2266 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
2267 | 0 | // Error handled in mozilla::ipc::IPCResult |
2268 | 0 | return MsgProcessingError; |
2269 | 0 | } |
2270 | 0 | |
2271 | 0 | reply__ = PJavaScript::Reply_GetPrototype(id__); |
2272 | 0 |
|
2273 | 0 | WriteIPDLParam(reply__, this, rs); |
2274 | 0 | // Sentinel = 'rs' |
2275 | 0 | (reply__)->WriteSentinel(702481063); |
2276 | 0 | WriteIPDLParam(reply__, this, result); |
2277 | 0 | // Sentinel = 'result' |
2278 | 0 | (reply__)->WriteSentinel(3991766165); |
2279 | 0 |
|
2280 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
2281 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
2282 | 0 | } |
2283 | 0 | return MsgProcessed; |
2284 | 0 | } |
2285 | 0 | case PJavaScript::Msg_GetPrototypeIfOrdinary__ID: |
2286 | 0 | { |
2287 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
2288 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
2289 | 0 | } |
2290 | 0 | AUTO_PROFILER_LABEL("PJavaScript::Msg_GetPrototypeIfOrdinary", OTHER); |
2291 | 0 |
|
2292 | 0 | PickleIterator iter__(msg__); |
2293 | 0 | uint64_t objId; |
2294 | 0 |
|
2295 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(objId)))))) { |
2296 | 0 | FatalError("Error deserializing 'uint64_t'"); |
2297 | 0 | return MsgValueError; |
2298 | 0 | } |
2299 | 0 | // Sentinel = 'objId' |
2300 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 89635797)))) { |
2301 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'"); |
2302 | 0 | return MsgValueError; |
2303 | 0 | } |
2304 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
2305 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2306 | 0 | FatalError("Transition error"); |
2307 | 0 | return MsgValueError; |
2308 | 0 | } |
2309 | 0 | int32_t id__ = Id(); |
2310 | 0 | ReturnStatus rs; |
2311 | 0 | bool isOrdinary; |
2312 | 0 | ObjectOrNullVariant result; |
2313 | 0 | if ((!(RecvGetPrototypeIfOrdinary(objId, (&(rs)), (&(isOrdinary)), (&(result)))))) { |
2314 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
2315 | 0 | // Error handled in mozilla::ipc::IPCResult |
2316 | 0 | return MsgProcessingError; |
2317 | 0 | } |
2318 | 0 | |
2319 | 0 | reply__ = PJavaScript::Reply_GetPrototypeIfOrdinary(id__); |
2320 | 0 |
|
2321 | 0 | WriteIPDLParam(reply__, this, rs); |
2322 | 0 | // Sentinel = 'rs' |
2323 | 0 | (reply__)->WriteSentinel(702481063); |
2324 | 0 | WriteIPDLParam(reply__, this, isOrdinary); |
2325 | 0 | // Sentinel = 'isOrdinary' |
2326 | 0 | (reply__)->WriteSentinel(3108664816); |
2327 | 0 | WriteIPDLParam(reply__, this, result); |
2328 | 0 | // Sentinel = 'result' |
2329 | 0 | (reply__)->WriteSentinel(3991766165); |
2330 | 0 |
|
2331 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
2332 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
2333 | 0 | } |
2334 | 0 | return MsgProcessed; |
2335 | 0 | } |
2336 | 0 | case PJavaScript::Msg_RegExpToShared__ID: |
2337 | 0 | { |
2338 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
2339 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
2340 | 0 | } |
2341 | 0 | AUTO_PROFILER_LABEL("PJavaScript::Msg_RegExpToShared", OTHER); |
2342 | 0 |
|
2343 | 0 | PickleIterator iter__(msg__); |
2344 | 0 | uint64_t objId; |
2345 | 0 |
|
2346 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(objId)))))) { |
2347 | 0 | FatalError("Error deserializing 'uint64_t'"); |
2348 | 0 | return MsgValueError; |
2349 | 0 | } |
2350 | 0 | // Sentinel = 'objId' |
2351 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 89635797)))) { |
2352 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'"); |
2353 | 0 | return MsgValueError; |
2354 | 0 | } |
2355 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
2356 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2357 | 0 | FatalError("Transition error"); |
2358 | 0 | return MsgValueError; |
2359 | 0 | } |
2360 | 0 | int32_t id__ = Id(); |
2361 | 0 | ReturnStatus rs; |
2362 | 0 | nsString source; |
2363 | 0 | uint32_t flags; |
2364 | 0 | if ((!(RecvRegExpToShared(objId, (&(rs)), (&(source)), (&(flags)))))) { |
2365 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
2366 | 0 | // Error handled in mozilla::ipc::IPCResult |
2367 | 0 | return MsgProcessingError; |
2368 | 0 | } |
2369 | 0 | |
2370 | 0 | reply__ = PJavaScript::Reply_RegExpToShared(id__); |
2371 | 0 |
|
2372 | 0 | WriteIPDLParam(reply__, this, rs); |
2373 | 0 | // Sentinel = 'rs' |
2374 | 0 | (reply__)->WriteSentinel(702481063); |
2375 | 0 | WriteIPDLParam(reply__, this, source); |
2376 | 0 | // Sentinel = 'source' |
2377 | 0 | (reply__)->WriteSentinel(774264369); |
2378 | 0 | WriteIPDLParam(reply__, this, flags); |
2379 | 0 | // Sentinel = 'flags' |
2380 | 0 | (reply__)->WriteSentinel(2550519284); |
2381 | 0 |
|
2382 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
2383 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
2384 | 0 | } |
2385 | 0 | return MsgProcessed; |
2386 | 0 | } |
2387 | 0 | case PJavaScript::Msg_GetPropertyKeys__ID: |
2388 | 0 | { |
2389 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
2390 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
2391 | 0 | } |
2392 | 0 | AUTO_PROFILER_LABEL("PJavaScript::Msg_GetPropertyKeys", OTHER); |
2393 | 0 |
|
2394 | 0 | PickleIterator iter__(msg__); |
2395 | 0 | uint64_t objId; |
2396 | 0 | uint32_t flags; |
2397 | 0 |
|
2398 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(objId)))))) { |
2399 | 0 | FatalError("Error deserializing 'uint64_t'"); |
2400 | 0 | return MsgValueError; |
2401 | 0 | } |
2402 | 0 | // Sentinel = 'objId' |
2403 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 89635797)))) { |
2404 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'"); |
2405 | 0 | return MsgValueError; |
2406 | 0 | } |
2407 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(flags)))))) { |
2408 | 0 | FatalError("Error deserializing 'uint32_t'"); |
2409 | 0 | return MsgValueError; |
2410 | 0 | } |
2411 | 0 | // Sentinel = 'flags' |
2412 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2550519284)))) { |
2413 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'"); |
2414 | 0 | return MsgValueError; |
2415 | 0 | } |
2416 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
2417 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2418 | 0 | FatalError("Transition error"); |
2419 | 0 | return MsgValueError; |
2420 | 0 | } |
2421 | 0 | int32_t id__ = Id(); |
2422 | 0 | ReturnStatus rs; |
2423 | 0 | nsTArray<JSIDVariant> ids; |
2424 | 0 | if ((!(RecvGetPropertyKeys(objId, flags, (&(rs)), (&(ids)))))) { |
2425 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
2426 | 0 | // Error handled in mozilla::ipc::IPCResult |
2427 | 0 | return MsgProcessingError; |
2428 | 0 | } |
2429 | 0 | |
2430 | 0 | reply__ = PJavaScript::Reply_GetPropertyKeys(id__); |
2431 | 0 |
|
2432 | 0 | WriteIPDLParam(reply__, this, rs); |
2433 | 0 | // Sentinel = 'rs' |
2434 | 0 | (reply__)->WriteSentinel(702481063); |
2435 | 0 | WriteIPDLParam(reply__, this, ids); |
2436 | 0 | // Sentinel = 'ids' |
2437 | 0 | (reply__)->WriteSentinel(2133309165); |
2438 | 0 |
|
2439 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
2440 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
2441 | 0 | } |
2442 | 0 | return MsgProcessed; |
2443 | 0 | } |
2444 | 0 | case PJavaScript::Msg_InstanceOf__ID: |
2445 | 0 | { |
2446 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
2447 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
2448 | 0 | } |
2449 | 0 | AUTO_PROFILER_LABEL("PJavaScript::Msg_InstanceOf", OTHER); |
2450 | 0 |
|
2451 | 0 | PickleIterator iter__(msg__); |
2452 | 0 | uint64_t objId; |
2453 | 0 | JSIID iid; |
2454 | 0 |
|
2455 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(objId)))))) { |
2456 | 0 | FatalError("Error deserializing 'uint64_t'"); |
2457 | 0 | return MsgValueError; |
2458 | 0 | } |
2459 | 0 | // Sentinel = 'objId' |
2460 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 89635797)))) { |
2461 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'"); |
2462 | 0 | return MsgValueError; |
2463 | 0 | } |
2464 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(iid)))))) { |
2465 | 0 | FatalError("Error deserializing 'JSIID'"); |
2466 | 0 | return MsgValueError; |
2467 | 0 | } |
2468 | 0 | // Sentinel = 'iid' |
2469 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2120309073)))) { |
2470 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'JSIID'"); |
2471 | 0 | return MsgValueError; |
2472 | 0 | } |
2473 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
2474 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2475 | 0 | FatalError("Transition error"); |
2476 | 0 | return MsgValueError; |
2477 | 0 | } |
2478 | 0 | int32_t id__ = Id(); |
2479 | 0 | ReturnStatus rs; |
2480 | 0 | bool instanceof; |
2481 | 0 | if ((!(RecvInstanceOf(objId, iid, (&(rs)), (&(instanceof)))))) { |
2482 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
2483 | 0 | // Error handled in mozilla::ipc::IPCResult |
2484 | 0 | return MsgProcessingError; |
2485 | 0 | } |
2486 | 0 | |
2487 | 0 | reply__ = PJavaScript::Reply_InstanceOf(id__); |
2488 | 0 |
|
2489 | 0 | WriteIPDLParam(reply__, this, rs); |
2490 | 0 | // Sentinel = 'rs' |
2491 | 0 | (reply__)->WriteSentinel(702481063); |
2492 | 0 | WriteIPDLParam(reply__, this, instanceof); |
2493 | 0 | // Sentinel = 'instanceof' |
2494 | 0 | (reply__)->WriteSentinel(3780461152); |
2495 | 0 |
|
2496 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
2497 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
2498 | 0 | } |
2499 | 0 | return MsgProcessed; |
2500 | 0 | } |
2501 | 0 | case PJavaScript::Msg_DOMInstanceOf__ID: |
2502 | 0 | { |
2503 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
2504 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving); |
2505 | 0 | } |
2506 | 0 | AUTO_PROFILER_LABEL("PJavaScript::Msg_DOMInstanceOf", OTHER); |
2507 | 0 |
|
2508 | 0 | PickleIterator iter__(msg__); |
2509 | 0 | uint64_t objId; |
2510 | 0 | int prototypeID; |
2511 | 0 | int depth; |
2512 | 0 |
|
2513 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(objId)))))) { |
2514 | 0 | FatalError("Error deserializing 'uint64_t'"); |
2515 | 0 | return MsgValueError; |
2516 | 0 | } |
2517 | 0 | // Sentinel = 'objId' |
2518 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 89635797)))) { |
2519 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'"); |
2520 | 0 | return MsgValueError; |
2521 | 0 | } |
2522 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(prototypeID)))))) { |
2523 | 0 | FatalError("Error deserializing 'int'"); |
2524 | 0 | return MsgValueError; |
2525 | 0 | } |
2526 | 0 | // Sentinel = 'prototypeID' |
2527 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1277533842)))) { |
2528 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'int'"); |
2529 | 0 | return MsgValueError; |
2530 | 0 | } |
2531 | 0 | if ((!(ReadIPDLParam((&(msg__)), (&(iter__)), this, (&(depth)))))) { |
2532 | 0 | FatalError("Error deserializing 'int'"); |
2533 | 0 | return MsgValueError; |
2534 | 0 | } |
2535 | 0 | // Sentinel = 'depth' |
2536 | 0 | if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1427290098)))) { |
2537 | 0 | mozilla::ipc::SentinelReadError("Error deserializing 'int'"); |
2538 | 0 | return MsgValueError; |
2539 | 0 | } |
2540 | 0 | (msg__).EndRead(iter__, (msg__).type()); |
2541 | 0 | if ((!(StateTransition(false, (&(mLivenessState)))))) { |
2542 | 0 | FatalError("Transition error"); |
2543 | 0 | return MsgValueError; |
2544 | 0 | } |
2545 | 0 | int32_t id__ = Id(); |
2546 | 0 | ReturnStatus rs; |
2547 | 0 | bool instanceof; |
2548 | 0 | if ((!(RecvDOMInstanceOf(objId, prototypeID, depth, (&(rs)), (&(instanceof)))))) { |
2549 | 0 | mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!"); |
2550 | 0 | // Error handled in mozilla::ipc::IPCResult |
2551 | 0 | return MsgProcessingError; |
2552 | 0 | } |
2553 | 0 | |
2554 | 0 | reply__ = PJavaScript::Reply_DOMInstanceOf(id__); |
2555 | 0 |
|
2556 | 0 | WriteIPDLParam(reply__, this, rs); |
2557 | 0 | // Sentinel = 'rs' |
2558 | 0 | (reply__)->WriteSentinel(702481063); |
2559 | 0 | WriteIPDLParam(reply__, this, instanceof); |
2560 | 0 | // Sentinel = 'instanceof' |
2561 | 0 | (reply__)->WriteSentinel(3780461152); |
2562 | 0 |
|
2563 | 0 | if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) { |
2564 | 0 | mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending); |
2565 | 0 | } |
2566 | 0 | return MsgProcessed; |
2567 | 0 | } |
2568 | 0 | default: |
2569 | 0 | { |
2570 | 0 | return MsgNotKnown; |
2571 | 0 | } |
2572 | 0 | } |
2573 | 0 | } |
2574 | | |
2575 | | auto PJavaScriptParent::OnCallReceived( |
2576 | | const Message& msg__, |
2577 | | Message*& reply__) -> PJavaScriptParent::Result |
2578 | 0 | { |
2579 | 0 | MOZ_ASSERT_UNREACHABLE("message protocol not supported"); |
2580 | 0 | return MsgNotKnown; |
2581 | 0 | } |
2582 | | |
2583 | | auto PJavaScriptParent::GetProtocolTypeId() -> int32_t |
2584 | 0 | { |
2585 | 0 | return PJavaScriptMsgStart; |
2586 | 0 | } |
2587 | | |
2588 | | auto PJavaScriptParent::DestroySubtree(ActorDestroyReason why) -> void |
2589 | 0 | { |
2590 | 0 | // Unregister from our manager. |
2591 | 0 | Unregister(Id()); |
2592 | 0 |
|
2593 | 0 | // Reject owning pending responses. |
2594 | 0 | (GetIPCChannel())->RejectPendingResponsesForActor(this); |
2595 | 0 |
|
2596 | 0 | // Finally, destroy "us". |
2597 | 0 | ActorDestroy(why); |
2598 | 0 | } |
2599 | | |
2600 | | auto PJavaScriptParent::DeallocSubtree() -> void |
2601 | 0 | { |
2602 | 0 | } |
2603 | | |
2604 | | |
2605 | | |
2606 | | } // namespace jsipc |
2607 | | } // namespace mozilla |
2608 | | namespace mozilla { |
2609 | | namespace ipc { |
2610 | | auto IPDLParamTraits<mozilla::jsipc::PJavaScriptParent>::Write( |
2611 | | IPC::Message* aMsg, |
2612 | | mozilla::ipc::IProtocol* aActor, |
2613 | | const paramType& aVar) -> void |
2614 | 0 | { |
2615 | 0 | int32_t id; |
2616 | 0 | if ((!(aVar))) { |
2617 | 0 | id = 0; |
2618 | 0 | } |
2619 | 0 | else { |
2620 | 0 | id = (aVar)->Id(); |
2621 | 0 | if ((1) == (id)) { |
2622 | 0 | (aActor)->FatalError("actor has been |delete|d"); |
2623 | 0 | } |
2624 | 0 | } |
2625 | 0 | WriteIPDLParam(aMsg, aActor, id); |
2626 | 0 | } |
2627 | | |
2628 | | auto IPDLParamTraits<mozilla::jsipc::PJavaScriptParent>::Read( |
2629 | | const IPC::Message* aMsg, |
2630 | | PickleIterator* aIter, |
2631 | | mozilla::ipc::IProtocol* aActor, |
2632 | | paramType* aVar) -> bool |
2633 | 0 | { |
2634 | 0 | mozilla::Maybe<mozilla::ipc::IProtocol*> actor = (aActor)->ReadActor(aMsg, aIter, true, "PJavaScript", PJavaScriptMsgStart); |
2635 | 0 | if ((actor).isNothing()) { |
2636 | 0 | return false; |
2637 | 0 | } |
2638 | 0 | |
2639 | 0 | (*(aVar)) = static_cast<mozilla::jsipc::PJavaScriptParent*>((actor).value()); |
2640 | 0 | return true; |
2641 | 0 | } |
2642 | | |
2643 | | } // namespace ipc |
2644 | | } // namespace mozilla |