Line data Source code
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 0 : auto PJavaScriptParent::Recv__delete__() -> mozilla::ipc::IPCResult
21 : {
22 0 : return IPC_OK();
23 : }
24 :
25 :
26 1 : MOZ_IMPLICIT PJavaScriptParent::PJavaScriptParent() :
27 : mozilla::ipc::IProtocol(mozilla::ipc::ParentSide),
28 1 : mState(PJavaScript::__Dead)
29 : {
30 1 : MOZ_COUNT_CTOR(PJavaScriptParent);
31 1 : }
32 :
33 0 : PJavaScriptParent::~PJavaScriptParent()
34 : {
35 0 : MOZ_COUNT_DTOR(PJavaScriptParent);
36 0 : }
37 :
38 0 : auto PJavaScriptParent::SendDropObject(const uint64_t& objId) -> bool
39 : {
40 0 : IPC::Message* msg__ = PJavaScript::Msg_DropObject(Id());
41 :
42 0 : Write(objId, msg__);
43 : // Sentinel = 'objId'
44 0 : (msg__)->WriteSentinel(89635797);
45 :
46 :
47 :
48 :
49 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
50 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
51 : }
52 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg_DropObject", OTHER);
53 0 : PJavaScript::Transition(PJavaScript::Msg_DropObject__ID, (&(mState)));
54 :
55 0 : bool sendok__ = (GetIPCChannel())->Send(msg__);
56 0 : return sendok__;
57 : }
58 :
59 0 : auto PJavaScriptParent::SendPreventExtensions(
60 : const uint64_t& objId,
61 : ReturnStatus* rs) -> bool
62 : {
63 0 : IPC::Message* msg__ = PJavaScript::Msg_PreventExtensions(Id());
64 :
65 0 : Write(objId, msg__);
66 : // Sentinel = 'objId'
67 0 : (msg__)->WriteSentinel(89635797);
68 :
69 0 : (msg__)->set_sync();
70 :
71 :
72 0 : Message reply__;
73 :
74 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
75 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
76 : }
77 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg_PreventExtensions", OTHER);
78 0 : PJavaScript::Transition(PJavaScript::Msg_PreventExtensions__ID, (&(mState)));
79 :
80 : bool sendok__;
81 : {
82 : AutoProfilerTracing syncIPCTracer(
83 : "IPC",
84 0 : "PJavaScript::Msg_PreventExtensions");
85 0 : sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
86 : }
87 0 : if ((!(sendok__))) {
88 0 : return false;
89 : }
90 :
91 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
92 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
93 : }
94 :
95 0 : PickleIterator iter__(reply__);
96 :
97 0 : if ((!(Read(rs, (&(reply__)), (&(iter__)))))) {
98 0 : FatalError("Error deserializing 'ReturnStatus'");
99 0 : return false;
100 : }
101 : // Sentinel = 'rs'
102 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481063)))) {
103 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ReturnStatus'");
104 0 : return false;
105 : }
106 0 : (reply__).EndRead(iter__, (reply__).type());
107 :
108 0 : return true;
109 : }
110 :
111 0 : auto PJavaScriptParent::SendGetPropertyDescriptor(
112 : const uint64_t& objId,
113 : const JSIDVariant& id,
114 : ReturnStatus* rs,
115 : PPropertyDescriptor* result) -> bool
116 : {
117 0 : IPC::Message* msg__ = PJavaScript::Msg_GetPropertyDescriptor(Id());
118 :
119 0 : Write(objId, msg__);
120 : // Sentinel = 'objId'
121 0 : (msg__)->WriteSentinel(89635797);
122 0 : Write(id, msg__);
123 : // Sentinel = 'id'
124 0 : (msg__)->WriteSentinel(2794505629);
125 :
126 0 : (msg__)->set_sync();
127 :
128 :
129 0 : Message reply__;
130 :
131 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
132 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
133 : }
134 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg_GetPropertyDescriptor", OTHER);
135 0 : PJavaScript::Transition(PJavaScript::Msg_GetPropertyDescriptor__ID, (&(mState)));
136 :
137 : bool sendok__;
138 : {
139 : AutoProfilerTracing syncIPCTracer(
140 : "IPC",
141 0 : "PJavaScript::Msg_GetPropertyDescriptor");
142 0 : sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
143 : }
144 0 : if ((!(sendok__))) {
145 0 : return false;
146 : }
147 :
148 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
149 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
150 : }
151 :
152 0 : PickleIterator iter__(reply__);
153 :
154 0 : if ((!(Read(rs, (&(reply__)), (&(iter__)))))) {
155 0 : FatalError("Error deserializing 'ReturnStatus'");
156 0 : return false;
157 : }
158 : // Sentinel = 'rs'
159 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481063)))) {
160 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ReturnStatus'");
161 0 : return false;
162 : }
163 0 : if ((!(Read(result, (&(reply__)), (&(iter__)))))) {
164 0 : FatalError("Error deserializing 'PPropertyDescriptor'");
165 0 : return false;
166 : }
167 : // Sentinel = 'result'
168 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3991766165)))) {
169 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PPropertyDescriptor'");
170 0 : return false;
171 : }
172 0 : (reply__).EndRead(iter__, (reply__).type());
173 :
174 0 : return true;
175 : }
176 :
177 0 : auto PJavaScriptParent::SendGetOwnPropertyDescriptor(
178 : const uint64_t& objId,
179 : const JSIDVariant& id,
180 : ReturnStatus* rs,
181 : PPropertyDescriptor* result) -> bool
182 : {
183 0 : IPC::Message* msg__ = PJavaScript::Msg_GetOwnPropertyDescriptor(Id());
184 :
185 0 : Write(objId, msg__);
186 : // Sentinel = 'objId'
187 0 : (msg__)->WriteSentinel(89635797);
188 0 : Write(id, msg__);
189 : // Sentinel = 'id'
190 0 : (msg__)->WriteSentinel(2794505629);
191 :
192 0 : (msg__)->set_sync();
193 :
194 :
195 0 : Message reply__;
196 :
197 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
198 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
199 : }
200 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg_GetOwnPropertyDescriptor", OTHER);
201 0 : PJavaScript::Transition(PJavaScript::Msg_GetOwnPropertyDescriptor__ID, (&(mState)));
202 :
203 : bool sendok__;
204 : {
205 : AutoProfilerTracing syncIPCTracer(
206 : "IPC",
207 0 : "PJavaScript::Msg_GetOwnPropertyDescriptor");
208 0 : sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
209 : }
210 0 : if ((!(sendok__))) {
211 0 : return false;
212 : }
213 :
214 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
215 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
216 : }
217 :
218 0 : PickleIterator iter__(reply__);
219 :
220 0 : if ((!(Read(rs, (&(reply__)), (&(iter__)))))) {
221 0 : FatalError("Error deserializing 'ReturnStatus'");
222 0 : return false;
223 : }
224 : // Sentinel = 'rs'
225 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481063)))) {
226 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ReturnStatus'");
227 0 : return false;
228 : }
229 0 : if ((!(Read(result, (&(reply__)), (&(iter__)))))) {
230 0 : FatalError("Error deserializing 'PPropertyDescriptor'");
231 0 : return false;
232 : }
233 : // Sentinel = 'result'
234 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3991766165)))) {
235 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PPropertyDescriptor'");
236 0 : return false;
237 : }
238 0 : (reply__).EndRead(iter__, (reply__).type());
239 :
240 0 : return true;
241 : }
242 :
243 0 : auto PJavaScriptParent::SendDefineProperty(
244 : const uint64_t& objId,
245 : const JSIDVariant& id,
246 : const PPropertyDescriptor& descriptor,
247 : ReturnStatus* rs) -> bool
248 : {
249 0 : IPC::Message* msg__ = PJavaScript::Msg_DefineProperty(Id());
250 :
251 0 : Write(objId, msg__);
252 : // Sentinel = 'objId'
253 0 : (msg__)->WriteSentinel(89635797);
254 0 : Write(id, msg__);
255 : // Sentinel = 'id'
256 0 : (msg__)->WriteSentinel(2794505629);
257 0 : Write(descriptor, msg__);
258 : // Sentinel = 'descriptor'
259 0 : (msg__)->WriteSentinel(2435877233);
260 :
261 0 : (msg__)->set_sync();
262 :
263 :
264 0 : Message reply__;
265 :
266 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
267 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
268 : }
269 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg_DefineProperty", OTHER);
270 0 : PJavaScript::Transition(PJavaScript::Msg_DefineProperty__ID, (&(mState)));
271 :
272 : bool sendok__;
273 : {
274 : AutoProfilerTracing syncIPCTracer(
275 : "IPC",
276 0 : "PJavaScript::Msg_DefineProperty");
277 0 : sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
278 : }
279 0 : if ((!(sendok__))) {
280 0 : return false;
281 : }
282 :
283 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
284 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
285 : }
286 :
287 0 : PickleIterator iter__(reply__);
288 :
289 0 : if ((!(Read(rs, (&(reply__)), (&(iter__)))))) {
290 0 : FatalError("Error deserializing 'ReturnStatus'");
291 0 : return false;
292 : }
293 : // Sentinel = 'rs'
294 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481063)))) {
295 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ReturnStatus'");
296 0 : return false;
297 : }
298 0 : (reply__).EndRead(iter__, (reply__).type());
299 :
300 0 : return true;
301 : }
302 :
303 0 : auto PJavaScriptParent::SendDelete(
304 : const uint64_t& objId,
305 : const JSIDVariant& id,
306 : ReturnStatus* rs) -> bool
307 : {
308 0 : IPC::Message* msg__ = PJavaScript::Msg_Delete(Id());
309 :
310 0 : Write(objId, msg__);
311 : // Sentinel = 'objId'
312 0 : (msg__)->WriteSentinel(89635797);
313 0 : Write(id, msg__);
314 : // Sentinel = 'id'
315 0 : (msg__)->WriteSentinel(2794505629);
316 :
317 0 : (msg__)->set_sync();
318 :
319 :
320 0 : Message reply__;
321 :
322 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
323 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
324 : }
325 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg_Delete", OTHER);
326 0 : PJavaScript::Transition(PJavaScript::Msg_Delete__ID, (&(mState)));
327 :
328 : bool sendok__;
329 : {
330 : AutoProfilerTracing syncIPCTracer(
331 : "IPC",
332 0 : "PJavaScript::Msg_Delete");
333 0 : sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
334 : }
335 0 : if ((!(sendok__))) {
336 0 : return false;
337 : }
338 :
339 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
340 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
341 : }
342 :
343 0 : PickleIterator iter__(reply__);
344 :
345 0 : if ((!(Read(rs, (&(reply__)), (&(iter__)))))) {
346 0 : FatalError("Error deserializing 'ReturnStatus'");
347 0 : return false;
348 : }
349 : // Sentinel = 'rs'
350 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481063)))) {
351 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ReturnStatus'");
352 0 : return false;
353 : }
354 0 : (reply__).EndRead(iter__, (reply__).type());
355 :
356 0 : return true;
357 : }
358 :
359 0 : auto PJavaScriptParent::SendHas(
360 : const uint64_t& objId,
361 : const JSIDVariant& id,
362 : ReturnStatus* rs,
363 : bool* has) -> bool
364 : {
365 0 : IPC::Message* msg__ = PJavaScript::Msg_Has(Id());
366 :
367 0 : Write(objId, msg__);
368 : // Sentinel = 'objId'
369 0 : (msg__)->WriteSentinel(89635797);
370 0 : Write(id, msg__);
371 : // Sentinel = 'id'
372 0 : (msg__)->WriteSentinel(2794505629);
373 :
374 0 : (msg__)->set_sync();
375 :
376 :
377 0 : Message reply__;
378 :
379 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
380 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
381 : }
382 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg_Has", OTHER);
383 0 : PJavaScript::Transition(PJavaScript::Msg_Has__ID, (&(mState)));
384 :
385 : bool sendok__;
386 : {
387 : AutoProfilerTracing syncIPCTracer(
388 : "IPC",
389 0 : "PJavaScript::Msg_Has");
390 0 : sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
391 : }
392 0 : if ((!(sendok__))) {
393 0 : return false;
394 : }
395 :
396 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
397 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
398 : }
399 :
400 0 : PickleIterator iter__(reply__);
401 :
402 0 : if ((!(Read(rs, (&(reply__)), (&(iter__)))))) {
403 0 : FatalError("Error deserializing 'ReturnStatus'");
404 0 : return false;
405 : }
406 : // Sentinel = 'rs'
407 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481063)))) {
408 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ReturnStatus'");
409 0 : return false;
410 : }
411 0 : if ((!(Read(has, (&(reply__)), (&(iter__)))))) {
412 0 : FatalError("Error deserializing 'bool'");
413 0 : return false;
414 : }
415 : // Sentinel = 'has'
416 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1255409211)))) {
417 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
418 0 : return false;
419 : }
420 0 : (reply__).EndRead(iter__, (reply__).type());
421 :
422 0 : return true;
423 : }
424 :
425 0 : auto PJavaScriptParent::SendHasOwn(
426 : const uint64_t& objId,
427 : const JSIDVariant& id,
428 : ReturnStatus* rs,
429 : bool* has) -> bool
430 : {
431 0 : IPC::Message* msg__ = PJavaScript::Msg_HasOwn(Id());
432 :
433 0 : Write(objId, msg__);
434 : // Sentinel = 'objId'
435 0 : (msg__)->WriteSentinel(89635797);
436 0 : Write(id, msg__);
437 : // Sentinel = 'id'
438 0 : (msg__)->WriteSentinel(2794505629);
439 :
440 0 : (msg__)->set_sync();
441 :
442 :
443 0 : Message reply__;
444 :
445 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
446 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
447 : }
448 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg_HasOwn", OTHER);
449 0 : PJavaScript::Transition(PJavaScript::Msg_HasOwn__ID, (&(mState)));
450 :
451 : bool sendok__;
452 : {
453 : AutoProfilerTracing syncIPCTracer(
454 : "IPC",
455 0 : "PJavaScript::Msg_HasOwn");
456 0 : sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
457 : }
458 0 : if ((!(sendok__))) {
459 0 : return false;
460 : }
461 :
462 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
463 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
464 : }
465 :
466 0 : PickleIterator iter__(reply__);
467 :
468 0 : if ((!(Read(rs, (&(reply__)), (&(iter__)))))) {
469 0 : FatalError("Error deserializing 'ReturnStatus'");
470 0 : return false;
471 : }
472 : // Sentinel = 'rs'
473 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481063)))) {
474 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ReturnStatus'");
475 0 : return false;
476 : }
477 0 : if ((!(Read(has, (&(reply__)), (&(iter__)))))) {
478 0 : FatalError("Error deserializing 'bool'");
479 0 : return false;
480 : }
481 : // Sentinel = 'has'
482 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1255409211)))) {
483 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
484 0 : return false;
485 : }
486 0 : (reply__).EndRead(iter__, (reply__).type());
487 :
488 0 : return true;
489 : }
490 :
491 0 : auto PJavaScriptParent::SendGet(
492 : const uint64_t& objId,
493 : const JSVariant& receiver,
494 : const JSIDVariant& id,
495 : ReturnStatus* rs,
496 : JSVariant* result) -> bool
497 : {
498 0 : IPC::Message* msg__ = PJavaScript::Msg_Get(Id());
499 :
500 0 : Write(objId, msg__);
501 : // Sentinel = 'objId'
502 0 : (msg__)->WriteSentinel(89635797);
503 0 : Write(receiver, msg__);
504 : // Sentinel = 'receiver'
505 0 : (msg__)->WriteSentinel(2352325879);
506 0 : Write(id, msg__);
507 : // Sentinel = 'id'
508 0 : (msg__)->WriteSentinel(2794505629);
509 :
510 0 : (msg__)->set_sync();
511 :
512 :
513 0 : Message reply__;
514 :
515 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
516 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
517 : }
518 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg_Get", OTHER);
519 0 : PJavaScript::Transition(PJavaScript::Msg_Get__ID, (&(mState)));
520 :
521 : bool sendok__;
522 : {
523 : AutoProfilerTracing syncIPCTracer(
524 : "IPC",
525 0 : "PJavaScript::Msg_Get");
526 0 : sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
527 : }
528 0 : if ((!(sendok__))) {
529 0 : return false;
530 : }
531 :
532 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
533 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
534 : }
535 :
536 0 : PickleIterator iter__(reply__);
537 :
538 0 : if ((!(Read(rs, (&(reply__)), (&(iter__)))))) {
539 0 : FatalError("Error deserializing 'ReturnStatus'");
540 0 : return false;
541 : }
542 : // Sentinel = 'rs'
543 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481063)))) {
544 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ReturnStatus'");
545 0 : return false;
546 : }
547 0 : if ((!(Read(result, (&(reply__)), (&(iter__)))))) {
548 0 : FatalError("Error deserializing 'JSVariant'");
549 0 : return false;
550 : }
551 : // Sentinel = 'result'
552 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3991766165)))) {
553 0 : mozilla::ipc::SentinelReadError("Error deserializing 'JSVariant'");
554 0 : return false;
555 : }
556 0 : (reply__).EndRead(iter__, (reply__).type());
557 :
558 0 : return true;
559 : }
560 :
561 0 : auto PJavaScriptParent::SendSet(
562 : const uint64_t& objId,
563 : const JSIDVariant& id,
564 : const JSVariant& value,
565 : const JSVariant& receiver,
566 : ReturnStatus* rs) -> bool
567 : {
568 0 : IPC::Message* msg__ = PJavaScript::Msg_Set(Id());
569 :
570 0 : Write(objId, msg__);
571 : // Sentinel = 'objId'
572 0 : (msg__)->WriteSentinel(89635797);
573 0 : Write(id, msg__);
574 : // Sentinel = 'id'
575 0 : (msg__)->WriteSentinel(2794505629);
576 0 : Write(value, msg__);
577 : // Sentinel = 'value'
578 0 : (msg__)->WriteSentinel(3456818542);
579 0 : Write(receiver, msg__);
580 : // Sentinel = 'receiver'
581 0 : (msg__)->WriteSentinel(2352325879);
582 :
583 0 : (msg__)->set_sync();
584 :
585 :
586 0 : Message reply__;
587 :
588 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
589 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
590 : }
591 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg_Set", OTHER);
592 0 : PJavaScript::Transition(PJavaScript::Msg_Set__ID, (&(mState)));
593 :
594 : bool sendok__;
595 : {
596 : AutoProfilerTracing syncIPCTracer(
597 : "IPC",
598 0 : "PJavaScript::Msg_Set");
599 0 : sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
600 : }
601 0 : if ((!(sendok__))) {
602 0 : return false;
603 : }
604 :
605 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
606 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
607 : }
608 :
609 0 : PickleIterator iter__(reply__);
610 :
611 0 : if ((!(Read(rs, (&(reply__)), (&(iter__)))))) {
612 0 : FatalError("Error deserializing 'ReturnStatus'");
613 0 : return false;
614 : }
615 : // Sentinel = 'rs'
616 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481063)))) {
617 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ReturnStatus'");
618 0 : return false;
619 : }
620 0 : (reply__).EndRead(iter__, (reply__).type());
621 :
622 0 : return true;
623 : }
624 :
625 0 : auto PJavaScriptParent::SendIsExtensible(
626 : const uint64_t& objId,
627 : ReturnStatus* rs,
628 : bool* result) -> bool
629 : {
630 0 : IPC::Message* msg__ = PJavaScript::Msg_IsExtensible(Id());
631 :
632 0 : Write(objId, msg__);
633 : // Sentinel = 'objId'
634 0 : (msg__)->WriteSentinel(89635797);
635 :
636 0 : (msg__)->set_sync();
637 :
638 :
639 0 : Message reply__;
640 :
641 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
642 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
643 : }
644 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg_IsExtensible", OTHER);
645 0 : PJavaScript::Transition(PJavaScript::Msg_IsExtensible__ID, (&(mState)));
646 :
647 : bool sendok__;
648 : {
649 : AutoProfilerTracing syncIPCTracer(
650 : "IPC",
651 0 : "PJavaScript::Msg_IsExtensible");
652 0 : sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
653 : }
654 0 : if ((!(sendok__))) {
655 0 : return false;
656 : }
657 :
658 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
659 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
660 : }
661 :
662 0 : PickleIterator iter__(reply__);
663 :
664 0 : if ((!(Read(rs, (&(reply__)), (&(iter__)))))) {
665 0 : FatalError("Error deserializing 'ReturnStatus'");
666 0 : return false;
667 : }
668 : // Sentinel = 'rs'
669 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481063)))) {
670 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ReturnStatus'");
671 0 : return false;
672 : }
673 0 : if ((!(Read(result, (&(reply__)), (&(iter__)))))) {
674 0 : FatalError("Error deserializing 'bool'");
675 0 : return false;
676 : }
677 : // Sentinel = 'result'
678 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3991766165)))) {
679 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
680 0 : return false;
681 : }
682 0 : (reply__).EndRead(iter__, (reply__).type());
683 :
684 0 : return true;
685 : }
686 :
687 0 : auto PJavaScriptParent::SendCallOrConstruct(
688 : const uint64_t& objId,
689 : const nsTArray<JSParam>& argv,
690 : const bool& construct,
691 : ReturnStatus* rs,
692 : JSVariant* result,
693 : nsTArray<JSParam>* outparams) -> bool
694 : {
695 0 : IPC::Message* msg__ = PJavaScript::Msg_CallOrConstruct(Id());
696 :
697 0 : Write(objId, msg__);
698 : // Sentinel = 'objId'
699 0 : (msg__)->WriteSentinel(89635797);
700 0 : Write(argv, msg__);
701 : // Sentinel = 'argv'
702 0 : (msg__)->WriteSentinel(2823760590);
703 0 : Write(construct, msg__);
704 : // Sentinel = 'construct'
705 0 : (msg__)->WriteSentinel(1907020590);
706 :
707 0 : (msg__)->set_sync();
708 :
709 :
710 0 : Message reply__;
711 :
712 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
713 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
714 : }
715 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg_CallOrConstruct", OTHER);
716 0 : PJavaScript::Transition(PJavaScript::Msg_CallOrConstruct__ID, (&(mState)));
717 :
718 : bool sendok__;
719 : {
720 : AutoProfilerTracing syncIPCTracer(
721 : "IPC",
722 0 : "PJavaScript::Msg_CallOrConstruct");
723 0 : sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
724 : }
725 0 : if ((!(sendok__))) {
726 0 : return false;
727 : }
728 :
729 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
730 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
731 : }
732 :
733 0 : PickleIterator iter__(reply__);
734 :
735 0 : if ((!(Read(rs, (&(reply__)), (&(iter__)))))) {
736 0 : FatalError("Error deserializing 'ReturnStatus'");
737 0 : return false;
738 : }
739 : // Sentinel = 'rs'
740 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481063)))) {
741 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ReturnStatus'");
742 0 : return false;
743 : }
744 0 : if ((!(Read(result, (&(reply__)), (&(iter__)))))) {
745 0 : FatalError("Error deserializing 'JSVariant'");
746 0 : return false;
747 : }
748 : // Sentinel = 'result'
749 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3991766165)))) {
750 0 : mozilla::ipc::SentinelReadError("Error deserializing 'JSVariant'");
751 0 : return false;
752 : }
753 0 : if ((!(Read(outparams, (&(reply__)), (&(iter__)))))) {
754 0 : FatalError("Error deserializing 'nsTArray'");
755 0 : return false;
756 : }
757 : // Sentinel = 'outparams'
758 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1380950303)))) {
759 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
760 0 : return false;
761 : }
762 0 : (reply__).EndRead(iter__, (reply__).type());
763 :
764 0 : return true;
765 : }
766 :
767 0 : auto PJavaScriptParent::SendHasInstance(
768 : const uint64_t& objId,
769 : const JSVariant& v,
770 : ReturnStatus* rs,
771 : bool* has) -> bool
772 : {
773 0 : IPC::Message* msg__ = PJavaScript::Msg_HasInstance(Id());
774 :
775 0 : Write(objId, msg__);
776 : // Sentinel = 'objId'
777 0 : (msg__)->WriteSentinel(89635797);
778 0 : Write(v, msg__);
779 : // Sentinel = 'v'
780 0 : (msg__)->WriteSentinel(2219143543);
781 :
782 0 : (msg__)->set_sync();
783 :
784 :
785 0 : Message reply__;
786 :
787 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
788 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
789 : }
790 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg_HasInstance", OTHER);
791 0 : PJavaScript::Transition(PJavaScript::Msg_HasInstance__ID, (&(mState)));
792 :
793 : bool sendok__;
794 : {
795 : AutoProfilerTracing syncIPCTracer(
796 : "IPC",
797 0 : "PJavaScript::Msg_HasInstance");
798 0 : sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
799 : }
800 0 : if ((!(sendok__))) {
801 0 : return false;
802 : }
803 :
804 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
805 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
806 : }
807 :
808 0 : PickleIterator iter__(reply__);
809 :
810 0 : if ((!(Read(rs, (&(reply__)), (&(iter__)))))) {
811 0 : FatalError("Error deserializing 'ReturnStatus'");
812 0 : return false;
813 : }
814 : // Sentinel = 'rs'
815 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481063)))) {
816 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ReturnStatus'");
817 0 : return false;
818 : }
819 0 : if ((!(Read(has, (&(reply__)), (&(iter__)))))) {
820 0 : FatalError("Error deserializing 'bool'");
821 0 : return false;
822 : }
823 : // Sentinel = 'has'
824 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 1255409211)))) {
825 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
826 0 : return false;
827 : }
828 0 : (reply__).EndRead(iter__, (reply__).type());
829 :
830 0 : return true;
831 : }
832 :
833 0 : auto PJavaScriptParent::SendGetBuiltinClass(
834 : const uint64_t& objId,
835 : ReturnStatus* rs,
836 : uint32_t* classValue) -> bool
837 : {
838 0 : IPC::Message* msg__ = PJavaScript::Msg_GetBuiltinClass(Id());
839 :
840 0 : Write(objId, msg__);
841 : // Sentinel = 'objId'
842 0 : (msg__)->WriteSentinel(89635797);
843 :
844 0 : (msg__)->set_sync();
845 :
846 :
847 0 : Message reply__;
848 :
849 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
850 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
851 : }
852 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg_GetBuiltinClass", OTHER);
853 0 : PJavaScript::Transition(PJavaScript::Msg_GetBuiltinClass__ID, (&(mState)));
854 :
855 : bool sendok__;
856 : {
857 : AutoProfilerTracing syncIPCTracer(
858 : "IPC",
859 0 : "PJavaScript::Msg_GetBuiltinClass");
860 0 : sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
861 : }
862 0 : if ((!(sendok__))) {
863 0 : return false;
864 : }
865 :
866 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
867 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
868 : }
869 :
870 0 : PickleIterator iter__(reply__);
871 :
872 0 : if ((!(Read(rs, (&(reply__)), (&(iter__)))))) {
873 0 : FatalError("Error deserializing 'ReturnStatus'");
874 0 : return false;
875 : }
876 : // Sentinel = 'rs'
877 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481063)))) {
878 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ReturnStatus'");
879 0 : return false;
880 : }
881 0 : if ((!(Read(classValue, (&(reply__)), (&(iter__)))))) {
882 0 : FatalError("Error deserializing 'uint32_t'");
883 0 : return false;
884 : }
885 : // Sentinel = 'classValue'
886 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2941051785)))) {
887 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
888 0 : return false;
889 : }
890 0 : (reply__).EndRead(iter__, (reply__).type());
891 :
892 0 : return true;
893 : }
894 :
895 0 : auto PJavaScriptParent::SendIsArray(
896 : const uint64_t& objId,
897 : ReturnStatus* rs,
898 : uint32_t* ans) -> bool
899 : {
900 0 : IPC::Message* msg__ = PJavaScript::Msg_IsArray(Id());
901 :
902 0 : Write(objId, msg__);
903 : // Sentinel = 'objId'
904 0 : (msg__)->WriteSentinel(89635797);
905 :
906 0 : (msg__)->set_sync();
907 :
908 :
909 0 : Message reply__;
910 :
911 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
912 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
913 : }
914 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg_IsArray", OTHER);
915 0 : PJavaScript::Transition(PJavaScript::Msg_IsArray__ID, (&(mState)));
916 :
917 : bool sendok__;
918 : {
919 : AutoProfilerTracing syncIPCTracer(
920 : "IPC",
921 0 : "PJavaScript::Msg_IsArray");
922 0 : sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
923 : }
924 0 : if ((!(sendok__))) {
925 0 : return false;
926 : }
927 :
928 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
929 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
930 : }
931 :
932 0 : PickleIterator iter__(reply__);
933 :
934 0 : if ((!(Read(rs, (&(reply__)), (&(iter__)))))) {
935 0 : FatalError("Error deserializing 'ReturnStatus'");
936 0 : return false;
937 : }
938 : // Sentinel = 'rs'
939 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481063)))) {
940 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ReturnStatus'");
941 0 : return false;
942 : }
943 0 : if ((!(Read(ans, (&(reply__)), (&(iter__)))))) {
944 0 : FatalError("Error deserializing 'uint32_t'");
945 0 : return false;
946 : }
947 : // Sentinel = 'ans'
948 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2706041751)))) {
949 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
950 0 : return false;
951 : }
952 0 : (reply__).EndRead(iter__, (reply__).type());
953 :
954 0 : return true;
955 : }
956 :
957 0 : auto PJavaScriptParent::SendClassName(
958 : const uint64_t& objId,
959 : nsCString* name) -> bool
960 : {
961 0 : IPC::Message* msg__ = PJavaScript::Msg_ClassName(Id());
962 :
963 0 : Write(objId, msg__);
964 : // Sentinel = 'objId'
965 0 : (msg__)->WriteSentinel(89635797);
966 :
967 0 : (msg__)->set_sync();
968 :
969 :
970 0 : Message reply__;
971 :
972 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
973 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
974 : }
975 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg_ClassName", OTHER);
976 0 : PJavaScript::Transition(PJavaScript::Msg_ClassName__ID, (&(mState)));
977 :
978 : bool sendok__;
979 : {
980 : AutoProfilerTracing syncIPCTracer(
981 : "IPC",
982 0 : "PJavaScript::Msg_ClassName");
983 0 : sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
984 : }
985 0 : if ((!(sendok__))) {
986 0 : return false;
987 : }
988 :
989 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
990 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
991 : }
992 :
993 0 : PickleIterator iter__(reply__);
994 :
995 0 : if ((!(Read(name, (&(reply__)), (&(iter__)))))) {
996 0 : FatalError("Error deserializing 'nsCString'");
997 0 : return false;
998 : }
999 : // Sentinel = 'name'
1000 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 15034981)))) {
1001 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsCString'");
1002 0 : return false;
1003 : }
1004 0 : (reply__).EndRead(iter__, (reply__).type());
1005 :
1006 0 : return true;
1007 : }
1008 :
1009 0 : auto PJavaScriptParent::SendGetPrototype(
1010 : const uint64_t& objId,
1011 : ReturnStatus* rs,
1012 : ObjectOrNullVariant* result) -> bool
1013 : {
1014 0 : IPC::Message* msg__ = PJavaScript::Msg_GetPrototype(Id());
1015 :
1016 0 : Write(objId, msg__);
1017 : // Sentinel = 'objId'
1018 0 : (msg__)->WriteSentinel(89635797);
1019 :
1020 0 : (msg__)->set_sync();
1021 :
1022 :
1023 0 : Message reply__;
1024 :
1025 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
1026 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1027 : }
1028 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg_GetPrototype", OTHER);
1029 0 : PJavaScript::Transition(PJavaScript::Msg_GetPrototype__ID, (&(mState)));
1030 :
1031 : bool sendok__;
1032 : {
1033 : AutoProfilerTracing syncIPCTracer(
1034 : "IPC",
1035 0 : "PJavaScript::Msg_GetPrototype");
1036 0 : sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
1037 : }
1038 0 : if ((!(sendok__))) {
1039 0 : return false;
1040 : }
1041 :
1042 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
1043 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1044 : }
1045 :
1046 0 : PickleIterator iter__(reply__);
1047 :
1048 0 : if ((!(Read(rs, (&(reply__)), (&(iter__)))))) {
1049 0 : FatalError("Error deserializing 'ReturnStatus'");
1050 0 : return false;
1051 : }
1052 : // Sentinel = 'rs'
1053 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481063)))) {
1054 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ReturnStatus'");
1055 0 : return false;
1056 : }
1057 0 : if ((!(Read(result, (&(reply__)), (&(iter__)))))) {
1058 0 : FatalError("Error deserializing 'ObjectOrNullVariant'");
1059 0 : return false;
1060 : }
1061 : // Sentinel = 'result'
1062 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3991766165)))) {
1063 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ObjectOrNullVariant'");
1064 0 : return false;
1065 : }
1066 0 : (reply__).EndRead(iter__, (reply__).type());
1067 :
1068 0 : return true;
1069 : }
1070 :
1071 0 : auto PJavaScriptParent::SendGetPrototypeIfOrdinary(
1072 : const uint64_t& objId,
1073 : ReturnStatus* rs,
1074 : bool* isOrdinary,
1075 : ObjectOrNullVariant* result) -> bool
1076 : {
1077 0 : IPC::Message* msg__ = PJavaScript::Msg_GetPrototypeIfOrdinary(Id());
1078 :
1079 0 : Write(objId, msg__);
1080 : // Sentinel = 'objId'
1081 0 : (msg__)->WriteSentinel(89635797);
1082 :
1083 0 : (msg__)->set_sync();
1084 :
1085 :
1086 0 : Message reply__;
1087 :
1088 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
1089 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1090 : }
1091 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg_GetPrototypeIfOrdinary", OTHER);
1092 0 : PJavaScript::Transition(PJavaScript::Msg_GetPrototypeIfOrdinary__ID, (&(mState)));
1093 :
1094 : bool sendok__;
1095 : {
1096 : AutoProfilerTracing syncIPCTracer(
1097 : "IPC",
1098 0 : "PJavaScript::Msg_GetPrototypeIfOrdinary");
1099 0 : sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
1100 : }
1101 0 : if ((!(sendok__))) {
1102 0 : return false;
1103 : }
1104 :
1105 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
1106 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1107 : }
1108 :
1109 0 : PickleIterator iter__(reply__);
1110 :
1111 0 : if ((!(Read(rs, (&(reply__)), (&(iter__)))))) {
1112 0 : FatalError("Error deserializing 'ReturnStatus'");
1113 0 : return false;
1114 : }
1115 : // Sentinel = 'rs'
1116 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481063)))) {
1117 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ReturnStatus'");
1118 0 : return false;
1119 : }
1120 0 : if ((!(Read(isOrdinary, (&(reply__)), (&(iter__)))))) {
1121 0 : FatalError("Error deserializing 'bool'");
1122 0 : return false;
1123 : }
1124 : // Sentinel = 'isOrdinary'
1125 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3108664816)))) {
1126 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
1127 0 : return false;
1128 : }
1129 0 : if ((!(Read(result, (&(reply__)), (&(iter__)))))) {
1130 0 : FatalError("Error deserializing 'ObjectOrNullVariant'");
1131 0 : return false;
1132 : }
1133 : // Sentinel = 'result'
1134 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3991766165)))) {
1135 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ObjectOrNullVariant'");
1136 0 : return false;
1137 : }
1138 0 : (reply__).EndRead(iter__, (reply__).type());
1139 :
1140 0 : return true;
1141 : }
1142 :
1143 0 : auto PJavaScriptParent::SendRegExpToShared(
1144 : const uint64_t& objId,
1145 : ReturnStatus* rs,
1146 : nsString* source,
1147 : uint32_t* flags) -> bool
1148 : {
1149 0 : IPC::Message* msg__ = PJavaScript::Msg_RegExpToShared(Id());
1150 :
1151 0 : Write(objId, msg__);
1152 : // Sentinel = 'objId'
1153 0 : (msg__)->WriteSentinel(89635797);
1154 :
1155 0 : (msg__)->set_sync();
1156 :
1157 :
1158 0 : Message reply__;
1159 :
1160 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
1161 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1162 : }
1163 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg_RegExpToShared", OTHER);
1164 0 : PJavaScript::Transition(PJavaScript::Msg_RegExpToShared__ID, (&(mState)));
1165 :
1166 : bool sendok__;
1167 : {
1168 : AutoProfilerTracing syncIPCTracer(
1169 : "IPC",
1170 0 : "PJavaScript::Msg_RegExpToShared");
1171 0 : sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
1172 : }
1173 0 : if ((!(sendok__))) {
1174 0 : return false;
1175 : }
1176 :
1177 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
1178 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1179 : }
1180 :
1181 0 : PickleIterator iter__(reply__);
1182 :
1183 0 : if ((!(Read(rs, (&(reply__)), (&(iter__)))))) {
1184 0 : FatalError("Error deserializing 'ReturnStatus'");
1185 0 : return false;
1186 : }
1187 : // Sentinel = 'rs'
1188 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481063)))) {
1189 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ReturnStatus'");
1190 0 : return false;
1191 : }
1192 0 : if ((!(Read(source, (&(reply__)), (&(iter__)))))) {
1193 0 : FatalError("Error deserializing 'nsString'");
1194 0 : return false;
1195 : }
1196 : // Sentinel = 'source'
1197 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 774264369)))) {
1198 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsString'");
1199 0 : return false;
1200 : }
1201 0 : if ((!(Read(flags, (&(reply__)), (&(iter__)))))) {
1202 0 : FatalError("Error deserializing 'uint32_t'");
1203 0 : return false;
1204 : }
1205 : // Sentinel = 'flags'
1206 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2550519284)))) {
1207 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
1208 0 : return false;
1209 : }
1210 0 : (reply__).EndRead(iter__, (reply__).type());
1211 :
1212 0 : return true;
1213 : }
1214 :
1215 0 : auto PJavaScriptParent::SendGetPropertyKeys(
1216 : const uint64_t& objId,
1217 : const uint32_t& flags,
1218 : ReturnStatus* rs,
1219 : nsTArray<JSIDVariant>* ids) -> bool
1220 : {
1221 0 : IPC::Message* msg__ = PJavaScript::Msg_GetPropertyKeys(Id());
1222 :
1223 0 : Write(objId, msg__);
1224 : // Sentinel = 'objId'
1225 0 : (msg__)->WriteSentinel(89635797);
1226 0 : Write(flags, msg__);
1227 : // Sentinel = 'flags'
1228 0 : (msg__)->WriteSentinel(2550519284);
1229 :
1230 0 : (msg__)->set_sync();
1231 :
1232 :
1233 0 : Message reply__;
1234 :
1235 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
1236 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1237 : }
1238 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg_GetPropertyKeys", OTHER);
1239 0 : PJavaScript::Transition(PJavaScript::Msg_GetPropertyKeys__ID, (&(mState)));
1240 :
1241 : bool sendok__;
1242 : {
1243 : AutoProfilerTracing syncIPCTracer(
1244 : "IPC",
1245 0 : "PJavaScript::Msg_GetPropertyKeys");
1246 0 : sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
1247 : }
1248 0 : if ((!(sendok__))) {
1249 0 : return false;
1250 : }
1251 :
1252 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
1253 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1254 : }
1255 :
1256 0 : PickleIterator iter__(reply__);
1257 :
1258 0 : if ((!(Read(rs, (&(reply__)), (&(iter__)))))) {
1259 0 : FatalError("Error deserializing 'ReturnStatus'");
1260 0 : return false;
1261 : }
1262 : // Sentinel = 'rs'
1263 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481063)))) {
1264 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ReturnStatus'");
1265 0 : return false;
1266 : }
1267 0 : if ((!(Read(ids, (&(reply__)), (&(iter__)))))) {
1268 0 : FatalError("Error deserializing 'nsTArray'");
1269 0 : return false;
1270 : }
1271 : // Sentinel = 'ids'
1272 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 2133309165)))) {
1273 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
1274 0 : return false;
1275 : }
1276 0 : (reply__).EndRead(iter__, (reply__).type());
1277 :
1278 0 : return true;
1279 : }
1280 :
1281 0 : auto PJavaScriptParent::SendInstanceOf(
1282 : const uint64_t& objId,
1283 : const JSIID& iid,
1284 : ReturnStatus* rs,
1285 : bool* instanceof) -> bool
1286 : {
1287 0 : IPC::Message* msg__ = PJavaScript::Msg_InstanceOf(Id());
1288 :
1289 0 : Write(objId, msg__);
1290 : // Sentinel = 'objId'
1291 0 : (msg__)->WriteSentinel(89635797);
1292 0 : Write(iid, msg__);
1293 : // Sentinel = 'iid'
1294 0 : (msg__)->WriteSentinel(2120309073);
1295 :
1296 0 : (msg__)->set_sync();
1297 :
1298 :
1299 0 : Message reply__;
1300 :
1301 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
1302 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1303 : }
1304 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg_InstanceOf", OTHER);
1305 0 : PJavaScript::Transition(PJavaScript::Msg_InstanceOf__ID, (&(mState)));
1306 :
1307 : bool sendok__;
1308 : {
1309 : AutoProfilerTracing syncIPCTracer(
1310 : "IPC",
1311 0 : "PJavaScript::Msg_InstanceOf");
1312 0 : sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
1313 : }
1314 0 : if ((!(sendok__))) {
1315 0 : return false;
1316 : }
1317 :
1318 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
1319 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1320 : }
1321 :
1322 0 : PickleIterator iter__(reply__);
1323 :
1324 0 : if ((!(Read(rs, (&(reply__)), (&(iter__)))))) {
1325 0 : FatalError("Error deserializing 'ReturnStatus'");
1326 0 : return false;
1327 : }
1328 : // Sentinel = 'rs'
1329 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481063)))) {
1330 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ReturnStatus'");
1331 0 : return false;
1332 : }
1333 0 : if ((!(Read(instanceof, (&(reply__)), (&(iter__)))))) {
1334 0 : FatalError("Error deserializing 'bool'");
1335 0 : return false;
1336 : }
1337 : // Sentinel = 'instanceof'
1338 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3780461152)))) {
1339 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
1340 0 : return false;
1341 : }
1342 0 : (reply__).EndRead(iter__, (reply__).type());
1343 :
1344 0 : return true;
1345 : }
1346 :
1347 0 : auto PJavaScriptParent::SendDOMInstanceOf(
1348 : const uint64_t& objId,
1349 : const int& prototypeID,
1350 : const int& depth,
1351 : ReturnStatus* rs,
1352 : bool* instanceof) -> bool
1353 : {
1354 0 : IPC::Message* msg__ = PJavaScript::Msg_DOMInstanceOf(Id());
1355 :
1356 0 : Write(objId, msg__);
1357 : // Sentinel = 'objId'
1358 0 : (msg__)->WriteSentinel(89635797);
1359 0 : Write(prototypeID, msg__);
1360 : // Sentinel = 'prototypeID'
1361 0 : (msg__)->WriteSentinel(1277533842);
1362 0 : Write(depth, msg__);
1363 : // Sentinel = 'depth'
1364 0 : (msg__)->WriteSentinel(1427290098);
1365 :
1366 0 : (msg__)->set_sync();
1367 :
1368 :
1369 0 : Message reply__;
1370 :
1371 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
1372 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1373 : }
1374 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg_DOMInstanceOf", OTHER);
1375 0 : PJavaScript::Transition(PJavaScript::Msg_DOMInstanceOf__ID, (&(mState)));
1376 :
1377 : bool sendok__;
1378 : {
1379 : AutoProfilerTracing syncIPCTracer(
1380 : "IPC",
1381 0 : "PJavaScript::Msg_DOMInstanceOf");
1382 0 : sendok__ = (GetIPCChannel())->Send(msg__, (&(reply__)));
1383 : }
1384 0 : if ((!(sendok__))) {
1385 0 : return false;
1386 : }
1387 :
1388 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
1389 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received reply ", ((&(reply__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1390 : }
1391 :
1392 0 : PickleIterator iter__(reply__);
1393 :
1394 0 : if ((!(Read(rs, (&(reply__)), (&(iter__)))))) {
1395 0 : FatalError("Error deserializing 'ReturnStatus'");
1396 0 : return false;
1397 : }
1398 : // Sentinel = 'rs'
1399 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 702481063)))) {
1400 0 : mozilla::ipc::SentinelReadError("Error deserializing 'ReturnStatus'");
1401 0 : return false;
1402 : }
1403 0 : if ((!(Read(instanceof, (&(reply__)), (&(iter__)))))) {
1404 0 : FatalError("Error deserializing 'bool'");
1405 0 : return false;
1406 : }
1407 : // Sentinel = 'instanceof'
1408 0 : if ((!(((&(reply__)))->ReadSentinel((&(iter__)), 3780461152)))) {
1409 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
1410 0 : return false;
1411 : }
1412 0 : (reply__).EndRead(iter__, (reply__).type());
1413 :
1414 0 : return true;
1415 : }
1416 :
1417 3 : auto PJavaScriptParent::SendDropTemporaryStrongReferences(const uint64_t& upToObjId) -> bool
1418 : {
1419 3 : IPC::Message* msg__ = PJavaScript::Msg_DropTemporaryStrongReferences(Id());
1420 :
1421 3 : Write(upToObjId, msg__);
1422 : // Sentinel = 'upToObjId'
1423 3 : (msg__)->WriteSentinel(1095532117);
1424 :
1425 :
1426 :
1427 :
1428 3 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
1429 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending ", (msg__)->type(), mozilla::ipc::MessageDirection::eSending);
1430 : }
1431 6 : AUTO_PROFILER_LABEL("PJavaScript::Msg_DropTemporaryStrongReferences", OTHER);
1432 3 : PJavaScript::Transition(PJavaScript::Msg_DropTemporaryStrongReferences__ID, (&(mState)));
1433 :
1434 3 : bool sendok__ = (GetIPCChannel())->Send(msg__);
1435 6 : return sendok__;
1436 : }
1437 :
1438 0 : auto PJavaScriptParent::RemoveManagee(
1439 : int32_t aProtocolId,
1440 : ProtocolBase* aListener) -> void
1441 : {
1442 0 : FatalError("unreached");
1443 0 : return;
1444 : }
1445 :
1446 0 : auto PJavaScriptParent::OnMessageReceived(const Message& msg__) -> PJavaScriptParent::Result
1447 : {
1448 0 : switch ((msg__).type()) {
1449 : case PJavaScript::Msg_DropObject__ID:
1450 : {
1451 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
1452 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1453 : }
1454 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg_DropObject", OTHER);
1455 :
1456 0 : PickleIterator iter__(msg__);
1457 : uint64_t objId;
1458 :
1459 0 : if ((!(Read((&(objId)), (&(msg__)), (&(iter__)))))) {
1460 0 : FatalError("Error deserializing 'uint64_t'");
1461 0 : return MsgValueError;
1462 : }
1463 : // Sentinel = 'objId'
1464 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 89635797)))) {
1465 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
1466 0 : return MsgValueError;
1467 : }
1468 0 : (msg__).EndRead(iter__, (msg__).type());
1469 0 : PJavaScript::Transition(PJavaScript::Msg_DropObject__ID, (&(mState)));
1470 0 : if ((!(RecvDropObject(mozilla::Move(objId))))) {
1471 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1472 : // Error handled in mozilla::ipc::IPCResult
1473 0 : return MsgProcessingError;
1474 : }
1475 :
1476 0 : return MsgProcessed;
1477 : }
1478 : case PJavaScript::Msg___delete____ID:
1479 : {
1480 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
1481 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1482 : }
1483 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg___delete__", OTHER);
1484 :
1485 0 : PickleIterator iter__(msg__);
1486 : PJavaScriptParent* actor;
1487 :
1488 0 : if ((!(Read((&(actor)), (&(msg__)), (&(iter__)), false)))) {
1489 0 : FatalError("Error deserializing 'PJavaScriptParent'");
1490 0 : return MsgValueError;
1491 : }
1492 : // Sentinel = 'actor'
1493 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 875202478)))) {
1494 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PJavaScriptParent'");
1495 0 : return MsgValueError;
1496 : }
1497 0 : (msg__).EndRead(iter__, (msg__).type());
1498 0 : PJavaScript::Transition(PJavaScript::Msg___delete____ID, (&(mState)));
1499 0 : if ((!(Recv__delete__()))) {
1500 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1501 : // Error handled in mozilla::ipc::IPCResult
1502 0 : return MsgProcessingError;
1503 : }
1504 :
1505 :
1506 0 : IProtocol* mgr = (actor)->Manager();
1507 0 : (actor)->DestroySubtree(Deletion);
1508 0 : (actor)->DeallocSubtree();
1509 0 : (mgr)->RemoveManagee(PJavaScriptMsgStart, actor);
1510 :
1511 0 : return MsgProcessed;
1512 : }
1513 : default:
1514 : {
1515 0 : return MsgNotKnown;
1516 : }
1517 : }
1518 : }
1519 :
1520 0 : auto PJavaScriptParent::OnMessageReceived(
1521 : const Message& msg__,
1522 : Message*& reply__) -> PJavaScriptParent::Result
1523 : {
1524 0 : switch ((msg__).type()) {
1525 : case PJavaScript::Msg_PreventExtensions__ID:
1526 : {
1527 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
1528 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1529 : }
1530 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg_PreventExtensions", OTHER);
1531 :
1532 0 : PickleIterator iter__(msg__);
1533 : uint64_t objId;
1534 :
1535 0 : if ((!(Read((&(objId)), (&(msg__)), (&(iter__)))))) {
1536 0 : FatalError("Error deserializing 'uint64_t'");
1537 0 : return MsgValueError;
1538 : }
1539 : // Sentinel = 'objId'
1540 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 89635797)))) {
1541 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
1542 0 : return MsgValueError;
1543 : }
1544 0 : (msg__).EndRead(iter__, (msg__).type());
1545 0 : PJavaScript::Transition(PJavaScript::Msg_PreventExtensions__ID, (&(mState)));
1546 0 : int32_t id__ = Id();
1547 0 : ReturnStatus rs;
1548 0 : if ((!(RecvPreventExtensions(mozilla::Move(objId), (&(rs)))))) {
1549 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1550 : // Error handled in mozilla::ipc::IPCResult
1551 0 : return MsgProcessingError;
1552 : }
1553 :
1554 0 : reply__ = PJavaScript::Reply_PreventExtensions(id__);
1555 :
1556 0 : Write(rs, reply__);
1557 : // Sentinel = 'rs'
1558 0 : (reply__)->WriteSentinel(702481063);
1559 0 : (reply__)->set_sync();
1560 0 : (reply__)->set_reply();
1561 :
1562 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
1563 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
1564 : }
1565 0 : return MsgProcessed;
1566 : }
1567 : case PJavaScript::Msg_GetPropertyDescriptor__ID:
1568 : {
1569 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
1570 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1571 : }
1572 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg_GetPropertyDescriptor", OTHER);
1573 :
1574 0 : PickleIterator iter__(msg__);
1575 : uint64_t objId;
1576 0 : JSIDVariant id;
1577 :
1578 0 : if ((!(Read((&(objId)), (&(msg__)), (&(iter__)))))) {
1579 0 : FatalError("Error deserializing 'uint64_t'");
1580 0 : return MsgValueError;
1581 : }
1582 : // Sentinel = 'objId'
1583 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 89635797)))) {
1584 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
1585 0 : return MsgValueError;
1586 : }
1587 0 : if ((!(Read((&(id)), (&(msg__)), (&(iter__)))))) {
1588 0 : FatalError("Error deserializing 'JSIDVariant'");
1589 0 : return MsgValueError;
1590 : }
1591 : // Sentinel = 'id'
1592 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2794505629)))) {
1593 0 : mozilla::ipc::SentinelReadError("Error deserializing 'JSIDVariant'");
1594 0 : return MsgValueError;
1595 : }
1596 0 : (msg__).EndRead(iter__, (msg__).type());
1597 0 : PJavaScript::Transition(PJavaScript::Msg_GetPropertyDescriptor__ID, (&(mState)));
1598 0 : int32_t id__ = Id();
1599 0 : ReturnStatus rs;
1600 0 : PPropertyDescriptor result;
1601 0 : if ((!(RecvGetPropertyDescriptor(mozilla::Move(objId), mozilla::Move(id), (&(rs)), (&(result)))))) {
1602 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1603 : // Error handled in mozilla::ipc::IPCResult
1604 0 : return MsgProcessingError;
1605 : }
1606 :
1607 0 : reply__ = PJavaScript::Reply_GetPropertyDescriptor(id__);
1608 :
1609 0 : Write(rs, reply__);
1610 : // Sentinel = 'rs'
1611 0 : (reply__)->WriteSentinel(702481063);
1612 0 : Write(result, reply__);
1613 : // Sentinel = 'result'
1614 0 : (reply__)->WriteSentinel(3991766165);
1615 0 : (reply__)->set_sync();
1616 0 : (reply__)->set_reply();
1617 :
1618 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
1619 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
1620 : }
1621 0 : return MsgProcessed;
1622 : }
1623 : case PJavaScript::Msg_GetOwnPropertyDescriptor__ID:
1624 : {
1625 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
1626 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1627 : }
1628 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg_GetOwnPropertyDescriptor", OTHER);
1629 :
1630 0 : PickleIterator iter__(msg__);
1631 : uint64_t objId;
1632 0 : JSIDVariant id;
1633 :
1634 0 : if ((!(Read((&(objId)), (&(msg__)), (&(iter__)))))) {
1635 0 : FatalError("Error deserializing 'uint64_t'");
1636 0 : return MsgValueError;
1637 : }
1638 : // Sentinel = 'objId'
1639 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 89635797)))) {
1640 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
1641 0 : return MsgValueError;
1642 : }
1643 0 : if ((!(Read((&(id)), (&(msg__)), (&(iter__)))))) {
1644 0 : FatalError("Error deserializing 'JSIDVariant'");
1645 0 : return MsgValueError;
1646 : }
1647 : // Sentinel = 'id'
1648 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2794505629)))) {
1649 0 : mozilla::ipc::SentinelReadError("Error deserializing 'JSIDVariant'");
1650 0 : return MsgValueError;
1651 : }
1652 0 : (msg__).EndRead(iter__, (msg__).type());
1653 0 : PJavaScript::Transition(PJavaScript::Msg_GetOwnPropertyDescriptor__ID, (&(mState)));
1654 0 : int32_t id__ = Id();
1655 0 : ReturnStatus rs;
1656 0 : PPropertyDescriptor result;
1657 0 : if ((!(RecvGetOwnPropertyDescriptor(mozilla::Move(objId), mozilla::Move(id), (&(rs)), (&(result)))))) {
1658 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1659 : // Error handled in mozilla::ipc::IPCResult
1660 0 : return MsgProcessingError;
1661 : }
1662 :
1663 0 : reply__ = PJavaScript::Reply_GetOwnPropertyDescriptor(id__);
1664 :
1665 0 : Write(rs, reply__);
1666 : // Sentinel = 'rs'
1667 0 : (reply__)->WriteSentinel(702481063);
1668 0 : Write(result, reply__);
1669 : // Sentinel = 'result'
1670 0 : (reply__)->WriteSentinel(3991766165);
1671 0 : (reply__)->set_sync();
1672 0 : (reply__)->set_reply();
1673 :
1674 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
1675 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
1676 : }
1677 0 : return MsgProcessed;
1678 : }
1679 : case PJavaScript::Msg_DefineProperty__ID:
1680 : {
1681 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
1682 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1683 : }
1684 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg_DefineProperty", OTHER);
1685 :
1686 0 : PickleIterator iter__(msg__);
1687 : uint64_t objId;
1688 0 : JSIDVariant id;
1689 0 : PPropertyDescriptor descriptor;
1690 :
1691 0 : if ((!(Read((&(objId)), (&(msg__)), (&(iter__)))))) {
1692 0 : FatalError("Error deserializing 'uint64_t'");
1693 0 : return MsgValueError;
1694 : }
1695 : // Sentinel = 'objId'
1696 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 89635797)))) {
1697 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
1698 0 : return MsgValueError;
1699 : }
1700 0 : if ((!(Read((&(id)), (&(msg__)), (&(iter__)))))) {
1701 0 : FatalError("Error deserializing 'JSIDVariant'");
1702 0 : return MsgValueError;
1703 : }
1704 : // Sentinel = 'id'
1705 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2794505629)))) {
1706 0 : mozilla::ipc::SentinelReadError("Error deserializing 'JSIDVariant'");
1707 0 : return MsgValueError;
1708 : }
1709 0 : if ((!(Read((&(descriptor)), (&(msg__)), (&(iter__)))))) {
1710 0 : FatalError("Error deserializing 'PPropertyDescriptor'");
1711 0 : return MsgValueError;
1712 : }
1713 : // Sentinel = 'descriptor'
1714 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2435877233)))) {
1715 0 : mozilla::ipc::SentinelReadError("Error deserializing 'PPropertyDescriptor'");
1716 0 : return MsgValueError;
1717 : }
1718 0 : (msg__).EndRead(iter__, (msg__).type());
1719 0 : PJavaScript::Transition(PJavaScript::Msg_DefineProperty__ID, (&(mState)));
1720 0 : int32_t id__ = Id();
1721 0 : ReturnStatus rs;
1722 0 : if ((!(RecvDefineProperty(mozilla::Move(objId), mozilla::Move(id), mozilla::Move(descriptor), (&(rs)))))) {
1723 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1724 : // Error handled in mozilla::ipc::IPCResult
1725 0 : return MsgProcessingError;
1726 : }
1727 :
1728 0 : reply__ = PJavaScript::Reply_DefineProperty(id__);
1729 :
1730 0 : Write(rs, reply__);
1731 : // Sentinel = 'rs'
1732 0 : (reply__)->WriteSentinel(702481063);
1733 0 : (reply__)->set_sync();
1734 0 : (reply__)->set_reply();
1735 :
1736 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
1737 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
1738 : }
1739 0 : return MsgProcessed;
1740 : }
1741 : case PJavaScript::Msg_Delete__ID:
1742 : {
1743 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
1744 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1745 : }
1746 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg_Delete", OTHER);
1747 :
1748 0 : PickleIterator iter__(msg__);
1749 : uint64_t objId;
1750 0 : JSIDVariant id;
1751 :
1752 0 : if ((!(Read((&(objId)), (&(msg__)), (&(iter__)))))) {
1753 0 : FatalError("Error deserializing 'uint64_t'");
1754 0 : return MsgValueError;
1755 : }
1756 : // Sentinel = 'objId'
1757 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 89635797)))) {
1758 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
1759 0 : return MsgValueError;
1760 : }
1761 0 : if ((!(Read((&(id)), (&(msg__)), (&(iter__)))))) {
1762 0 : FatalError("Error deserializing 'JSIDVariant'");
1763 0 : return MsgValueError;
1764 : }
1765 : // Sentinel = 'id'
1766 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2794505629)))) {
1767 0 : mozilla::ipc::SentinelReadError("Error deserializing 'JSIDVariant'");
1768 0 : return MsgValueError;
1769 : }
1770 0 : (msg__).EndRead(iter__, (msg__).type());
1771 0 : PJavaScript::Transition(PJavaScript::Msg_Delete__ID, (&(mState)));
1772 0 : int32_t id__ = Id();
1773 0 : ReturnStatus rs;
1774 0 : if ((!(RecvDelete(mozilla::Move(objId), mozilla::Move(id), (&(rs)))))) {
1775 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1776 : // Error handled in mozilla::ipc::IPCResult
1777 0 : return MsgProcessingError;
1778 : }
1779 :
1780 0 : reply__ = PJavaScript::Reply_Delete(id__);
1781 :
1782 0 : Write(rs, reply__);
1783 : // Sentinel = 'rs'
1784 0 : (reply__)->WriteSentinel(702481063);
1785 0 : (reply__)->set_sync();
1786 0 : (reply__)->set_reply();
1787 :
1788 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
1789 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
1790 : }
1791 0 : return MsgProcessed;
1792 : }
1793 : case PJavaScript::Msg_Has__ID:
1794 : {
1795 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
1796 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1797 : }
1798 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg_Has", OTHER);
1799 :
1800 0 : PickleIterator iter__(msg__);
1801 : uint64_t objId;
1802 0 : JSIDVariant id;
1803 :
1804 0 : if ((!(Read((&(objId)), (&(msg__)), (&(iter__)))))) {
1805 0 : FatalError("Error deserializing 'uint64_t'");
1806 0 : return MsgValueError;
1807 : }
1808 : // Sentinel = 'objId'
1809 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 89635797)))) {
1810 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
1811 0 : return MsgValueError;
1812 : }
1813 0 : if ((!(Read((&(id)), (&(msg__)), (&(iter__)))))) {
1814 0 : FatalError("Error deserializing 'JSIDVariant'");
1815 0 : return MsgValueError;
1816 : }
1817 : // Sentinel = 'id'
1818 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2794505629)))) {
1819 0 : mozilla::ipc::SentinelReadError("Error deserializing 'JSIDVariant'");
1820 0 : return MsgValueError;
1821 : }
1822 0 : (msg__).EndRead(iter__, (msg__).type());
1823 0 : PJavaScript::Transition(PJavaScript::Msg_Has__ID, (&(mState)));
1824 0 : int32_t id__ = Id();
1825 0 : ReturnStatus rs;
1826 : bool has;
1827 0 : if ((!(RecvHas(mozilla::Move(objId), mozilla::Move(id), (&(rs)), (&(has)))))) {
1828 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1829 : // Error handled in mozilla::ipc::IPCResult
1830 0 : return MsgProcessingError;
1831 : }
1832 :
1833 0 : reply__ = PJavaScript::Reply_Has(id__);
1834 :
1835 0 : Write(rs, reply__);
1836 : // Sentinel = 'rs'
1837 0 : (reply__)->WriteSentinel(702481063);
1838 0 : Write(has, reply__);
1839 : // Sentinel = 'has'
1840 0 : (reply__)->WriteSentinel(1255409211);
1841 0 : (reply__)->set_sync();
1842 0 : (reply__)->set_reply();
1843 :
1844 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
1845 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
1846 : }
1847 0 : return MsgProcessed;
1848 : }
1849 : case PJavaScript::Msg_HasOwn__ID:
1850 : {
1851 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
1852 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1853 : }
1854 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg_HasOwn", OTHER);
1855 :
1856 0 : PickleIterator iter__(msg__);
1857 : uint64_t objId;
1858 0 : JSIDVariant id;
1859 :
1860 0 : if ((!(Read((&(objId)), (&(msg__)), (&(iter__)))))) {
1861 0 : FatalError("Error deserializing 'uint64_t'");
1862 0 : return MsgValueError;
1863 : }
1864 : // Sentinel = 'objId'
1865 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 89635797)))) {
1866 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
1867 0 : return MsgValueError;
1868 : }
1869 0 : if ((!(Read((&(id)), (&(msg__)), (&(iter__)))))) {
1870 0 : FatalError("Error deserializing 'JSIDVariant'");
1871 0 : return MsgValueError;
1872 : }
1873 : // Sentinel = 'id'
1874 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2794505629)))) {
1875 0 : mozilla::ipc::SentinelReadError("Error deserializing 'JSIDVariant'");
1876 0 : return MsgValueError;
1877 : }
1878 0 : (msg__).EndRead(iter__, (msg__).type());
1879 0 : PJavaScript::Transition(PJavaScript::Msg_HasOwn__ID, (&(mState)));
1880 0 : int32_t id__ = Id();
1881 0 : ReturnStatus rs;
1882 : bool has;
1883 0 : if ((!(RecvHasOwn(mozilla::Move(objId), mozilla::Move(id), (&(rs)), (&(has)))))) {
1884 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1885 : // Error handled in mozilla::ipc::IPCResult
1886 0 : return MsgProcessingError;
1887 : }
1888 :
1889 0 : reply__ = PJavaScript::Reply_HasOwn(id__);
1890 :
1891 0 : Write(rs, reply__);
1892 : // Sentinel = 'rs'
1893 0 : (reply__)->WriteSentinel(702481063);
1894 0 : Write(has, reply__);
1895 : // Sentinel = 'has'
1896 0 : (reply__)->WriteSentinel(1255409211);
1897 0 : (reply__)->set_sync();
1898 0 : (reply__)->set_reply();
1899 :
1900 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
1901 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
1902 : }
1903 0 : return MsgProcessed;
1904 : }
1905 : case PJavaScript::Msg_Get__ID:
1906 : {
1907 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
1908 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1909 : }
1910 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg_Get", OTHER);
1911 :
1912 0 : PickleIterator iter__(msg__);
1913 : uint64_t objId;
1914 0 : JSVariant receiver;
1915 0 : JSIDVariant id;
1916 :
1917 0 : if ((!(Read((&(objId)), (&(msg__)), (&(iter__)))))) {
1918 0 : FatalError("Error deserializing 'uint64_t'");
1919 0 : return MsgValueError;
1920 : }
1921 : // Sentinel = 'objId'
1922 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 89635797)))) {
1923 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
1924 0 : return MsgValueError;
1925 : }
1926 0 : if ((!(Read((&(receiver)), (&(msg__)), (&(iter__)))))) {
1927 0 : FatalError("Error deserializing 'JSVariant'");
1928 0 : return MsgValueError;
1929 : }
1930 : // Sentinel = 'receiver'
1931 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2352325879)))) {
1932 0 : mozilla::ipc::SentinelReadError("Error deserializing 'JSVariant'");
1933 0 : return MsgValueError;
1934 : }
1935 0 : if ((!(Read((&(id)), (&(msg__)), (&(iter__)))))) {
1936 0 : FatalError("Error deserializing 'JSIDVariant'");
1937 0 : return MsgValueError;
1938 : }
1939 : // Sentinel = 'id'
1940 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2794505629)))) {
1941 0 : mozilla::ipc::SentinelReadError("Error deserializing 'JSIDVariant'");
1942 0 : return MsgValueError;
1943 : }
1944 0 : (msg__).EndRead(iter__, (msg__).type());
1945 0 : PJavaScript::Transition(PJavaScript::Msg_Get__ID, (&(mState)));
1946 0 : int32_t id__ = Id();
1947 0 : ReturnStatus rs;
1948 0 : JSVariant result;
1949 0 : if ((!(RecvGet(mozilla::Move(objId), mozilla::Move(receiver), mozilla::Move(id), (&(rs)), (&(result)))))) {
1950 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
1951 : // Error handled in mozilla::ipc::IPCResult
1952 0 : return MsgProcessingError;
1953 : }
1954 :
1955 0 : reply__ = PJavaScript::Reply_Get(id__);
1956 :
1957 0 : Write(rs, reply__);
1958 : // Sentinel = 'rs'
1959 0 : (reply__)->WriteSentinel(702481063);
1960 0 : Write(result, reply__);
1961 : // Sentinel = 'result'
1962 0 : (reply__)->WriteSentinel(3991766165);
1963 0 : (reply__)->set_sync();
1964 0 : (reply__)->set_reply();
1965 :
1966 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
1967 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
1968 : }
1969 0 : return MsgProcessed;
1970 : }
1971 : case PJavaScript::Msg_Set__ID:
1972 : {
1973 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
1974 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
1975 : }
1976 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg_Set", OTHER);
1977 :
1978 0 : PickleIterator iter__(msg__);
1979 : uint64_t objId;
1980 0 : JSIDVariant id;
1981 0 : JSVariant value;
1982 0 : JSVariant receiver;
1983 :
1984 0 : if ((!(Read((&(objId)), (&(msg__)), (&(iter__)))))) {
1985 0 : FatalError("Error deserializing 'uint64_t'");
1986 0 : return MsgValueError;
1987 : }
1988 : // Sentinel = 'objId'
1989 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 89635797)))) {
1990 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
1991 0 : return MsgValueError;
1992 : }
1993 0 : if ((!(Read((&(id)), (&(msg__)), (&(iter__)))))) {
1994 0 : FatalError("Error deserializing 'JSIDVariant'");
1995 0 : return MsgValueError;
1996 : }
1997 : // Sentinel = 'id'
1998 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2794505629)))) {
1999 0 : mozilla::ipc::SentinelReadError("Error deserializing 'JSIDVariant'");
2000 0 : return MsgValueError;
2001 : }
2002 0 : if ((!(Read((&(value)), (&(msg__)), (&(iter__)))))) {
2003 0 : FatalError("Error deserializing 'JSVariant'");
2004 0 : return MsgValueError;
2005 : }
2006 : // Sentinel = 'value'
2007 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 3456818542)))) {
2008 0 : mozilla::ipc::SentinelReadError("Error deserializing 'JSVariant'");
2009 0 : return MsgValueError;
2010 : }
2011 0 : if ((!(Read((&(receiver)), (&(msg__)), (&(iter__)))))) {
2012 0 : FatalError("Error deserializing 'JSVariant'");
2013 0 : return MsgValueError;
2014 : }
2015 : // Sentinel = 'receiver'
2016 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2352325879)))) {
2017 0 : mozilla::ipc::SentinelReadError("Error deserializing 'JSVariant'");
2018 0 : return MsgValueError;
2019 : }
2020 0 : (msg__).EndRead(iter__, (msg__).type());
2021 0 : PJavaScript::Transition(PJavaScript::Msg_Set__ID, (&(mState)));
2022 0 : int32_t id__ = Id();
2023 0 : ReturnStatus rs;
2024 0 : if ((!(RecvSet(mozilla::Move(objId), mozilla::Move(id), mozilla::Move(value), mozilla::Move(receiver), (&(rs)))))) {
2025 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2026 : // Error handled in mozilla::ipc::IPCResult
2027 0 : return MsgProcessingError;
2028 : }
2029 :
2030 0 : reply__ = PJavaScript::Reply_Set(id__);
2031 :
2032 0 : Write(rs, reply__);
2033 : // Sentinel = 'rs'
2034 0 : (reply__)->WriteSentinel(702481063);
2035 0 : (reply__)->set_sync();
2036 0 : (reply__)->set_reply();
2037 :
2038 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
2039 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
2040 : }
2041 0 : return MsgProcessed;
2042 : }
2043 : case PJavaScript::Msg_IsExtensible__ID:
2044 : {
2045 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
2046 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2047 : }
2048 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg_IsExtensible", OTHER);
2049 :
2050 0 : PickleIterator iter__(msg__);
2051 : uint64_t objId;
2052 :
2053 0 : if ((!(Read((&(objId)), (&(msg__)), (&(iter__)))))) {
2054 0 : FatalError("Error deserializing 'uint64_t'");
2055 0 : return MsgValueError;
2056 : }
2057 : // Sentinel = 'objId'
2058 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 89635797)))) {
2059 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
2060 0 : return MsgValueError;
2061 : }
2062 0 : (msg__).EndRead(iter__, (msg__).type());
2063 0 : PJavaScript::Transition(PJavaScript::Msg_IsExtensible__ID, (&(mState)));
2064 0 : int32_t id__ = Id();
2065 0 : ReturnStatus rs;
2066 : bool result;
2067 0 : if ((!(RecvIsExtensible(mozilla::Move(objId), (&(rs)), (&(result)))))) {
2068 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2069 : // Error handled in mozilla::ipc::IPCResult
2070 0 : return MsgProcessingError;
2071 : }
2072 :
2073 0 : reply__ = PJavaScript::Reply_IsExtensible(id__);
2074 :
2075 0 : Write(rs, reply__);
2076 : // Sentinel = 'rs'
2077 0 : (reply__)->WriteSentinel(702481063);
2078 0 : Write(result, reply__);
2079 : // Sentinel = 'result'
2080 0 : (reply__)->WriteSentinel(3991766165);
2081 0 : (reply__)->set_sync();
2082 0 : (reply__)->set_reply();
2083 :
2084 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
2085 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
2086 : }
2087 0 : return MsgProcessed;
2088 : }
2089 : case PJavaScript::Msg_CallOrConstruct__ID:
2090 : {
2091 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
2092 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2093 : }
2094 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg_CallOrConstruct", OTHER);
2095 :
2096 0 : PickleIterator iter__(msg__);
2097 : uint64_t objId;
2098 0 : nsTArray<JSParam> argv;
2099 : bool construct;
2100 :
2101 0 : if ((!(Read((&(objId)), (&(msg__)), (&(iter__)))))) {
2102 0 : FatalError("Error deserializing 'uint64_t'");
2103 0 : return MsgValueError;
2104 : }
2105 : // Sentinel = 'objId'
2106 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 89635797)))) {
2107 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
2108 0 : return MsgValueError;
2109 : }
2110 0 : if ((!(Read((&(argv)), (&(msg__)), (&(iter__)))))) {
2111 0 : FatalError("Error deserializing 'nsTArray'");
2112 0 : return MsgValueError;
2113 : }
2114 : // Sentinel = 'argv'
2115 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2823760590)))) {
2116 0 : mozilla::ipc::SentinelReadError("Error deserializing 'nsTArray'");
2117 0 : return MsgValueError;
2118 : }
2119 0 : if ((!(Read((&(construct)), (&(msg__)), (&(iter__)))))) {
2120 0 : FatalError("Error deserializing 'bool'");
2121 0 : return MsgValueError;
2122 : }
2123 : // Sentinel = 'construct'
2124 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1907020590)))) {
2125 0 : mozilla::ipc::SentinelReadError("Error deserializing 'bool'");
2126 0 : return MsgValueError;
2127 : }
2128 0 : (msg__).EndRead(iter__, (msg__).type());
2129 0 : PJavaScript::Transition(PJavaScript::Msg_CallOrConstruct__ID, (&(mState)));
2130 0 : int32_t id__ = Id();
2131 0 : ReturnStatus rs;
2132 0 : JSVariant result;
2133 0 : nsTArray<JSParam> outparams;
2134 0 : if ((!(RecvCallOrConstruct(mozilla::Move(objId), mozilla::Move(argv), mozilla::Move(construct), (&(rs)), (&(result)), (&(outparams)))))) {
2135 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2136 : // Error handled in mozilla::ipc::IPCResult
2137 0 : return MsgProcessingError;
2138 : }
2139 :
2140 0 : reply__ = PJavaScript::Reply_CallOrConstruct(id__);
2141 :
2142 0 : Write(rs, reply__);
2143 : // Sentinel = 'rs'
2144 0 : (reply__)->WriteSentinel(702481063);
2145 0 : Write(result, reply__);
2146 : // Sentinel = 'result'
2147 0 : (reply__)->WriteSentinel(3991766165);
2148 0 : Write(outparams, reply__);
2149 : // Sentinel = 'outparams'
2150 0 : (reply__)->WriteSentinel(1380950303);
2151 0 : (reply__)->set_sync();
2152 0 : (reply__)->set_reply();
2153 :
2154 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
2155 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
2156 : }
2157 0 : return MsgProcessed;
2158 : }
2159 : case PJavaScript::Msg_HasInstance__ID:
2160 : {
2161 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
2162 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2163 : }
2164 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg_HasInstance", OTHER);
2165 :
2166 0 : PickleIterator iter__(msg__);
2167 : uint64_t objId;
2168 0 : JSVariant v;
2169 :
2170 0 : if ((!(Read((&(objId)), (&(msg__)), (&(iter__)))))) {
2171 0 : FatalError("Error deserializing 'uint64_t'");
2172 0 : return MsgValueError;
2173 : }
2174 : // Sentinel = 'objId'
2175 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 89635797)))) {
2176 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
2177 0 : return MsgValueError;
2178 : }
2179 0 : if ((!(Read((&(v)), (&(msg__)), (&(iter__)))))) {
2180 0 : FatalError("Error deserializing 'JSVariant'");
2181 0 : return MsgValueError;
2182 : }
2183 : // Sentinel = 'v'
2184 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2219143543)))) {
2185 0 : mozilla::ipc::SentinelReadError("Error deserializing 'JSVariant'");
2186 0 : return MsgValueError;
2187 : }
2188 0 : (msg__).EndRead(iter__, (msg__).type());
2189 0 : PJavaScript::Transition(PJavaScript::Msg_HasInstance__ID, (&(mState)));
2190 0 : int32_t id__ = Id();
2191 0 : ReturnStatus rs;
2192 : bool has;
2193 0 : if ((!(RecvHasInstance(mozilla::Move(objId), mozilla::Move(v), (&(rs)), (&(has)))))) {
2194 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2195 : // Error handled in mozilla::ipc::IPCResult
2196 0 : return MsgProcessingError;
2197 : }
2198 :
2199 0 : reply__ = PJavaScript::Reply_HasInstance(id__);
2200 :
2201 0 : Write(rs, reply__);
2202 : // Sentinel = 'rs'
2203 0 : (reply__)->WriteSentinel(702481063);
2204 0 : Write(has, reply__);
2205 : // Sentinel = 'has'
2206 0 : (reply__)->WriteSentinel(1255409211);
2207 0 : (reply__)->set_sync();
2208 0 : (reply__)->set_reply();
2209 :
2210 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
2211 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
2212 : }
2213 0 : return MsgProcessed;
2214 : }
2215 : case PJavaScript::Msg_GetBuiltinClass__ID:
2216 : {
2217 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
2218 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2219 : }
2220 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg_GetBuiltinClass", OTHER);
2221 :
2222 0 : PickleIterator iter__(msg__);
2223 : uint64_t objId;
2224 :
2225 0 : if ((!(Read((&(objId)), (&(msg__)), (&(iter__)))))) {
2226 0 : FatalError("Error deserializing 'uint64_t'");
2227 0 : return MsgValueError;
2228 : }
2229 : // Sentinel = 'objId'
2230 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 89635797)))) {
2231 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
2232 0 : return MsgValueError;
2233 : }
2234 0 : (msg__).EndRead(iter__, (msg__).type());
2235 0 : PJavaScript::Transition(PJavaScript::Msg_GetBuiltinClass__ID, (&(mState)));
2236 0 : int32_t id__ = Id();
2237 0 : ReturnStatus rs;
2238 : uint32_t classValue;
2239 0 : if ((!(RecvGetBuiltinClass(mozilla::Move(objId), (&(rs)), (&(classValue)))))) {
2240 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2241 : // Error handled in mozilla::ipc::IPCResult
2242 0 : return MsgProcessingError;
2243 : }
2244 :
2245 0 : reply__ = PJavaScript::Reply_GetBuiltinClass(id__);
2246 :
2247 0 : Write(rs, reply__);
2248 : // Sentinel = 'rs'
2249 0 : (reply__)->WriteSentinel(702481063);
2250 0 : Write(classValue, reply__);
2251 : // Sentinel = 'classValue'
2252 0 : (reply__)->WriteSentinel(2941051785);
2253 0 : (reply__)->set_sync();
2254 0 : (reply__)->set_reply();
2255 :
2256 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
2257 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
2258 : }
2259 0 : return MsgProcessed;
2260 : }
2261 : case PJavaScript::Msg_IsArray__ID:
2262 : {
2263 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
2264 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2265 : }
2266 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg_IsArray", OTHER);
2267 :
2268 0 : PickleIterator iter__(msg__);
2269 : uint64_t objId;
2270 :
2271 0 : if ((!(Read((&(objId)), (&(msg__)), (&(iter__)))))) {
2272 0 : FatalError("Error deserializing 'uint64_t'");
2273 0 : return MsgValueError;
2274 : }
2275 : // Sentinel = 'objId'
2276 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 89635797)))) {
2277 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
2278 0 : return MsgValueError;
2279 : }
2280 0 : (msg__).EndRead(iter__, (msg__).type());
2281 0 : PJavaScript::Transition(PJavaScript::Msg_IsArray__ID, (&(mState)));
2282 0 : int32_t id__ = Id();
2283 0 : ReturnStatus rs;
2284 : uint32_t ans;
2285 0 : if ((!(RecvIsArray(mozilla::Move(objId), (&(rs)), (&(ans)))))) {
2286 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2287 : // Error handled in mozilla::ipc::IPCResult
2288 0 : return MsgProcessingError;
2289 : }
2290 :
2291 0 : reply__ = PJavaScript::Reply_IsArray(id__);
2292 :
2293 0 : Write(rs, reply__);
2294 : // Sentinel = 'rs'
2295 0 : (reply__)->WriteSentinel(702481063);
2296 0 : Write(ans, reply__);
2297 : // Sentinel = 'ans'
2298 0 : (reply__)->WriteSentinel(2706041751);
2299 0 : (reply__)->set_sync();
2300 0 : (reply__)->set_reply();
2301 :
2302 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
2303 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
2304 : }
2305 0 : return MsgProcessed;
2306 : }
2307 : case PJavaScript::Msg_ClassName__ID:
2308 : {
2309 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
2310 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2311 : }
2312 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg_ClassName", OTHER);
2313 :
2314 0 : PickleIterator iter__(msg__);
2315 : uint64_t objId;
2316 :
2317 0 : if ((!(Read((&(objId)), (&(msg__)), (&(iter__)))))) {
2318 0 : FatalError("Error deserializing 'uint64_t'");
2319 0 : return MsgValueError;
2320 : }
2321 : // Sentinel = 'objId'
2322 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 89635797)))) {
2323 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
2324 0 : return MsgValueError;
2325 : }
2326 0 : (msg__).EndRead(iter__, (msg__).type());
2327 0 : PJavaScript::Transition(PJavaScript::Msg_ClassName__ID, (&(mState)));
2328 0 : int32_t id__ = Id();
2329 0 : nsCString name;
2330 0 : if ((!(RecvClassName(mozilla::Move(objId), (&(name)))))) {
2331 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2332 : // Error handled in mozilla::ipc::IPCResult
2333 0 : return MsgProcessingError;
2334 : }
2335 :
2336 0 : reply__ = PJavaScript::Reply_ClassName(id__);
2337 :
2338 0 : Write(name, reply__);
2339 : // Sentinel = 'name'
2340 0 : (reply__)->WriteSentinel(15034981);
2341 0 : (reply__)->set_sync();
2342 0 : (reply__)->set_reply();
2343 :
2344 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
2345 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
2346 : }
2347 0 : return MsgProcessed;
2348 : }
2349 : case PJavaScript::Msg_GetPrototype__ID:
2350 : {
2351 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
2352 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2353 : }
2354 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg_GetPrototype", OTHER);
2355 :
2356 0 : PickleIterator iter__(msg__);
2357 : uint64_t objId;
2358 :
2359 0 : if ((!(Read((&(objId)), (&(msg__)), (&(iter__)))))) {
2360 0 : FatalError("Error deserializing 'uint64_t'");
2361 0 : return MsgValueError;
2362 : }
2363 : // Sentinel = 'objId'
2364 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 89635797)))) {
2365 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
2366 0 : return MsgValueError;
2367 : }
2368 0 : (msg__).EndRead(iter__, (msg__).type());
2369 0 : PJavaScript::Transition(PJavaScript::Msg_GetPrototype__ID, (&(mState)));
2370 0 : int32_t id__ = Id();
2371 0 : ReturnStatus rs;
2372 0 : ObjectOrNullVariant result;
2373 0 : if ((!(RecvGetPrototype(mozilla::Move(objId), (&(rs)), (&(result)))))) {
2374 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2375 : // Error handled in mozilla::ipc::IPCResult
2376 0 : return MsgProcessingError;
2377 : }
2378 :
2379 0 : reply__ = PJavaScript::Reply_GetPrototype(id__);
2380 :
2381 0 : Write(rs, reply__);
2382 : // Sentinel = 'rs'
2383 0 : (reply__)->WriteSentinel(702481063);
2384 0 : Write(result, reply__);
2385 : // Sentinel = 'result'
2386 0 : (reply__)->WriteSentinel(3991766165);
2387 0 : (reply__)->set_sync();
2388 0 : (reply__)->set_reply();
2389 :
2390 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
2391 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
2392 : }
2393 0 : return MsgProcessed;
2394 : }
2395 : case PJavaScript::Msg_GetPrototypeIfOrdinary__ID:
2396 : {
2397 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
2398 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2399 : }
2400 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg_GetPrototypeIfOrdinary", OTHER);
2401 :
2402 0 : PickleIterator iter__(msg__);
2403 : uint64_t objId;
2404 :
2405 0 : if ((!(Read((&(objId)), (&(msg__)), (&(iter__)))))) {
2406 0 : FatalError("Error deserializing 'uint64_t'");
2407 0 : return MsgValueError;
2408 : }
2409 : // Sentinel = 'objId'
2410 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 89635797)))) {
2411 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
2412 0 : return MsgValueError;
2413 : }
2414 0 : (msg__).EndRead(iter__, (msg__).type());
2415 0 : PJavaScript::Transition(PJavaScript::Msg_GetPrototypeIfOrdinary__ID, (&(mState)));
2416 0 : int32_t id__ = Id();
2417 0 : ReturnStatus rs;
2418 : bool isOrdinary;
2419 0 : ObjectOrNullVariant result;
2420 0 : if ((!(RecvGetPrototypeIfOrdinary(mozilla::Move(objId), (&(rs)), (&(isOrdinary)), (&(result)))))) {
2421 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2422 : // Error handled in mozilla::ipc::IPCResult
2423 0 : return MsgProcessingError;
2424 : }
2425 :
2426 0 : reply__ = PJavaScript::Reply_GetPrototypeIfOrdinary(id__);
2427 :
2428 0 : Write(rs, reply__);
2429 : // Sentinel = 'rs'
2430 0 : (reply__)->WriteSentinel(702481063);
2431 0 : Write(isOrdinary, reply__);
2432 : // Sentinel = 'isOrdinary'
2433 0 : (reply__)->WriteSentinel(3108664816);
2434 0 : Write(result, reply__);
2435 : // Sentinel = 'result'
2436 0 : (reply__)->WriteSentinel(3991766165);
2437 0 : (reply__)->set_sync();
2438 0 : (reply__)->set_reply();
2439 :
2440 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
2441 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
2442 : }
2443 0 : return MsgProcessed;
2444 : }
2445 : case PJavaScript::Msg_RegExpToShared__ID:
2446 : {
2447 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
2448 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2449 : }
2450 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg_RegExpToShared", OTHER);
2451 :
2452 0 : PickleIterator iter__(msg__);
2453 : uint64_t objId;
2454 :
2455 0 : if ((!(Read((&(objId)), (&(msg__)), (&(iter__)))))) {
2456 0 : FatalError("Error deserializing 'uint64_t'");
2457 0 : return MsgValueError;
2458 : }
2459 : // Sentinel = 'objId'
2460 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 89635797)))) {
2461 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
2462 0 : return MsgValueError;
2463 : }
2464 0 : (msg__).EndRead(iter__, (msg__).type());
2465 0 : PJavaScript::Transition(PJavaScript::Msg_RegExpToShared__ID, (&(mState)));
2466 0 : int32_t id__ = Id();
2467 0 : ReturnStatus rs;
2468 0 : nsString source;
2469 : uint32_t flags;
2470 0 : if ((!(RecvRegExpToShared(mozilla::Move(objId), (&(rs)), (&(source)), (&(flags)))))) {
2471 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2472 : // Error handled in mozilla::ipc::IPCResult
2473 0 : return MsgProcessingError;
2474 : }
2475 :
2476 0 : reply__ = PJavaScript::Reply_RegExpToShared(id__);
2477 :
2478 0 : Write(rs, reply__);
2479 : // Sentinel = 'rs'
2480 0 : (reply__)->WriteSentinel(702481063);
2481 0 : Write(source, reply__);
2482 : // Sentinel = 'source'
2483 0 : (reply__)->WriteSentinel(774264369);
2484 0 : Write(flags, reply__);
2485 : // Sentinel = 'flags'
2486 0 : (reply__)->WriteSentinel(2550519284);
2487 0 : (reply__)->set_sync();
2488 0 : (reply__)->set_reply();
2489 :
2490 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
2491 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
2492 : }
2493 0 : return MsgProcessed;
2494 : }
2495 : case PJavaScript::Msg_GetPropertyKeys__ID:
2496 : {
2497 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
2498 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2499 : }
2500 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg_GetPropertyKeys", OTHER);
2501 :
2502 0 : PickleIterator iter__(msg__);
2503 : uint64_t objId;
2504 : uint32_t flags;
2505 :
2506 0 : if ((!(Read((&(objId)), (&(msg__)), (&(iter__)))))) {
2507 0 : FatalError("Error deserializing 'uint64_t'");
2508 0 : return MsgValueError;
2509 : }
2510 : // Sentinel = 'objId'
2511 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 89635797)))) {
2512 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
2513 0 : return MsgValueError;
2514 : }
2515 0 : if ((!(Read((&(flags)), (&(msg__)), (&(iter__)))))) {
2516 0 : FatalError("Error deserializing 'uint32_t'");
2517 0 : return MsgValueError;
2518 : }
2519 : // Sentinel = 'flags'
2520 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2550519284)))) {
2521 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint32_t'");
2522 0 : return MsgValueError;
2523 : }
2524 0 : (msg__).EndRead(iter__, (msg__).type());
2525 0 : PJavaScript::Transition(PJavaScript::Msg_GetPropertyKeys__ID, (&(mState)));
2526 0 : int32_t id__ = Id();
2527 0 : ReturnStatus rs;
2528 0 : nsTArray<JSIDVariant> ids;
2529 0 : if ((!(RecvGetPropertyKeys(mozilla::Move(objId), mozilla::Move(flags), (&(rs)), (&(ids)))))) {
2530 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2531 : // Error handled in mozilla::ipc::IPCResult
2532 0 : return MsgProcessingError;
2533 : }
2534 :
2535 0 : reply__ = PJavaScript::Reply_GetPropertyKeys(id__);
2536 :
2537 0 : Write(rs, reply__);
2538 : // Sentinel = 'rs'
2539 0 : (reply__)->WriteSentinel(702481063);
2540 0 : Write(ids, reply__);
2541 : // Sentinel = 'ids'
2542 0 : (reply__)->WriteSentinel(2133309165);
2543 0 : (reply__)->set_sync();
2544 0 : (reply__)->set_reply();
2545 :
2546 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
2547 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
2548 : }
2549 0 : return MsgProcessed;
2550 : }
2551 : case PJavaScript::Msg_InstanceOf__ID:
2552 : {
2553 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
2554 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2555 : }
2556 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg_InstanceOf", OTHER);
2557 :
2558 0 : PickleIterator iter__(msg__);
2559 : uint64_t objId;
2560 0 : JSIID iid;
2561 :
2562 0 : if ((!(Read((&(objId)), (&(msg__)), (&(iter__)))))) {
2563 0 : FatalError("Error deserializing 'uint64_t'");
2564 0 : return MsgValueError;
2565 : }
2566 : // Sentinel = 'objId'
2567 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 89635797)))) {
2568 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
2569 0 : return MsgValueError;
2570 : }
2571 0 : if ((!(Read((&(iid)), (&(msg__)), (&(iter__)))))) {
2572 0 : FatalError("Error deserializing 'JSIID'");
2573 0 : return MsgValueError;
2574 : }
2575 : // Sentinel = 'iid'
2576 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 2120309073)))) {
2577 0 : mozilla::ipc::SentinelReadError("Error deserializing 'JSIID'");
2578 0 : return MsgValueError;
2579 : }
2580 0 : (msg__).EndRead(iter__, (msg__).type());
2581 0 : PJavaScript::Transition(PJavaScript::Msg_InstanceOf__ID, (&(mState)));
2582 0 : int32_t id__ = Id();
2583 0 : ReturnStatus rs;
2584 : bool instanceof;
2585 0 : if ((!(RecvInstanceOf(mozilla::Move(objId), mozilla::Move(iid), (&(rs)), (&(instanceof)))))) {
2586 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2587 : // Error handled in mozilla::ipc::IPCResult
2588 0 : return MsgProcessingError;
2589 : }
2590 :
2591 0 : reply__ = PJavaScript::Reply_InstanceOf(id__);
2592 :
2593 0 : Write(rs, reply__);
2594 : // Sentinel = 'rs'
2595 0 : (reply__)->WriteSentinel(702481063);
2596 0 : Write(instanceof, reply__);
2597 : // Sentinel = 'instanceof'
2598 0 : (reply__)->WriteSentinel(3780461152);
2599 0 : (reply__)->set_sync();
2600 0 : (reply__)->set_reply();
2601 :
2602 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
2603 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
2604 : }
2605 0 : return MsgProcessed;
2606 : }
2607 : case PJavaScript::Msg_DOMInstanceOf__ID:
2608 : {
2609 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
2610 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Received ", ((&(msg__)))->type(), mozilla::ipc::MessageDirection::eReceiving);
2611 : }
2612 0 : AUTO_PROFILER_LABEL("PJavaScript::Msg_DOMInstanceOf", OTHER);
2613 :
2614 0 : PickleIterator iter__(msg__);
2615 : uint64_t objId;
2616 : int prototypeID;
2617 : int depth;
2618 :
2619 0 : if ((!(Read((&(objId)), (&(msg__)), (&(iter__)))))) {
2620 0 : FatalError("Error deserializing 'uint64_t'");
2621 0 : return MsgValueError;
2622 : }
2623 : // Sentinel = 'objId'
2624 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 89635797)))) {
2625 0 : mozilla::ipc::SentinelReadError("Error deserializing 'uint64_t'");
2626 0 : return MsgValueError;
2627 : }
2628 0 : if ((!(Read((&(prototypeID)), (&(msg__)), (&(iter__)))))) {
2629 0 : FatalError("Error deserializing 'int'");
2630 0 : return MsgValueError;
2631 : }
2632 : // Sentinel = 'prototypeID'
2633 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1277533842)))) {
2634 0 : mozilla::ipc::SentinelReadError("Error deserializing 'int'");
2635 0 : return MsgValueError;
2636 : }
2637 0 : if ((!(Read((&(depth)), (&(msg__)), (&(iter__)))))) {
2638 0 : FatalError("Error deserializing 'int'");
2639 0 : return MsgValueError;
2640 : }
2641 : // Sentinel = 'depth'
2642 0 : if ((!(((&(msg__)))->ReadSentinel((&(iter__)), 1427290098)))) {
2643 0 : mozilla::ipc::SentinelReadError("Error deserializing 'int'");
2644 0 : return MsgValueError;
2645 : }
2646 0 : (msg__).EndRead(iter__, (msg__).type());
2647 0 : PJavaScript::Transition(PJavaScript::Msg_DOMInstanceOf__ID, (&(mState)));
2648 0 : int32_t id__ = Id();
2649 0 : ReturnStatus rs;
2650 : bool instanceof;
2651 0 : if ((!(RecvDOMInstanceOf(mozilla::Move(objId), mozilla::Move(prototypeID), mozilla::Move(depth), (&(rs)), (&(instanceof)))))) {
2652 0 : mozilla::ipc::ProtocolErrorBreakpoint("Handler returned error code!");
2653 : // Error handled in mozilla::ipc::IPCResult
2654 0 : return MsgProcessingError;
2655 : }
2656 :
2657 0 : reply__ = PJavaScript::Reply_DOMInstanceOf(id__);
2658 :
2659 0 : Write(rs, reply__);
2660 : // Sentinel = 'rs'
2661 0 : (reply__)->WriteSentinel(702481063);
2662 0 : Write(instanceof, reply__);
2663 : // Sentinel = 'instanceof'
2664 0 : (reply__)->WriteSentinel(3780461152);
2665 0 : (reply__)->set_sync();
2666 0 : (reply__)->set_reply();
2667 :
2668 0 : if (mozilla::ipc::LoggingEnabledFor("PJavaScriptParent")) {
2669 0 : mozilla::ipc::LogMessageForProtocol("PJavaScriptParent", OtherPid(), "Sending reply ", (reply__)->type(), mozilla::ipc::MessageDirection::eSending);
2670 : }
2671 0 : return MsgProcessed;
2672 : }
2673 : default:
2674 : {
2675 0 : return MsgNotKnown;
2676 : }
2677 : }
2678 : }
2679 :
2680 0 : auto PJavaScriptParent::OnCallReceived(
2681 : const Message& msg__,
2682 : Message*& reply__) -> PJavaScriptParent::Result
2683 : {
2684 0 : MOZ_ASSERT_UNREACHABLE("message protocol not supported");
2685 : return MsgNotKnown;
2686 : }
2687 :
2688 0 : auto PJavaScriptParent::GetProtocolTypeId() -> int32_t
2689 : {
2690 0 : return PJavaScriptMsgStart;
2691 : }
2692 :
2693 0 : auto PJavaScriptParent::ProtocolName() const -> const char*
2694 : {
2695 0 : return "PJavaScriptParent";
2696 : }
2697 :
2698 0 : auto PJavaScriptParent::DestroySubtree(ActorDestroyReason why) -> void
2699 : {
2700 : // Unregister from our manager.
2701 0 : Unregister(Id());
2702 :
2703 : // Reject owning pending promises.
2704 0 : (GetIPCChannel())->RejectPendingPromisesForActor(this);
2705 :
2706 : // Finally, destroy "us".
2707 0 : ActorDestroy(why);
2708 0 : }
2709 :
2710 0 : auto PJavaScriptParent::DeallocSubtree() -> void
2711 : {
2712 0 : }
2713 :
2714 0 : auto PJavaScriptParent::Write(
2715 : const PPropertyDescriptor& v__,
2716 : Message* msg__) -> void
2717 : {
2718 0 : Write((v__).obj(), msg__);
2719 : // Sentinel = 'obj'
2720 0 : (msg__)->WriteSentinel(4045743844);
2721 0 : Write((v__).attrs(), msg__);
2722 : // Sentinel = 'attrs'
2723 0 : (msg__)->WriteSentinel(3014987797);
2724 0 : Write((v__).value(), msg__);
2725 : // Sentinel = 'value'
2726 0 : (msg__)->WriteSentinel(3456818542);
2727 0 : Write((v__).getter(), msg__);
2728 : // Sentinel = 'getter'
2729 0 : (msg__)->WriteSentinel(1833087827);
2730 0 : Write((v__).setter(), msg__);
2731 : // Sentinel = 'setter'
2732 0 : (msg__)->WriteSentinel(1658215455);
2733 0 : }
2734 :
2735 0 : auto PJavaScriptParent::Read(
2736 : PPropertyDescriptor* v__,
2737 : const Message* msg__,
2738 : PickleIterator* iter__) -> bool
2739 : {
2740 0 : if ((!(Read((&((v__)->obj())), msg__, iter__)))) {
2741 0 : FatalError("Error deserializing 'obj' (ObjectOrNullVariant) member of 'PPropertyDescriptor'");
2742 0 : return false;
2743 : }
2744 : // Sentinel = 'obj'
2745 0 : if ((!((msg__)->ReadSentinel(iter__, 4045743844)))) {
2746 0 : mozilla::ipc::SentinelReadError("Error deserializing 'obj' (ObjectOrNullVariant) member of 'PPropertyDescriptor'");
2747 0 : return false;
2748 : }
2749 0 : if ((!(Read((&((v__)->attrs())), msg__, iter__)))) {
2750 0 : FatalError("Error deserializing 'attrs' (uint32_t) member of 'PPropertyDescriptor'");
2751 0 : return false;
2752 : }
2753 : // Sentinel = 'attrs'
2754 0 : if ((!((msg__)->ReadSentinel(iter__, 3014987797)))) {
2755 0 : mozilla::ipc::SentinelReadError("Error deserializing 'attrs' (uint32_t) member of 'PPropertyDescriptor'");
2756 0 : return false;
2757 : }
2758 0 : if ((!(Read((&((v__)->value())), msg__, iter__)))) {
2759 0 : FatalError("Error deserializing 'value' (JSVariant) member of 'PPropertyDescriptor'");
2760 0 : return false;
2761 : }
2762 : // Sentinel = 'value'
2763 0 : if ((!((msg__)->ReadSentinel(iter__, 3456818542)))) {
2764 0 : mozilla::ipc::SentinelReadError("Error deserializing 'value' (JSVariant) member of 'PPropertyDescriptor'");
2765 0 : return false;
2766 : }
2767 0 : if ((!(Read((&((v__)->getter())), msg__, iter__)))) {
2768 0 : FatalError("Error deserializing 'getter' (GetterSetter) member of 'PPropertyDescriptor'");
2769 0 : return false;
2770 : }
2771 : // Sentinel = 'getter'
2772 0 : if ((!((msg__)->ReadSentinel(iter__, 1833087827)))) {
2773 0 : mozilla::ipc::SentinelReadError("Error deserializing 'getter' (GetterSetter) member of 'PPropertyDescriptor'");
2774 0 : return false;
2775 : }
2776 0 : if ((!(Read((&((v__)->setter())), msg__, iter__)))) {
2777 0 : FatalError("Error deserializing 'setter' (GetterSetter) member of 'PPropertyDescriptor'");
2778 0 : return false;
2779 : }
2780 : // Sentinel = 'setter'
2781 0 : if ((!((msg__)->ReadSentinel(iter__, 1658215455)))) {
2782 0 : mozilla::ipc::SentinelReadError("Error deserializing 'setter' (GetterSetter) member of 'PPropertyDescriptor'");
2783 0 : return false;
2784 : }
2785 0 : return true;
2786 : }
2787 :
2788 0 : auto PJavaScriptParent::Write(
2789 : const ObjectOrNullVariant& v__,
2790 : Message* msg__) -> void
2791 : {
2792 : typedef ObjectOrNullVariant type__;
2793 0 : Write(int((v__).type()), msg__);
2794 : // Sentinel = 'ObjectOrNullVariant'
2795 0 : (msg__)->WriteSentinel(3684900147);
2796 :
2797 0 : switch ((v__).type()) {
2798 : case type__::TObjectVariant:
2799 : {
2800 0 : Write((v__).get_ObjectVariant(), msg__);
2801 : // Sentinel = 'TObjectVariant'
2802 0 : (msg__)->WriteSentinel(78811130);
2803 0 : return;
2804 : }
2805 : case type__::TNullVariant:
2806 : {
2807 0 : Write((v__).get_NullVariant(), msg__);
2808 : // Sentinel = 'TNullVariant'
2809 0 : (msg__)->WriteSentinel(3606183426);
2810 0 : return;
2811 : }
2812 : default:
2813 : {
2814 0 : FatalError("unknown union type");
2815 0 : return;
2816 : }
2817 : }
2818 : }
2819 :
2820 0 : auto PJavaScriptParent::Read(
2821 : ObjectOrNullVariant* v__,
2822 : const Message* msg__,
2823 : PickleIterator* iter__) -> bool
2824 : {
2825 : typedef ObjectOrNullVariant type__;
2826 : int type;
2827 0 : if ((!(Read((&(type)), msg__, iter__)))) {
2828 0 : mozilla::ipc::UnionTypeReadError("ObjectOrNullVariant");
2829 0 : return false;
2830 : }
2831 : // Sentinel = 'ObjectOrNullVariant'
2832 0 : if ((!((msg__)->ReadSentinel(iter__, 3684900147)))) {
2833 0 : mozilla::ipc::SentinelReadError("ObjectOrNullVariant");
2834 0 : return false;
2835 : }
2836 :
2837 0 : switch (type) {
2838 : case type__::TObjectVariant:
2839 : {
2840 0 : ObjectVariant tmp = ObjectVariant();
2841 0 : (*(v__)) = tmp;
2842 0 : if ((!(Read((&((v__)->get_ObjectVariant())), msg__, iter__)))) {
2843 0 : FatalError("Error deserializing Union type");
2844 0 : return false;
2845 : }
2846 : // Sentinel = 'TObjectVariant'
2847 0 : if ((!((msg__)->ReadSentinel(iter__, 78811130)))) {
2848 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2849 0 : return false;
2850 : }
2851 0 : return true;
2852 : }
2853 : case type__::TNullVariant:
2854 : {
2855 0 : NullVariant tmp = NullVariant();
2856 0 : (*(v__)) = tmp;
2857 0 : if ((!(Read((&((v__)->get_NullVariant())), msg__, iter__)))) {
2858 0 : FatalError("Error deserializing Union type");
2859 0 : return false;
2860 : }
2861 : // Sentinel = 'TNullVariant'
2862 0 : if ((!((msg__)->ReadSentinel(iter__, 3606183426)))) {
2863 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
2864 0 : return false;
2865 : }
2866 0 : return true;
2867 : }
2868 : default:
2869 : {
2870 0 : FatalError("unknown union type");
2871 0 : return false;
2872 : }
2873 : }
2874 : }
2875 :
2876 0 : auto PJavaScriptParent::Write(
2877 : const nsTArray<JSParam>& v__,
2878 : Message* msg__) -> void
2879 : {
2880 0 : uint32_t length = (v__).Length();
2881 0 : Write(length, msg__);
2882 : // Sentinel = ('length', 'JSParam[]')
2883 0 : (msg__)->WriteSentinel(2498907590);
2884 :
2885 0 : for (auto& elem : v__) {
2886 0 : Write(elem, msg__);
2887 : // Sentinel = 'JSParam[]'
2888 0 : (msg__)->WriteSentinel(926701209);
2889 : }
2890 0 : }
2891 :
2892 0 : auto PJavaScriptParent::Read(
2893 : nsTArray<JSParam>* v__,
2894 : const Message* msg__,
2895 : PickleIterator* iter__) -> bool
2896 : {
2897 0 : nsTArray<JSParam> fa;
2898 : uint32_t length;
2899 0 : if ((!(Read((&(length)), msg__, iter__)))) {
2900 0 : mozilla::ipc::ArrayLengthReadError("JSParam[]");
2901 0 : return false;
2902 : }
2903 : // Sentinel = ('length', 'JSParam[]')
2904 0 : if ((!((msg__)->ReadSentinel(iter__, 2498907590)))) {
2905 0 : mozilla::ipc::SentinelReadError("JSParam[]");
2906 0 : return false;
2907 : }
2908 :
2909 0 : JSParam* elems = (fa).AppendElements(length);
2910 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
2911 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
2912 0 : FatalError("Error deserializing 'JSParam[i]'");
2913 0 : return false;
2914 : }
2915 : // Sentinel = 'JSParam[]'
2916 0 : if ((!((msg__)->ReadSentinel(iter__, 926701209)))) {
2917 0 : mozilla::ipc::SentinelReadError("Error deserializing 'JSParam[i]'");
2918 0 : return false;
2919 : }
2920 : }
2921 0 : (v__)->SwapElements(fa);
2922 0 : return true;
2923 : }
2924 :
2925 0 : auto PJavaScriptParent::Write(
2926 : const ReturnStopIteration& v__,
2927 : Message* msg__) -> void
2928 : {
2929 0 : }
2930 :
2931 0 : auto PJavaScriptParent::Read(
2932 : ReturnStopIteration* v__,
2933 : const Message* msg__,
2934 : PickleIterator* iter__) -> bool
2935 : {
2936 0 : return true;
2937 : }
2938 :
2939 0 : auto PJavaScriptParent::Write(
2940 : const ReturnSuccess& v__,
2941 : Message* msg__) -> void
2942 : {
2943 0 : }
2944 :
2945 0 : auto PJavaScriptParent::Read(
2946 : ReturnSuccess* v__,
2947 : const Message* msg__,
2948 : PickleIterator* iter__) -> bool
2949 : {
2950 0 : return true;
2951 : }
2952 :
2953 0 : auto PJavaScriptParent::Write(
2954 : const JSIDVariant& v__,
2955 : Message* msg__) -> void
2956 : {
2957 : typedef JSIDVariant type__;
2958 0 : Write(int((v__).type()), msg__);
2959 : // Sentinel = 'JSIDVariant'
2960 0 : (msg__)->WriteSentinel(2438943890);
2961 :
2962 0 : switch ((v__).type()) {
2963 : case type__::TSymbolVariant:
2964 : {
2965 0 : Write((v__).get_SymbolVariant(), msg__);
2966 : // Sentinel = 'TSymbolVariant'
2967 0 : (msg__)->WriteSentinel(549729725);
2968 0 : return;
2969 : }
2970 : case type__::TnsString:
2971 : {
2972 0 : Write((v__).get_nsString(), msg__);
2973 : // Sentinel = 'TnsString'
2974 0 : (msg__)->WriteSentinel(2161603959);
2975 0 : return;
2976 : }
2977 : case type__::Tint32_t:
2978 : {
2979 0 : Write((v__).get_int32_t(), msg__);
2980 : // Sentinel = 'Tint32_t'
2981 0 : (msg__)->WriteSentinel(4219052577);
2982 0 : return;
2983 : }
2984 : default:
2985 : {
2986 0 : FatalError("unknown union type");
2987 0 : return;
2988 : }
2989 : }
2990 : }
2991 :
2992 0 : auto PJavaScriptParent::Read(
2993 : JSIDVariant* v__,
2994 : const Message* msg__,
2995 : PickleIterator* iter__) -> bool
2996 : {
2997 : typedef JSIDVariant type__;
2998 : int type;
2999 0 : if ((!(Read((&(type)), msg__, iter__)))) {
3000 0 : mozilla::ipc::UnionTypeReadError("JSIDVariant");
3001 0 : return false;
3002 : }
3003 : // Sentinel = 'JSIDVariant'
3004 0 : if ((!((msg__)->ReadSentinel(iter__, 2438943890)))) {
3005 0 : mozilla::ipc::SentinelReadError("JSIDVariant");
3006 0 : return false;
3007 : }
3008 :
3009 0 : switch (type) {
3010 : case type__::TSymbolVariant:
3011 : {
3012 0 : SymbolVariant tmp = SymbolVariant();
3013 0 : (*(v__)) = tmp;
3014 0 : if ((!(Read((&((v__)->get_SymbolVariant())), msg__, iter__)))) {
3015 0 : FatalError("Error deserializing Union type");
3016 0 : return false;
3017 : }
3018 : // Sentinel = 'TSymbolVariant'
3019 0 : if ((!((msg__)->ReadSentinel(iter__, 549729725)))) {
3020 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3021 0 : return false;
3022 : }
3023 0 : return true;
3024 : }
3025 : case type__::TnsString:
3026 : {
3027 0 : nsString tmp = nsString();
3028 0 : (*(v__)) = tmp;
3029 0 : if ((!(Read((&((v__)->get_nsString())), msg__, iter__)))) {
3030 0 : FatalError("Error deserializing Union type");
3031 0 : return false;
3032 : }
3033 : // Sentinel = 'TnsString'
3034 0 : if ((!((msg__)->ReadSentinel(iter__, 2161603959)))) {
3035 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3036 0 : return false;
3037 : }
3038 0 : return true;
3039 : }
3040 : case type__::Tint32_t:
3041 : {
3042 0 : int32_t tmp = int32_t();
3043 0 : (*(v__)) = tmp;
3044 0 : if ((!(Read((&((v__)->get_int32_t())), msg__, iter__)))) {
3045 0 : FatalError("Error deserializing Union type");
3046 0 : return false;
3047 : }
3048 : // Sentinel = 'Tint32_t'
3049 0 : if ((!((msg__)->ReadSentinel(iter__, 4219052577)))) {
3050 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3051 0 : return false;
3052 : }
3053 0 : return true;
3054 : }
3055 : default:
3056 : {
3057 0 : FatalError("unknown union type");
3058 0 : return false;
3059 : }
3060 : }
3061 : }
3062 :
3063 0 : auto PJavaScriptParent::Write(
3064 : const PJavaScriptParent* v__,
3065 : Message* msg__,
3066 : bool nullable__) -> void
3067 : {
3068 : int32_t id;
3069 0 : if ((!(v__))) {
3070 0 : if ((!(nullable__))) {
3071 0 : FatalError("NULL actor value passed to non-nullable param");
3072 : }
3073 0 : id = 0;
3074 : }
3075 : else {
3076 0 : id = (v__)->Id();
3077 0 : if ((1) == (id)) {
3078 0 : FatalError("actor has been |delete|d");
3079 : }
3080 : }
3081 :
3082 0 : Write(id, msg__);
3083 0 : }
3084 :
3085 0 : auto PJavaScriptParent::Read(
3086 : PJavaScriptParent** v__,
3087 : const Message* msg__,
3088 : PickleIterator* iter__,
3089 : bool nullable__) -> bool
3090 : {
3091 0 : Maybe<mozilla::ipc::IProtocol*> actor = ReadActor(msg__, iter__, nullable__, "PJavaScript", PJavaScriptMsgStart);
3092 0 : if ((actor).isNothing()) {
3093 0 : return false;
3094 : }
3095 :
3096 0 : (*(v__)) = static_cast<PJavaScriptParent*>((actor).value());
3097 0 : return true;
3098 : }
3099 :
3100 0 : auto PJavaScriptParent::Write(
3101 : const JSVariant& v__,
3102 : Message* msg__) -> void
3103 : {
3104 : typedef JSVariant type__;
3105 0 : Write(int((v__).type()), msg__);
3106 : // Sentinel = 'JSVariant'
3107 0 : (msg__)->WriteSentinel(4205756945);
3108 :
3109 0 : switch ((v__).type()) {
3110 : case type__::TUndefinedVariant:
3111 : {
3112 0 : Write((v__).get_UndefinedVariant(), msg__);
3113 : // Sentinel = 'TUndefinedVariant'
3114 0 : (msg__)->WriteSentinel(309349602);
3115 0 : return;
3116 : }
3117 : case type__::TNullVariant:
3118 : {
3119 0 : Write((v__).get_NullVariant(), msg__);
3120 : // Sentinel = 'TNullVariant'
3121 0 : (msg__)->WriteSentinel(3606183426);
3122 0 : return;
3123 : }
3124 : case type__::TObjectVariant:
3125 : {
3126 0 : Write((v__).get_ObjectVariant(), msg__);
3127 : // Sentinel = 'TObjectVariant'
3128 0 : (msg__)->WriteSentinel(78811130);
3129 0 : return;
3130 : }
3131 : case type__::TSymbolVariant:
3132 : {
3133 0 : Write((v__).get_SymbolVariant(), msg__);
3134 : // Sentinel = 'TSymbolVariant'
3135 0 : (msg__)->WriteSentinel(549729725);
3136 0 : return;
3137 : }
3138 : case type__::TnsString:
3139 : {
3140 0 : Write((v__).get_nsString(), msg__);
3141 : // Sentinel = 'TnsString'
3142 0 : (msg__)->WriteSentinel(2161603959);
3143 0 : return;
3144 : }
3145 : case type__::Tdouble:
3146 : {
3147 0 : Write((v__).get_double(), msg__);
3148 : // Sentinel = 'Tdouble'
3149 0 : (msg__)->WriteSentinel(3456933244);
3150 0 : return;
3151 : }
3152 : case type__::Tbool:
3153 : {
3154 0 : Write((v__).get_bool(), msg__);
3155 : // Sentinel = 'Tbool'
3156 0 : (msg__)->WriteSentinel(1958350201);
3157 0 : return;
3158 : }
3159 : case type__::TJSIID:
3160 : {
3161 0 : Write((v__).get_JSIID(), msg__);
3162 : // Sentinel = 'TJSIID'
3163 0 : (msg__)->WriteSentinel(3312553047);
3164 0 : return;
3165 : }
3166 : default:
3167 : {
3168 0 : FatalError("unknown union type");
3169 0 : return;
3170 : }
3171 : }
3172 : }
3173 :
3174 0 : auto PJavaScriptParent::Read(
3175 : JSVariant* v__,
3176 : const Message* msg__,
3177 : PickleIterator* iter__) -> bool
3178 : {
3179 : typedef JSVariant type__;
3180 : int type;
3181 0 : if ((!(Read((&(type)), msg__, iter__)))) {
3182 0 : mozilla::ipc::UnionTypeReadError("JSVariant");
3183 0 : return false;
3184 : }
3185 : // Sentinel = 'JSVariant'
3186 0 : if ((!((msg__)->ReadSentinel(iter__, 4205756945)))) {
3187 0 : mozilla::ipc::SentinelReadError("JSVariant");
3188 0 : return false;
3189 : }
3190 :
3191 0 : switch (type) {
3192 : case type__::TUndefinedVariant:
3193 : {
3194 0 : UndefinedVariant tmp = UndefinedVariant();
3195 0 : (*(v__)) = tmp;
3196 0 : if ((!(Read((&((v__)->get_UndefinedVariant())), msg__, iter__)))) {
3197 0 : FatalError("Error deserializing Union type");
3198 0 : return false;
3199 : }
3200 : // Sentinel = 'TUndefinedVariant'
3201 0 : if ((!((msg__)->ReadSentinel(iter__, 309349602)))) {
3202 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3203 0 : return false;
3204 : }
3205 0 : return true;
3206 : }
3207 : case type__::TNullVariant:
3208 : {
3209 0 : NullVariant tmp = NullVariant();
3210 0 : (*(v__)) = tmp;
3211 0 : if ((!(Read((&((v__)->get_NullVariant())), msg__, iter__)))) {
3212 0 : FatalError("Error deserializing Union type");
3213 0 : return false;
3214 : }
3215 : // Sentinel = 'TNullVariant'
3216 0 : if ((!((msg__)->ReadSentinel(iter__, 3606183426)))) {
3217 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3218 0 : return false;
3219 : }
3220 0 : return true;
3221 : }
3222 : case type__::TObjectVariant:
3223 : {
3224 0 : ObjectVariant tmp = ObjectVariant();
3225 0 : (*(v__)) = tmp;
3226 0 : if ((!(Read((&((v__)->get_ObjectVariant())), msg__, iter__)))) {
3227 0 : FatalError("Error deserializing Union type");
3228 0 : return false;
3229 : }
3230 : // Sentinel = 'TObjectVariant'
3231 0 : if ((!((msg__)->ReadSentinel(iter__, 78811130)))) {
3232 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3233 0 : return false;
3234 : }
3235 0 : return true;
3236 : }
3237 : case type__::TSymbolVariant:
3238 : {
3239 0 : SymbolVariant tmp = SymbolVariant();
3240 0 : (*(v__)) = tmp;
3241 0 : if ((!(Read((&((v__)->get_SymbolVariant())), msg__, iter__)))) {
3242 0 : FatalError("Error deserializing Union type");
3243 0 : return false;
3244 : }
3245 : // Sentinel = 'TSymbolVariant'
3246 0 : if ((!((msg__)->ReadSentinel(iter__, 549729725)))) {
3247 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3248 0 : return false;
3249 : }
3250 0 : return true;
3251 : }
3252 : case type__::TnsString:
3253 : {
3254 0 : nsString tmp = nsString();
3255 0 : (*(v__)) = tmp;
3256 0 : if ((!(Read((&((v__)->get_nsString())), msg__, iter__)))) {
3257 0 : FatalError("Error deserializing Union type");
3258 0 : return false;
3259 : }
3260 : // Sentinel = 'TnsString'
3261 0 : if ((!((msg__)->ReadSentinel(iter__, 2161603959)))) {
3262 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3263 0 : return false;
3264 : }
3265 0 : return true;
3266 : }
3267 : case type__::Tdouble:
3268 : {
3269 0 : double tmp = double();
3270 0 : (*(v__)) = tmp;
3271 0 : if ((!(Read((&((v__)->get_double())), msg__, iter__)))) {
3272 0 : FatalError("Error deserializing Union type");
3273 0 : return false;
3274 : }
3275 : // Sentinel = 'Tdouble'
3276 0 : if ((!((msg__)->ReadSentinel(iter__, 3456933244)))) {
3277 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3278 0 : return false;
3279 : }
3280 0 : return true;
3281 : }
3282 : case type__::Tbool:
3283 : {
3284 0 : bool tmp = bool();
3285 0 : (*(v__)) = tmp;
3286 0 : if ((!(Read((&((v__)->get_bool())), msg__, iter__)))) {
3287 0 : FatalError("Error deserializing Union type");
3288 0 : return false;
3289 : }
3290 : // Sentinel = 'Tbool'
3291 0 : if ((!((msg__)->ReadSentinel(iter__, 1958350201)))) {
3292 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3293 0 : return false;
3294 : }
3295 0 : return true;
3296 : }
3297 : case type__::TJSIID:
3298 : {
3299 0 : JSIID tmp = JSIID();
3300 0 : (*(v__)) = tmp;
3301 0 : if ((!(Read((&((v__)->get_JSIID())), msg__, iter__)))) {
3302 0 : FatalError("Error deserializing Union type");
3303 0 : return false;
3304 : }
3305 : // Sentinel = 'TJSIID'
3306 0 : if ((!((msg__)->ReadSentinel(iter__, 3312553047)))) {
3307 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3308 0 : return false;
3309 : }
3310 0 : return true;
3311 : }
3312 : default:
3313 : {
3314 0 : FatalError("unknown union type");
3315 0 : return false;
3316 : }
3317 : }
3318 : }
3319 :
3320 0 : auto PJavaScriptParent::Write(
3321 : const ReturnStatus& v__,
3322 : Message* msg__) -> void
3323 : {
3324 : typedef ReturnStatus type__;
3325 0 : Write(int((v__).type()), msg__);
3326 : // Sentinel = 'ReturnStatus'
3327 0 : (msg__)->WriteSentinel(4037656036);
3328 :
3329 0 : switch ((v__).type()) {
3330 : case type__::TReturnSuccess:
3331 : {
3332 0 : Write((v__).get_ReturnSuccess(), msg__);
3333 : // Sentinel = 'TReturnSuccess'
3334 0 : (msg__)->WriteSentinel(3801605049);
3335 0 : return;
3336 : }
3337 : case type__::TReturnStopIteration:
3338 : {
3339 0 : Write((v__).get_ReturnStopIteration(), msg__);
3340 : // Sentinel = 'TReturnStopIteration'
3341 0 : (msg__)->WriteSentinel(2114083607);
3342 0 : return;
3343 : }
3344 : case type__::TReturnDeadCPOW:
3345 : {
3346 0 : Write((v__).get_ReturnDeadCPOW(), msg__);
3347 : // Sentinel = 'TReturnDeadCPOW'
3348 0 : (msg__)->WriteSentinel(3868213212);
3349 0 : return;
3350 : }
3351 : case type__::TReturnException:
3352 : {
3353 0 : Write((v__).get_ReturnException(), msg__);
3354 : // Sentinel = 'TReturnException'
3355 0 : (msg__)->WriteSentinel(972596505);
3356 0 : return;
3357 : }
3358 : case type__::TReturnObjectOpResult:
3359 : {
3360 0 : Write((v__).get_ReturnObjectOpResult(), msg__);
3361 : // Sentinel = 'TReturnObjectOpResult'
3362 0 : (msg__)->WriteSentinel(2860338480);
3363 0 : return;
3364 : }
3365 : default:
3366 : {
3367 0 : FatalError("unknown union type");
3368 0 : return;
3369 : }
3370 : }
3371 : }
3372 :
3373 0 : auto PJavaScriptParent::Read(
3374 : ReturnStatus* v__,
3375 : const Message* msg__,
3376 : PickleIterator* iter__) -> bool
3377 : {
3378 : typedef ReturnStatus type__;
3379 : int type;
3380 0 : if ((!(Read((&(type)), msg__, iter__)))) {
3381 0 : mozilla::ipc::UnionTypeReadError("ReturnStatus");
3382 0 : return false;
3383 : }
3384 : // Sentinel = 'ReturnStatus'
3385 0 : if ((!((msg__)->ReadSentinel(iter__, 4037656036)))) {
3386 0 : mozilla::ipc::SentinelReadError("ReturnStatus");
3387 0 : return false;
3388 : }
3389 :
3390 0 : switch (type) {
3391 : case type__::TReturnSuccess:
3392 : {
3393 0 : ReturnSuccess tmp = ReturnSuccess();
3394 0 : (*(v__)) = tmp;
3395 0 : if ((!(Read((&((v__)->get_ReturnSuccess())), msg__, iter__)))) {
3396 0 : FatalError("Error deserializing Union type");
3397 0 : return false;
3398 : }
3399 : // Sentinel = 'TReturnSuccess'
3400 0 : if ((!((msg__)->ReadSentinel(iter__, 3801605049)))) {
3401 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3402 0 : return false;
3403 : }
3404 0 : return true;
3405 : }
3406 : case type__::TReturnStopIteration:
3407 : {
3408 0 : ReturnStopIteration tmp = ReturnStopIteration();
3409 0 : (*(v__)) = tmp;
3410 0 : if ((!(Read((&((v__)->get_ReturnStopIteration())), msg__, iter__)))) {
3411 0 : FatalError("Error deserializing Union type");
3412 0 : return false;
3413 : }
3414 : // Sentinel = 'TReturnStopIteration'
3415 0 : if ((!((msg__)->ReadSentinel(iter__, 2114083607)))) {
3416 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3417 0 : return false;
3418 : }
3419 0 : return true;
3420 : }
3421 : case type__::TReturnDeadCPOW:
3422 : {
3423 0 : ReturnDeadCPOW tmp = ReturnDeadCPOW();
3424 0 : (*(v__)) = tmp;
3425 0 : if ((!(Read((&((v__)->get_ReturnDeadCPOW())), msg__, iter__)))) {
3426 0 : FatalError("Error deserializing Union type");
3427 0 : return false;
3428 : }
3429 : // Sentinel = 'TReturnDeadCPOW'
3430 0 : if ((!((msg__)->ReadSentinel(iter__, 3868213212)))) {
3431 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3432 0 : return false;
3433 : }
3434 0 : return true;
3435 : }
3436 : case type__::TReturnException:
3437 : {
3438 0 : ReturnException tmp = ReturnException();
3439 0 : (*(v__)) = tmp;
3440 0 : if ((!(Read((&((v__)->get_ReturnException())), msg__, iter__)))) {
3441 0 : FatalError("Error deserializing Union type");
3442 0 : return false;
3443 : }
3444 : // Sentinel = 'TReturnException'
3445 0 : if ((!((msg__)->ReadSentinel(iter__, 972596505)))) {
3446 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3447 0 : return false;
3448 : }
3449 0 : return true;
3450 : }
3451 : case type__::TReturnObjectOpResult:
3452 : {
3453 0 : ReturnObjectOpResult tmp = ReturnObjectOpResult();
3454 0 : (*(v__)) = tmp;
3455 0 : if ((!(Read((&((v__)->get_ReturnObjectOpResult())), msg__, iter__)))) {
3456 0 : FatalError("Error deserializing Union type");
3457 0 : return false;
3458 : }
3459 : // Sentinel = 'TReturnObjectOpResult'
3460 0 : if ((!((msg__)->ReadSentinel(iter__, 2860338480)))) {
3461 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3462 0 : return false;
3463 : }
3464 0 : return true;
3465 : }
3466 : default:
3467 : {
3468 0 : FatalError("unknown union type");
3469 0 : return false;
3470 : }
3471 : }
3472 : }
3473 :
3474 0 : auto PJavaScriptParent::Write(
3475 : const RegisteredSymbol& v__,
3476 : Message* msg__) -> void
3477 : {
3478 0 : Write((v__).key(), msg__);
3479 : // Sentinel = 'key'
3480 0 : (msg__)->WriteSentinel(35142870);
3481 0 : }
3482 :
3483 0 : auto PJavaScriptParent::Read(
3484 : RegisteredSymbol* v__,
3485 : const Message* msg__,
3486 : PickleIterator* iter__) -> bool
3487 : {
3488 0 : if ((!(Read((&((v__)->key())), msg__, iter__)))) {
3489 0 : FatalError("Error deserializing 'key' (nsString) member of 'RegisteredSymbol'");
3490 0 : return false;
3491 : }
3492 : // Sentinel = 'key'
3493 0 : if ((!((msg__)->ReadSentinel(iter__, 35142870)))) {
3494 0 : mozilla::ipc::SentinelReadError("Error deserializing 'key' (nsString) member of 'RegisteredSymbol'");
3495 0 : return false;
3496 : }
3497 0 : return true;
3498 : }
3499 :
3500 0 : auto PJavaScriptParent::Write(
3501 : const WellKnownSymbol& v__,
3502 : Message* msg__) -> void
3503 : {
3504 0 : Write((v__).which(), msg__);
3505 : // Sentinel = 'which'
3506 0 : (msg__)->WriteSentinel(328170422);
3507 0 : }
3508 :
3509 0 : auto PJavaScriptParent::Read(
3510 : WellKnownSymbol* v__,
3511 : const Message* msg__,
3512 : PickleIterator* iter__) -> bool
3513 : {
3514 0 : if ((!(Read((&((v__)->which())), msg__, iter__)))) {
3515 0 : FatalError("Error deserializing 'which' (uint32_t) member of 'WellKnownSymbol'");
3516 0 : return false;
3517 : }
3518 : // Sentinel = 'which'
3519 0 : if ((!((msg__)->ReadSentinel(iter__, 328170422)))) {
3520 0 : mozilla::ipc::SentinelReadError("Error deserializing 'which' (uint32_t) member of 'WellKnownSymbol'");
3521 0 : return false;
3522 : }
3523 0 : return true;
3524 : }
3525 :
3526 0 : auto PJavaScriptParent::Write(
3527 : const ReturnException& v__,
3528 : Message* msg__) -> void
3529 : {
3530 0 : Write((v__).exn(), msg__);
3531 : // Sentinel = 'exn'
3532 0 : (msg__)->WriteSentinel(2420675560);
3533 0 : }
3534 :
3535 0 : auto PJavaScriptParent::Read(
3536 : ReturnException* v__,
3537 : const Message* msg__,
3538 : PickleIterator* iter__) -> bool
3539 : {
3540 0 : if ((!(Read((&((v__)->exn())), msg__, iter__)))) {
3541 0 : FatalError("Error deserializing 'exn' (JSVariant) member of 'ReturnException'");
3542 0 : return false;
3543 : }
3544 : // Sentinel = 'exn'
3545 0 : if ((!((msg__)->ReadSentinel(iter__, 2420675560)))) {
3546 0 : mozilla::ipc::SentinelReadError("Error deserializing 'exn' (JSVariant) member of 'ReturnException'");
3547 0 : return false;
3548 : }
3549 0 : return true;
3550 : }
3551 :
3552 0 : auto PJavaScriptParent::Write(
3553 : const JSIID& v__,
3554 : Message* msg__) -> void
3555 : {
3556 0 : Write((v__).m0(), msg__);
3557 : // Sentinel = 'm0'
3558 0 : (msg__)->WriteSentinel(2819154229);
3559 0 : Write((v__).m1(), msg__);
3560 : // Sentinel = 'm1'
3561 0 : (msg__)->WriteSentinel(2819154228);
3562 0 : Write((v__).m2(), msg__);
3563 : // Sentinel = 'm2'
3564 0 : (msg__)->WriteSentinel(2819154231);
3565 0 : Write((v__).m3_0(), msg__);
3566 : // Sentinel = 'm3_0'
3567 0 : (msg__)->WriteSentinel(2771419453);
3568 0 : Write((v__).m3_1(), msg__);
3569 : // Sentinel = 'm3_1'
3570 0 : (msg__)->WriteSentinel(2771419452);
3571 0 : Write((v__).m3_2(), msg__);
3572 : // Sentinel = 'm3_2'
3573 0 : (msg__)->WriteSentinel(2771419455);
3574 0 : Write((v__).m3_3(), msg__);
3575 : // Sentinel = 'm3_3'
3576 0 : (msg__)->WriteSentinel(2771419454);
3577 0 : Write((v__).m3_4(), msg__);
3578 : // Sentinel = 'm3_4'
3579 0 : (msg__)->WriteSentinel(2771419449);
3580 0 : Write((v__).m3_5(), msg__);
3581 : // Sentinel = 'm3_5'
3582 0 : (msg__)->WriteSentinel(2771419448);
3583 0 : Write((v__).m3_6(), msg__);
3584 : // Sentinel = 'm3_6'
3585 0 : (msg__)->WriteSentinel(2771419451);
3586 0 : Write((v__).m3_7(), msg__);
3587 : // Sentinel = 'm3_7'
3588 0 : (msg__)->WriteSentinel(2771419450);
3589 0 : }
3590 :
3591 0 : auto PJavaScriptParent::Read(
3592 : JSIID* v__,
3593 : const Message* msg__,
3594 : PickleIterator* iter__) -> bool
3595 : {
3596 0 : if ((!(Read((&((v__)->m0())), msg__, iter__)))) {
3597 0 : FatalError("Error deserializing 'm0' (uint32_t) member of 'JSIID'");
3598 0 : return false;
3599 : }
3600 : // Sentinel = 'm0'
3601 0 : if ((!((msg__)->ReadSentinel(iter__, 2819154229)))) {
3602 0 : mozilla::ipc::SentinelReadError("Error deserializing 'm0' (uint32_t) member of 'JSIID'");
3603 0 : return false;
3604 : }
3605 0 : if ((!(Read((&((v__)->m1())), msg__, iter__)))) {
3606 0 : FatalError("Error deserializing 'm1' (uint16_t) member of 'JSIID'");
3607 0 : return false;
3608 : }
3609 : // Sentinel = 'm1'
3610 0 : if ((!((msg__)->ReadSentinel(iter__, 2819154228)))) {
3611 0 : mozilla::ipc::SentinelReadError("Error deserializing 'm1' (uint16_t) member of 'JSIID'");
3612 0 : return false;
3613 : }
3614 0 : if ((!(Read((&((v__)->m2())), msg__, iter__)))) {
3615 0 : FatalError("Error deserializing 'm2' (uint16_t) member of 'JSIID'");
3616 0 : return false;
3617 : }
3618 : // Sentinel = 'm2'
3619 0 : if ((!((msg__)->ReadSentinel(iter__, 2819154231)))) {
3620 0 : mozilla::ipc::SentinelReadError("Error deserializing 'm2' (uint16_t) member of 'JSIID'");
3621 0 : return false;
3622 : }
3623 0 : if ((!(Read((&((v__)->m3_0())), msg__, iter__)))) {
3624 0 : FatalError("Error deserializing 'm3_0' (uint8_t) member of 'JSIID'");
3625 0 : return false;
3626 : }
3627 : // Sentinel = 'm3_0'
3628 0 : if ((!((msg__)->ReadSentinel(iter__, 2771419453)))) {
3629 0 : mozilla::ipc::SentinelReadError("Error deserializing 'm3_0' (uint8_t) member of 'JSIID'");
3630 0 : return false;
3631 : }
3632 0 : if ((!(Read((&((v__)->m3_1())), msg__, iter__)))) {
3633 0 : FatalError("Error deserializing 'm3_1' (uint8_t) member of 'JSIID'");
3634 0 : return false;
3635 : }
3636 : // Sentinel = 'm3_1'
3637 0 : if ((!((msg__)->ReadSentinel(iter__, 2771419452)))) {
3638 0 : mozilla::ipc::SentinelReadError("Error deserializing 'm3_1' (uint8_t) member of 'JSIID'");
3639 0 : return false;
3640 : }
3641 0 : if ((!(Read((&((v__)->m3_2())), msg__, iter__)))) {
3642 0 : FatalError("Error deserializing 'm3_2' (uint8_t) member of 'JSIID'");
3643 0 : return false;
3644 : }
3645 : // Sentinel = 'm3_2'
3646 0 : if ((!((msg__)->ReadSentinel(iter__, 2771419455)))) {
3647 0 : mozilla::ipc::SentinelReadError("Error deserializing 'm3_2' (uint8_t) member of 'JSIID'");
3648 0 : return false;
3649 : }
3650 0 : if ((!(Read((&((v__)->m3_3())), msg__, iter__)))) {
3651 0 : FatalError("Error deserializing 'm3_3' (uint8_t) member of 'JSIID'");
3652 0 : return false;
3653 : }
3654 : // Sentinel = 'm3_3'
3655 0 : if ((!((msg__)->ReadSentinel(iter__, 2771419454)))) {
3656 0 : mozilla::ipc::SentinelReadError("Error deserializing 'm3_3' (uint8_t) member of 'JSIID'");
3657 0 : return false;
3658 : }
3659 0 : if ((!(Read((&((v__)->m3_4())), msg__, iter__)))) {
3660 0 : FatalError("Error deserializing 'm3_4' (uint8_t) member of 'JSIID'");
3661 0 : return false;
3662 : }
3663 : // Sentinel = 'm3_4'
3664 0 : if ((!((msg__)->ReadSentinel(iter__, 2771419449)))) {
3665 0 : mozilla::ipc::SentinelReadError("Error deserializing 'm3_4' (uint8_t) member of 'JSIID'");
3666 0 : return false;
3667 : }
3668 0 : if ((!(Read((&((v__)->m3_5())), msg__, iter__)))) {
3669 0 : FatalError("Error deserializing 'm3_5' (uint8_t) member of 'JSIID'");
3670 0 : return false;
3671 : }
3672 : // Sentinel = 'm3_5'
3673 0 : if ((!((msg__)->ReadSentinel(iter__, 2771419448)))) {
3674 0 : mozilla::ipc::SentinelReadError("Error deserializing 'm3_5' (uint8_t) member of 'JSIID'");
3675 0 : return false;
3676 : }
3677 0 : if ((!(Read((&((v__)->m3_6())), msg__, iter__)))) {
3678 0 : FatalError("Error deserializing 'm3_6' (uint8_t) member of 'JSIID'");
3679 0 : return false;
3680 : }
3681 : // Sentinel = 'm3_6'
3682 0 : if ((!((msg__)->ReadSentinel(iter__, 2771419451)))) {
3683 0 : mozilla::ipc::SentinelReadError("Error deserializing 'm3_6' (uint8_t) member of 'JSIID'");
3684 0 : return false;
3685 : }
3686 0 : if ((!(Read((&((v__)->m3_7())), msg__, iter__)))) {
3687 0 : FatalError("Error deserializing 'm3_7' (uint8_t) member of 'JSIID'");
3688 0 : return false;
3689 : }
3690 : // Sentinel = 'm3_7'
3691 0 : if ((!((msg__)->ReadSentinel(iter__, 2771419450)))) {
3692 0 : mozilla::ipc::SentinelReadError("Error deserializing 'm3_7' (uint8_t) member of 'JSIID'");
3693 0 : return false;
3694 : }
3695 0 : return true;
3696 : }
3697 :
3698 0 : auto PJavaScriptParent::Write(
3699 : const JSParam& v__,
3700 : Message* msg__) -> void
3701 : {
3702 : typedef JSParam type__;
3703 0 : Write(int((v__).type()), msg__);
3704 : // Sentinel = 'JSParam'
3705 0 : (msg__)->WriteSentinel(3026526459);
3706 :
3707 0 : switch ((v__).type()) {
3708 : case type__::Tvoid_t:
3709 : {
3710 0 : Write((v__).get_void_t(), msg__);
3711 : // Sentinel = 'Tvoid_t'
3712 0 : (msg__)->WriteSentinel(3041273328);
3713 0 : return;
3714 : }
3715 : case type__::TJSVariant:
3716 : {
3717 0 : Write((v__).get_JSVariant(), msg__);
3718 : // Sentinel = 'TJSVariant'
3719 0 : (msg__)->WriteSentinel(1996745510);
3720 0 : return;
3721 : }
3722 : default:
3723 : {
3724 0 : FatalError("unknown union type");
3725 0 : return;
3726 : }
3727 : }
3728 : }
3729 :
3730 0 : auto PJavaScriptParent::Read(
3731 : JSParam* v__,
3732 : const Message* msg__,
3733 : PickleIterator* iter__) -> bool
3734 : {
3735 : typedef JSParam type__;
3736 : int type;
3737 0 : if ((!(Read((&(type)), msg__, iter__)))) {
3738 0 : mozilla::ipc::UnionTypeReadError("JSParam");
3739 0 : return false;
3740 : }
3741 : // Sentinel = 'JSParam'
3742 0 : if ((!((msg__)->ReadSentinel(iter__, 3026526459)))) {
3743 0 : mozilla::ipc::SentinelReadError("JSParam");
3744 0 : return false;
3745 : }
3746 :
3747 0 : switch (type) {
3748 : case type__::Tvoid_t:
3749 : {
3750 : void_t tmp = void_t();
3751 0 : (*(v__)) = tmp;
3752 0 : if ((!(Read((&((v__)->get_void_t())), msg__, iter__)))) {
3753 0 : FatalError("Error deserializing Union type");
3754 0 : return false;
3755 : }
3756 : // Sentinel = 'Tvoid_t'
3757 0 : if ((!((msg__)->ReadSentinel(iter__, 3041273328)))) {
3758 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3759 0 : return false;
3760 : }
3761 0 : return true;
3762 : }
3763 : case type__::TJSVariant:
3764 : {
3765 0 : JSVariant tmp = JSVariant();
3766 0 : (*(v__)) = tmp;
3767 0 : if ((!(Read((&((v__)->get_JSVariant())), msg__, iter__)))) {
3768 0 : FatalError("Error deserializing Union type");
3769 0 : return false;
3770 : }
3771 : // Sentinel = 'TJSVariant'
3772 0 : if ((!((msg__)->ReadSentinel(iter__, 1996745510)))) {
3773 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3774 0 : return false;
3775 : }
3776 0 : return true;
3777 : }
3778 : default:
3779 : {
3780 0 : FatalError("unknown union type");
3781 0 : return false;
3782 : }
3783 : }
3784 : }
3785 :
3786 0 : auto PJavaScriptParent::Write(
3787 : const ObjectVariant& v__,
3788 : Message* msg__) -> void
3789 : {
3790 : typedef ObjectVariant type__;
3791 0 : Write(int((v__).type()), msg__);
3792 : // Sentinel = 'ObjectVariant'
3793 0 : (msg__)->WriteSentinel(3403328885);
3794 :
3795 0 : switch ((v__).type()) {
3796 : case type__::TLocalObject:
3797 : {
3798 0 : Write((v__).get_LocalObject(), msg__);
3799 : // Sentinel = 'TLocalObject'
3800 0 : (msg__)->WriteSentinel(2788453632);
3801 0 : return;
3802 : }
3803 : case type__::TRemoteObject:
3804 : {
3805 0 : Write((v__).get_RemoteObject(), msg__);
3806 : // Sentinel = 'TRemoteObject'
3807 0 : (msg__)->WriteSentinel(807590902);
3808 0 : return;
3809 : }
3810 : default:
3811 : {
3812 0 : FatalError("unknown union type");
3813 0 : return;
3814 : }
3815 : }
3816 : }
3817 :
3818 0 : auto PJavaScriptParent::Read(
3819 : ObjectVariant* v__,
3820 : const Message* msg__,
3821 : PickleIterator* iter__) -> bool
3822 : {
3823 : typedef ObjectVariant type__;
3824 : int type;
3825 0 : if ((!(Read((&(type)), msg__, iter__)))) {
3826 0 : mozilla::ipc::UnionTypeReadError("ObjectVariant");
3827 0 : return false;
3828 : }
3829 : // Sentinel = 'ObjectVariant'
3830 0 : if ((!((msg__)->ReadSentinel(iter__, 3403328885)))) {
3831 0 : mozilla::ipc::SentinelReadError("ObjectVariant");
3832 0 : return false;
3833 : }
3834 :
3835 0 : switch (type) {
3836 : case type__::TLocalObject:
3837 : {
3838 0 : LocalObject tmp = LocalObject();
3839 0 : (*(v__)) = tmp;
3840 0 : if ((!(Read((&((v__)->get_LocalObject())), msg__, iter__)))) {
3841 0 : FatalError("Error deserializing Union type");
3842 0 : return false;
3843 : }
3844 : // Sentinel = 'TLocalObject'
3845 0 : if ((!((msg__)->ReadSentinel(iter__, 2788453632)))) {
3846 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3847 0 : return false;
3848 : }
3849 0 : return true;
3850 : }
3851 : case type__::TRemoteObject:
3852 : {
3853 0 : RemoteObject tmp = RemoteObject();
3854 0 : (*(v__)) = tmp;
3855 0 : if ((!(Read((&((v__)->get_RemoteObject())), msg__, iter__)))) {
3856 0 : FatalError("Error deserializing Union type");
3857 0 : return false;
3858 : }
3859 : // Sentinel = 'TRemoteObject'
3860 0 : if ((!((msg__)->ReadSentinel(iter__, 807590902)))) {
3861 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3862 0 : return false;
3863 : }
3864 0 : return true;
3865 : }
3866 : default:
3867 : {
3868 0 : FatalError("unknown union type");
3869 0 : return false;
3870 : }
3871 : }
3872 : }
3873 :
3874 0 : auto PJavaScriptParent::Write(
3875 : const ReturnObjectOpResult& v__,
3876 : Message* msg__) -> void
3877 : {
3878 0 : Write((v__).code(), msg__);
3879 : // Sentinel = 'code'
3880 0 : (msg__)->WriteSentinel(3318913027);
3881 0 : }
3882 :
3883 0 : auto PJavaScriptParent::Read(
3884 : ReturnObjectOpResult* v__,
3885 : const Message* msg__,
3886 : PickleIterator* iter__) -> bool
3887 : {
3888 0 : if ((!(Read((&((v__)->code())), msg__, iter__)))) {
3889 0 : FatalError("Error deserializing 'code' (uint32_t) member of 'ReturnObjectOpResult'");
3890 0 : return false;
3891 : }
3892 : // Sentinel = 'code'
3893 0 : if ((!((msg__)->ReadSentinel(iter__, 3318913027)))) {
3894 0 : mozilla::ipc::SentinelReadError("Error deserializing 'code' (uint32_t) member of 'ReturnObjectOpResult'");
3895 0 : return false;
3896 : }
3897 0 : return true;
3898 : }
3899 :
3900 0 : auto PJavaScriptParent::Write(
3901 : const GetterSetter& v__,
3902 : Message* msg__) -> void
3903 : {
3904 : typedef GetterSetter type__;
3905 0 : Write(int((v__).type()), msg__);
3906 : // Sentinel = 'GetterSetter'
3907 0 : (msg__)->WriteSentinel(288324348);
3908 :
3909 0 : switch ((v__).type()) {
3910 : case type__::Tuint64_t:
3911 : {
3912 0 : Write((v__).get_uint64_t(), msg__);
3913 : // Sentinel = 'Tuint64_t'
3914 0 : (msg__)->WriteSentinel(1935076742);
3915 0 : return;
3916 : }
3917 : case type__::TObjectVariant:
3918 : {
3919 0 : Write((v__).get_ObjectVariant(), msg__);
3920 : // Sentinel = 'TObjectVariant'
3921 0 : (msg__)->WriteSentinel(78811130);
3922 0 : return;
3923 : }
3924 : default:
3925 : {
3926 0 : FatalError("unknown union type");
3927 0 : return;
3928 : }
3929 : }
3930 : }
3931 :
3932 0 : auto PJavaScriptParent::Read(
3933 : GetterSetter* v__,
3934 : const Message* msg__,
3935 : PickleIterator* iter__) -> bool
3936 : {
3937 : typedef GetterSetter type__;
3938 : int type;
3939 0 : if ((!(Read((&(type)), msg__, iter__)))) {
3940 0 : mozilla::ipc::UnionTypeReadError("GetterSetter");
3941 0 : return false;
3942 : }
3943 : // Sentinel = 'GetterSetter'
3944 0 : if ((!((msg__)->ReadSentinel(iter__, 288324348)))) {
3945 0 : mozilla::ipc::SentinelReadError("GetterSetter");
3946 0 : return false;
3947 : }
3948 :
3949 0 : switch (type) {
3950 : case type__::Tuint64_t:
3951 : {
3952 0 : uint64_t tmp = uint64_t();
3953 0 : (*(v__)) = tmp;
3954 0 : if ((!(Read((&((v__)->get_uint64_t())), msg__, iter__)))) {
3955 0 : FatalError("Error deserializing Union type");
3956 0 : return false;
3957 : }
3958 : // Sentinel = 'Tuint64_t'
3959 0 : if ((!((msg__)->ReadSentinel(iter__, 1935076742)))) {
3960 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3961 0 : return false;
3962 : }
3963 0 : return true;
3964 : }
3965 : case type__::TObjectVariant:
3966 : {
3967 0 : ObjectVariant tmp = ObjectVariant();
3968 0 : (*(v__)) = tmp;
3969 0 : if ((!(Read((&((v__)->get_ObjectVariant())), msg__, iter__)))) {
3970 0 : FatalError("Error deserializing Union type");
3971 0 : return false;
3972 : }
3973 : // Sentinel = 'TObjectVariant'
3974 0 : if ((!((msg__)->ReadSentinel(iter__, 78811130)))) {
3975 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
3976 0 : return false;
3977 : }
3978 0 : return true;
3979 : }
3980 : default:
3981 : {
3982 0 : FatalError("unknown union type");
3983 0 : return false;
3984 : }
3985 : }
3986 : }
3987 :
3988 0 : auto PJavaScriptParent::Write(
3989 : const LocalObject& v__,
3990 : Message* msg__) -> void
3991 : {
3992 0 : Write((v__).serializedId(), msg__);
3993 : // Sentinel = 'serializedId'
3994 0 : (msg__)->WriteSentinel(517551973);
3995 0 : }
3996 :
3997 0 : auto PJavaScriptParent::Read(
3998 : LocalObject* v__,
3999 : const Message* msg__,
4000 : PickleIterator* iter__) -> bool
4001 : {
4002 0 : if ((!(Read((&((v__)->serializedId())), msg__, iter__)))) {
4003 0 : FatalError("Error deserializing 'serializedId' (uint64_t) member of 'LocalObject'");
4004 0 : return false;
4005 : }
4006 : // Sentinel = 'serializedId'
4007 0 : if ((!((msg__)->ReadSentinel(iter__, 517551973)))) {
4008 0 : mozilla::ipc::SentinelReadError("Error deserializing 'serializedId' (uint64_t) member of 'LocalObject'");
4009 0 : return false;
4010 : }
4011 0 : return true;
4012 : }
4013 :
4014 0 : auto PJavaScriptParent::Write(
4015 : const SymbolVariant& v__,
4016 : Message* msg__) -> void
4017 : {
4018 : typedef SymbolVariant type__;
4019 0 : Write(int((v__).type()), msg__);
4020 : // Sentinel = 'SymbolVariant'
4021 0 : (msg__)->WriteSentinel(2359697882);
4022 :
4023 0 : switch ((v__).type()) {
4024 : case type__::TWellKnownSymbol:
4025 : {
4026 0 : Write((v__).get_WellKnownSymbol(), msg__);
4027 : // Sentinel = 'TWellKnownSymbol'
4028 0 : (msg__)->WriteSentinel(3625871441);
4029 0 : return;
4030 : }
4031 : case type__::TRegisteredSymbol:
4032 : {
4033 0 : Write((v__).get_RegisteredSymbol(), msg__);
4034 : // Sentinel = 'TRegisteredSymbol'
4035 0 : (msg__)->WriteSentinel(3546540137);
4036 0 : return;
4037 : }
4038 : default:
4039 : {
4040 0 : FatalError("unknown union type");
4041 0 : return;
4042 : }
4043 : }
4044 : }
4045 :
4046 0 : auto PJavaScriptParent::Read(
4047 : SymbolVariant* v__,
4048 : const Message* msg__,
4049 : PickleIterator* iter__) -> bool
4050 : {
4051 : typedef SymbolVariant type__;
4052 : int type;
4053 0 : if ((!(Read((&(type)), msg__, iter__)))) {
4054 0 : mozilla::ipc::UnionTypeReadError("SymbolVariant");
4055 0 : return false;
4056 : }
4057 : // Sentinel = 'SymbolVariant'
4058 0 : if ((!((msg__)->ReadSentinel(iter__, 2359697882)))) {
4059 0 : mozilla::ipc::SentinelReadError("SymbolVariant");
4060 0 : return false;
4061 : }
4062 :
4063 0 : switch (type) {
4064 : case type__::TWellKnownSymbol:
4065 : {
4066 0 : WellKnownSymbol tmp = WellKnownSymbol();
4067 0 : (*(v__)) = tmp;
4068 0 : if ((!(Read((&((v__)->get_WellKnownSymbol())), msg__, iter__)))) {
4069 0 : FatalError("Error deserializing Union type");
4070 0 : return false;
4071 : }
4072 : // Sentinel = 'TWellKnownSymbol'
4073 0 : if ((!((msg__)->ReadSentinel(iter__, 3625871441)))) {
4074 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
4075 0 : return false;
4076 : }
4077 0 : return true;
4078 : }
4079 : case type__::TRegisteredSymbol:
4080 : {
4081 0 : RegisteredSymbol tmp = RegisteredSymbol();
4082 0 : (*(v__)) = tmp;
4083 0 : if ((!(Read((&((v__)->get_RegisteredSymbol())), msg__, iter__)))) {
4084 0 : FatalError("Error deserializing Union type");
4085 0 : return false;
4086 : }
4087 : // Sentinel = 'TRegisteredSymbol'
4088 0 : if ((!((msg__)->ReadSentinel(iter__, 3546540137)))) {
4089 0 : mozilla::ipc::SentinelReadError("Error deserializing Union type");
4090 0 : return false;
4091 : }
4092 0 : return true;
4093 : }
4094 : default:
4095 : {
4096 0 : FatalError("unknown union type");
4097 0 : return false;
4098 : }
4099 : }
4100 : }
4101 :
4102 0 : auto PJavaScriptParent::Write(
4103 : const UndefinedVariant& v__,
4104 : Message* msg__) -> void
4105 : {
4106 0 : }
4107 :
4108 0 : auto PJavaScriptParent::Read(
4109 : UndefinedVariant* v__,
4110 : const Message* msg__,
4111 : PickleIterator* iter__) -> bool
4112 : {
4113 0 : return true;
4114 : }
4115 :
4116 0 : auto PJavaScriptParent::Write(
4117 : const nsTArray<JSIDVariant>& v__,
4118 : Message* msg__) -> void
4119 : {
4120 0 : uint32_t length = (v__).Length();
4121 0 : Write(length, msg__);
4122 : // Sentinel = ('length', 'JSIDVariant[]')
4123 0 : (msg__)->WriteSentinel(1767238529);
4124 :
4125 0 : for (auto& elem : v__) {
4126 0 : Write(elem, msg__);
4127 : // Sentinel = 'JSIDVariant[]'
4128 0 : (msg__)->WriteSentinel(2483222176);
4129 : }
4130 0 : }
4131 :
4132 0 : auto PJavaScriptParent::Read(
4133 : nsTArray<JSIDVariant>* v__,
4134 : const Message* msg__,
4135 : PickleIterator* iter__) -> bool
4136 : {
4137 0 : nsTArray<JSIDVariant> fa;
4138 : uint32_t length;
4139 0 : if ((!(Read((&(length)), msg__, iter__)))) {
4140 0 : mozilla::ipc::ArrayLengthReadError("JSIDVariant[]");
4141 0 : return false;
4142 : }
4143 : // Sentinel = ('length', 'JSIDVariant[]')
4144 0 : if ((!((msg__)->ReadSentinel(iter__, 1767238529)))) {
4145 0 : mozilla::ipc::SentinelReadError("JSIDVariant[]");
4146 0 : return false;
4147 : }
4148 :
4149 0 : JSIDVariant* elems = (fa).AppendElements(length);
4150 0 : for (uint32_t i = 0; (i) < (length); (++(i))) {
4151 0 : if ((!(Read((&(elems[i])), msg__, iter__)))) {
4152 0 : FatalError("Error deserializing 'JSIDVariant[i]'");
4153 0 : return false;
4154 : }
4155 : // Sentinel = 'JSIDVariant[]'
4156 0 : if ((!((msg__)->ReadSentinel(iter__, 2483222176)))) {
4157 0 : mozilla::ipc::SentinelReadError("Error deserializing 'JSIDVariant[i]'");
4158 0 : return false;
4159 : }
4160 : }
4161 0 : (v__)->SwapElements(fa);
4162 0 : return true;
4163 : }
4164 :
4165 0 : auto PJavaScriptParent::Write(
4166 : const RemoteObject& v__,
4167 : Message* msg__) -> void
4168 : {
4169 0 : Write((v__).serializedId(), msg__);
4170 : // Sentinel = 'serializedId'
4171 0 : (msg__)->WriteSentinel(517551973);
4172 0 : Write((v__).isCallable(), msg__);
4173 : // Sentinel = 'isCallable'
4174 0 : (msg__)->WriteSentinel(581027930);
4175 0 : Write((v__).isConstructor(), msg__);
4176 : // Sentinel = 'isConstructor'
4177 0 : (msg__)->WriteSentinel(2453797865);
4178 0 : Write((v__).isDOMObject(), msg__);
4179 : // Sentinel = 'isDOMObject'
4180 0 : (msg__)->WriteSentinel(4083735162);
4181 0 : Write((v__).objectTag(), msg__);
4182 : // Sentinel = 'objectTag'
4183 0 : (msg__)->WriteSentinel(4009834374);
4184 0 : }
4185 :
4186 0 : auto PJavaScriptParent::Read(
4187 : RemoteObject* v__,
4188 : const Message* msg__,
4189 : PickleIterator* iter__) -> bool
4190 : {
4191 0 : if ((!(Read((&((v__)->serializedId())), msg__, iter__)))) {
4192 0 : FatalError("Error deserializing 'serializedId' (uint64_t) member of 'RemoteObject'");
4193 0 : return false;
4194 : }
4195 : // Sentinel = 'serializedId'
4196 0 : if ((!((msg__)->ReadSentinel(iter__, 517551973)))) {
4197 0 : mozilla::ipc::SentinelReadError("Error deserializing 'serializedId' (uint64_t) member of 'RemoteObject'");
4198 0 : return false;
4199 : }
4200 0 : if ((!(Read((&((v__)->isCallable())), msg__, iter__)))) {
4201 0 : FatalError("Error deserializing 'isCallable' (bool) member of 'RemoteObject'");
4202 0 : return false;
4203 : }
4204 : // Sentinel = 'isCallable'
4205 0 : if ((!((msg__)->ReadSentinel(iter__, 581027930)))) {
4206 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isCallable' (bool) member of 'RemoteObject'");
4207 0 : return false;
4208 : }
4209 0 : if ((!(Read((&((v__)->isConstructor())), msg__, iter__)))) {
4210 0 : FatalError("Error deserializing 'isConstructor' (bool) member of 'RemoteObject'");
4211 0 : return false;
4212 : }
4213 : // Sentinel = 'isConstructor'
4214 0 : if ((!((msg__)->ReadSentinel(iter__, 2453797865)))) {
4215 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isConstructor' (bool) member of 'RemoteObject'");
4216 0 : return false;
4217 : }
4218 0 : if ((!(Read((&((v__)->isDOMObject())), msg__, iter__)))) {
4219 0 : FatalError("Error deserializing 'isDOMObject' (bool) member of 'RemoteObject'");
4220 0 : return false;
4221 : }
4222 : // Sentinel = 'isDOMObject'
4223 0 : if ((!((msg__)->ReadSentinel(iter__, 4083735162)))) {
4224 0 : mozilla::ipc::SentinelReadError("Error deserializing 'isDOMObject' (bool) member of 'RemoteObject'");
4225 0 : return false;
4226 : }
4227 0 : if ((!(Read((&((v__)->objectTag())), msg__, iter__)))) {
4228 0 : FatalError("Error deserializing 'objectTag' (nsCString) member of 'RemoteObject'");
4229 0 : return false;
4230 : }
4231 : // Sentinel = 'objectTag'
4232 0 : if ((!((msg__)->ReadSentinel(iter__, 4009834374)))) {
4233 0 : mozilla::ipc::SentinelReadError("Error deserializing 'objectTag' (nsCString) member of 'RemoteObject'");
4234 0 : return false;
4235 : }
4236 0 : return true;
4237 : }
4238 :
4239 0 : auto PJavaScriptParent::Write(
4240 : const NullVariant& v__,
4241 : Message* msg__) -> void
4242 : {
4243 0 : }
4244 :
4245 0 : auto PJavaScriptParent::Read(
4246 : NullVariant* v__,
4247 : const Message* msg__,
4248 : PickleIterator* iter__) -> bool
4249 : {
4250 0 : return true;
4251 : }
4252 :
4253 0 : auto PJavaScriptParent::Write(
4254 : const ReturnDeadCPOW& v__,
4255 : Message* msg__) -> void
4256 : {
4257 0 : }
4258 :
4259 0 : auto PJavaScriptParent::Read(
4260 : ReturnDeadCPOW* v__,
4261 : const Message* msg__,
4262 : PickleIterator* iter__) -> bool
4263 : {
4264 0 : return true;
4265 : }
4266 :
4267 :
4268 :
4269 : } // namespace jsipc
4270 : } // namespace mozilla
|