Coverage Report

Created: 2018-09-25 14:53

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