Line data Source code
1 : // Generated by the protocol buffer compiler. DO NOT EDIT!
2 : // source: CoreDump.proto
3 :
4 : #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
5 : #include "CoreDump.pb.h"
6 :
7 : #include <algorithm>
8 :
9 : #include <google/protobuf/stubs/common.h>
10 : #include <google/protobuf/stubs/once.h>
11 : #include <google/protobuf/io/coded_stream.h>
12 : #include <google/protobuf/wire_format_lite_inl.h>
13 : #include <google/protobuf/descriptor.h>
14 : #include <google/protobuf/generated_message_reflection.h>
15 : #include <google/protobuf/reflection_ops.h>
16 : #include <google/protobuf/wire_format.h>
17 : // @@protoc_insertion_point(includes)
18 :
19 : namespace mozilla {
20 : namespace devtools {
21 : namespace protobuf {
22 :
23 : namespace {
24 :
25 : const ::google::protobuf::Descriptor* Metadata_descriptor_ = NULL;
26 : const ::google::protobuf::internal::GeneratedMessageReflection*
27 : Metadata_reflection_ = NULL;
28 : const ::google::protobuf::Descriptor* StackFrame_descriptor_ = NULL;
29 : const ::google::protobuf::internal::GeneratedMessageReflection*
30 : StackFrame_reflection_ = NULL;
31 : struct StackFrameOneofInstance {
32 : const ::mozilla::devtools::protobuf::StackFrame_Data* data_;
33 : ::google::protobuf::uint64 ref_;
34 : }* StackFrame_default_oneof_instance_ = NULL;
35 : const ::google::protobuf::Descriptor* StackFrame_Data_descriptor_ = NULL;
36 : const ::google::protobuf::internal::GeneratedMessageReflection*
37 : StackFrame_Data_reflection_ = NULL;
38 : struct StackFrame_DataOneofInstance {
39 : const ::std::string* source_;
40 : ::google::protobuf::uint64 sourceref_;
41 : const ::std::string* functiondisplayname_;
42 : ::google::protobuf::uint64 functiondisplaynameref_;
43 : }* StackFrame_Data_default_oneof_instance_ = NULL;
44 : const ::google::protobuf::Descriptor* Node_descriptor_ = NULL;
45 : const ::google::protobuf::internal::GeneratedMessageReflection*
46 : Node_reflection_ = NULL;
47 : struct NodeOneofInstance {
48 : const ::std::string* typename__;
49 : ::google::protobuf::uint64 typenameref_;
50 : const ::std::string* jsobjectclassname_;
51 : ::google::protobuf::uint64 jsobjectclassnameref_;
52 : const ::std::string* scriptfilename_;
53 : ::google::protobuf::uint64 scriptfilenameref_;
54 : }* Node_default_oneof_instance_ = NULL;
55 : const ::google::protobuf::Descriptor* Edge_descriptor_ = NULL;
56 : const ::google::protobuf::internal::GeneratedMessageReflection*
57 : Edge_reflection_ = NULL;
58 : struct EdgeOneofInstance {
59 : const ::std::string* name_;
60 : ::google::protobuf::uint64 nameref_;
61 : }* Edge_default_oneof_instance_ = NULL;
62 :
63 : } // namespace
64 :
65 :
66 0 : void protobuf_AssignDesc_CoreDump_2eproto() {
67 0 : protobuf_AddDesc_CoreDump_2eproto();
68 : const ::google::protobuf::FileDescriptor* file =
69 0 : ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
70 0 : "CoreDump.proto");
71 0 : GOOGLE_CHECK(file != NULL);
72 0 : Metadata_descriptor_ = file->message_type(0);
73 : static const int Metadata_offsets_[1] = {
74 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Metadata, timestamp_),
75 : };
76 0 : Metadata_reflection_ =
77 : new ::google::protobuf::internal::GeneratedMessageReflection(
78 : Metadata_descriptor_,
79 : Metadata::default_instance_,
80 : Metadata_offsets_,
81 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Metadata, _has_bits_[0]),
82 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Metadata, _unknown_fields_),
83 : -1,
84 0 : ::google::protobuf::DescriptorPool::generated_pool(),
85 0 : ::google::protobuf::MessageFactory::generated_factory(),
86 0 : sizeof(Metadata));
87 0 : StackFrame_descriptor_ = file->message_type(1);
88 : static const int StackFrame_offsets_[3] = {
89 : PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(StackFrame_default_oneof_instance_, data_),
90 : PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(StackFrame_default_oneof_instance_, ref_),
91 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StackFrame, StackFrameType_),
92 : };
93 0 : StackFrame_reflection_ =
94 : new ::google::protobuf::internal::GeneratedMessageReflection(
95 : StackFrame_descriptor_,
96 : StackFrame::default_instance_,
97 : StackFrame_offsets_,
98 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StackFrame, _has_bits_[0]),
99 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StackFrame, _unknown_fields_),
100 : -1,
101 : StackFrame_default_oneof_instance_,
102 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StackFrame, _oneof_case_[0]),
103 0 : ::google::protobuf::DescriptorPool::generated_pool(),
104 0 : ::google::protobuf::MessageFactory::generated_factory(),
105 0 : sizeof(StackFrame));
106 0 : StackFrame_Data_descriptor_ = StackFrame_descriptor_->nested_type(0);
107 : static const int StackFrame_Data_offsets_[12] = {
108 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StackFrame_Data, id_),
109 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StackFrame_Data, parent_),
110 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StackFrame_Data, line_),
111 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StackFrame_Data, column_),
112 : PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(StackFrame_Data_default_oneof_instance_, source_),
113 : PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(StackFrame_Data_default_oneof_instance_, sourceref_),
114 : PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(StackFrame_Data_default_oneof_instance_, functiondisplayname_),
115 : PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(StackFrame_Data_default_oneof_instance_, functiondisplaynameref_),
116 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StackFrame_Data, issystem_),
117 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StackFrame_Data, isselfhosted_),
118 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StackFrame_Data, SourceOrRef_),
119 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StackFrame_Data, FunctionDisplayNameOrRef_),
120 : };
121 0 : StackFrame_Data_reflection_ =
122 : new ::google::protobuf::internal::GeneratedMessageReflection(
123 : StackFrame_Data_descriptor_,
124 : StackFrame_Data::default_instance_,
125 : StackFrame_Data_offsets_,
126 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StackFrame_Data, _has_bits_[0]),
127 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StackFrame_Data, _unknown_fields_),
128 : -1,
129 : StackFrame_Data_default_oneof_instance_,
130 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StackFrame_Data, _oneof_case_[0]),
131 0 : ::google::protobuf::DescriptorPool::generated_pool(),
132 0 : ::google::protobuf::MessageFactory::generated_factory(),
133 0 : sizeof(StackFrame_Data));
134 0 : Node_descriptor_ = file->message_type(2);
135 : static const int Node_offsets_[14] = {
136 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Node, id_),
137 : PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(Node_default_oneof_instance_, typename__),
138 : PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(Node_default_oneof_instance_, typenameref_),
139 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Node, size_),
140 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Node, edges_),
141 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Node, allocationstack_),
142 : PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(Node_default_oneof_instance_, jsobjectclassname_),
143 : PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(Node_default_oneof_instance_, jsobjectclassnameref_),
144 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Node, coarsetype_),
145 : PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(Node_default_oneof_instance_, scriptfilename_),
146 : PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(Node_default_oneof_instance_, scriptfilenameref_),
147 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Node, TypeNameOrRef_),
148 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Node, JSObjectClassNameOrRef_),
149 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Node, ScriptFilenameOrRef_),
150 : };
151 0 : Node_reflection_ =
152 : new ::google::protobuf::internal::GeneratedMessageReflection(
153 : Node_descriptor_,
154 : Node::default_instance_,
155 : Node_offsets_,
156 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Node, _has_bits_[0]),
157 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Node, _unknown_fields_),
158 : -1,
159 : Node_default_oneof_instance_,
160 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Node, _oneof_case_[0]),
161 0 : ::google::protobuf::DescriptorPool::generated_pool(),
162 0 : ::google::protobuf::MessageFactory::generated_factory(),
163 0 : sizeof(Node));
164 0 : Edge_descriptor_ = file->message_type(3);
165 : static const int Edge_offsets_[4] = {
166 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Edge, referent_),
167 : PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(Edge_default_oneof_instance_, name_),
168 : PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(Edge_default_oneof_instance_, nameref_),
169 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Edge, EdgeNameOrRef_),
170 : };
171 0 : Edge_reflection_ =
172 : new ::google::protobuf::internal::GeneratedMessageReflection(
173 : Edge_descriptor_,
174 : Edge::default_instance_,
175 : Edge_offsets_,
176 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Edge, _has_bits_[0]),
177 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Edge, _unknown_fields_),
178 : -1,
179 : Edge_default_oneof_instance_,
180 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Edge, _oneof_case_[0]),
181 0 : ::google::protobuf::DescriptorPool::generated_pool(),
182 0 : ::google::protobuf::MessageFactory::generated_factory(),
183 0 : sizeof(Edge));
184 0 : }
185 :
186 : namespace {
187 :
188 : GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
189 0 : inline void protobuf_AssignDescriptorsOnce() {
190 : ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
191 0 : &protobuf_AssignDesc_CoreDump_2eproto);
192 0 : }
193 :
194 0 : void protobuf_RegisterTypes(const ::std::string&) {
195 0 : protobuf_AssignDescriptorsOnce();
196 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
197 0 : Metadata_descriptor_, &Metadata::default_instance());
198 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
199 0 : StackFrame_descriptor_, &StackFrame::default_instance());
200 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
201 0 : StackFrame_Data_descriptor_, &StackFrame_Data::default_instance());
202 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
203 0 : Node_descriptor_, &Node::default_instance());
204 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
205 0 : Edge_descriptor_, &Edge::default_instance());
206 0 : }
207 :
208 : } // namespace
209 :
210 0 : void protobuf_ShutdownFile_CoreDump_2eproto() {
211 0 : delete Metadata::default_instance_;
212 0 : delete Metadata_reflection_;
213 0 : delete StackFrame::default_instance_;
214 0 : delete StackFrame_default_oneof_instance_;
215 0 : delete StackFrame_reflection_;
216 0 : delete StackFrame_Data::default_instance_;
217 0 : delete StackFrame_Data_default_oneof_instance_;
218 0 : delete StackFrame_Data_reflection_;
219 0 : delete Node::default_instance_;
220 0 : delete Node_default_oneof_instance_;
221 0 : delete Node_reflection_;
222 0 : delete Edge::default_instance_;
223 0 : delete Edge_default_oneof_instance_;
224 0 : delete Edge_reflection_;
225 0 : }
226 :
227 3 : void protobuf_AddDesc_CoreDump_2eproto() {
228 : static bool already_here = false;
229 3 : if (already_here) return;
230 3 : already_here = true;
231 3 : GOOGLE_PROTOBUF_VERIFY_VERSION;
232 :
233 : ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
234 : "\n\016CoreDump.proto\022\031mozilla.devtools.proto"
235 : "buf\"\035\n\010Metadata\022\021\n\ttimeStamp\030\001 \001(\004\"\216\003\n\nS"
236 : "tackFrame\022:\n\004data\030\001 \001(\0132*.mozilla.devtoo"
237 : "ls.protobuf.StackFrame.DataH\000\022\r\n\003ref\030\002 \001"
238 : "(\004H\000\032\242\002\n\004Data\022\n\n\002id\030\001 \001(\004\0225\n\006parent\030\002 \001("
239 : "\0132%.mozilla.devtools.protobuf.StackFrame"
240 : "\022\014\n\004line\030\003 \001(\r\022\016\n\006column\030\004 \001(\r\022\020\n\006source"
241 : "\030\005 \001(\014H\000\022\023\n\tsourceRef\030\006 \001(\004H\000\022\035\n\023functio"
242 : "nDisplayName\030\007 \001(\014H\001\022 \n\026functionDisplayN"
243 : "ameRef\030\010 \001(\004H\001\022\020\n\010isSystem\030\t \001(\010\022\024\n\014isSe"
244 : "lfHosted\030\n \001(\010B\r\n\013SourceOrRefB\032\n\030Functio"
245 : "nDisplayNameOrRefB\020\n\016StackFrameType\"\210\003\n\004"
246 : "Node\022\n\n\002id\030\001 \001(\004\022\022\n\010typeName\030\002 \001(\014H\000\022\025\n\013"
247 : "typeNameRef\030\003 \001(\004H\000\022\014\n\004size\030\004 \001(\004\022.\n\005edg"
248 : "es\030\005 \003(\0132\037.mozilla.devtools.protobuf.Edg"
249 : "e\022>\n\017allocationStack\030\006 \001(\0132%.mozilla.dev"
250 : "tools.protobuf.StackFrame\022\033\n\021jsObjectCla"
251 : "ssName\030\007 \001(\014H\001\022\036\n\024jsObjectClassNameRef\030\010"
252 : " \001(\004H\001\022\025\n\ncoarseType\030\t \001(\r:\0010\022\030\n\016scriptF"
253 : "ilename\030\n \001(\014H\002\022\033\n\021scriptFilenameRef\030\013 \001"
254 : "(\004H\002B\017\n\rTypeNameOrRefB\030\n\026JSObjectClassNa"
255 : "meOrRefB\025\n\023ScriptFilenameOrRef\"L\n\004Edge\022\020"
256 : "\n\010referent\030\001 \001(\004\022\016\n\004name\030\002 \001(\014H\000\022\021\n\007name"
257 3 : "Ref\030\003 \001(\004H\000B\017\n\rEdgeNameOrRef", 948);
258 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
259 3 : "CoreDump.proto", &protobuf_RegisterTypes);
260 3 : Metadata::default_instance_ = new Metadata();
261 3 : StackFrame::default_instance_ = new StackFrame();
262 3 : StackFrame_default_oneof_instance_ = new StackFrameOneofInstance;
263 3 : StackFrame_Data::default_instance_ = new StackFrame_Data();
264 3 : StackFrame_Data_default_oneof_instance_ = new StackFrame_DataOneofInstance;
265 3 : Node::default_instance_ = new Node();
266 3 : Node_default_oneof_instance_ = new NodeOneofInstance;
267 3 : Edge::default_instance_ = new Edge();
268 3 : Edge_default_oneof_instance_ = new EdgeOneofInstance;
269 3 : Metadata::default_instance_->InitAsDefaultInstance();
270 3 : StackFrame::default_instance_->InitAsDefaultInstance();
271 3 : StackFrame_Data::default_instance_->InitAsDefaultInstance();
272 3 : Node::default_instance_->InitAsDefaultInstance();
273 3 : Edge::default_instance_->InitAsDefaultInstance();
274 3 : ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_CoreDump_2eproto);
275 : }
276 :
277 : // Force AddDescriptors() to be called at static initialization time.
278 : struct StaticDescriptorInitializer_CoreDump_2eproto {
279 3 : StaticDescriptorInitializer_CoreDump_2eproto() {
280 3 : protobuf_AddDesc_CoreDump_2eproto();
281 3 : }
282 3 : } static_descriptor_initializer_CoreDump_2eproto_;
283 :
284 : // ===================================================================
285 :
286 : #ifndef _MSC_VER
287 : const int Metadata::kTimeStampFieldNumber;
288 : #endif // !_MSC_VER
289 :
290 3 : Metadata::Metadata()
291 3 : : ::google::protobuf::Message() {
292 3 : SharedCtor();
293 : // @@protoc_insertion_point(constructor:mozilla.devtools.protobuf.Metadata)
294 3 : }
295 :
296 3 : void Metadata::InitAsDefaultInstance() {
297 3 : }
298 :
299 0 : Metadata::Metadata(const Metadata& from)
300 0 : : ::google::protobuf::Message() {
301 0 : SharedCtor();
302 0 : MergeFrom(from);
303 : // @@protoc_insertion_point(copy_constructor:mozilla.devtools.protobuf.Metadata)
304 0 : }
305 :
306 3 : void Metadata::SharedCtor() {
307 3 : _cached_size_ = 0;
308 3 : timestamp_ = GOOGLE_ULONGLONG(0);
309 3 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
310 3 : }
311 :
312 0 : Metadata::~Metadata() {
313 : // @@protoc_insertion_point(destructor:mozilla.devtools.protobuf.Metadata)
314 0 : SharedDtor();
315 0 : }
316 :
317 0 : void Metadata::SharedDtor() {
318 0 : if (this != default_instance_) {
319 : }
320 0 : }
321 :
322 0 : void Metadata::SetCachedSize(int size) const {
323 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
324 0 : _cached_size_ = size;
325 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
326 0 : }
327 0 : const ::google::protobuf::Descriptor* Metadata::descriptor() {
328 0 : protobuf_AssignDescriptorsOnce();
329 0 : return Metadata_descriptor_;
330 : }
331 :
332 0 : const Metadata& Metadata::default_instance() {
333 0 : if (default_instance_ == NULL) protobuf_AddDesc_CoreDump_2eproto();
334 0 : return *default_instance_;
335 : }
336 :
337 : Metadata* Metadata::default_instance_ = NULL;
338 :
339 0 : Metadata* Metadata::New() const {
340 0 : return new Metadata;
341 : }
342 :
343 0 : void Metadata::Clear() {
344 0 : timestamp_ = GOOGLE_ULONGLONG(0);
345 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
346 0 : mutable_unknown_fields()->Clear();
347 0 : }
348 :
349 0 : bool Metadata::MergePartialFromCodedStream(
350 : ::google::protobuf::io::CodedInputStream* input) {
351 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
352 : ::google::protobuf::uint32 tag;
353 : // @@protoc_insertion_point(parse_start:mozilla.devtools.protobuf.Metadata)
354 : for (;;) {
355 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
356 0 : tag = p.first;
357 0 : if (!p.second) goto handle_unusual;
358 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
359 : // optional uint64 timeStamp = 1;
360 : case 1: {
361 0 : if (tag == 8) {
362 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
363 : ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
364 : input, ×tamp_)));
365 0 : set_has_timestamp();
366 : } else {
367 0 : goto handle_unusual;
368 : }
369 0 : if (input->ExpectAtEnd()) goto success;
370 0 : break;
371 : }
372 :
373 : default: {
374 : handle_unusual:
375 0 : if (tag == 0 ||
376 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
377 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
378 0 : goto success;
379 : }
380 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
381 : input, tag, mutable_unknown_fields()));
382 0 : break;
383 : }
384 : }
385 0 : }
386 : success:
387 : // @@protoc_insertion_point(parse_success:mozilla.devtools.protobuf.Metadata)
388 0 : return true;
389 : failure:
390 : // @@protoc_insertion_point(parse_failure:mozilla.devtools.protobuf.Metadata)
391 0 : return false;
392 : #undef DO_
393 : }
394 :
395 0 : void Metadata::SerializeWithCachedSizes(
396 : ::google::protobuf::io::CodedOutputStream* output) const {
397 : // @@protoc_insertion_point(serialize_start:mozilla.devtools.protobuf.Metadata)
398 : // optional uint64 timeStamp = 1;
399 0 : if (has_timestamp()) {
400 0 : ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->timestamp(), output);
401 : }
402 :
403 0 : if (!unknown_fields().empty()) {
404 0 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
405 0 : unknown_fields(), output);
406 : }
407 : // @@protoc_insertion_point(serialize_end:mozilla.devtools.protobuf.Metadata)
408 0 : }
409 :
410 0 : ::google::protobuf::uint8* Metadata::SerializeWithCachedSizesToArray(
411 : ::google::protobuf::uint8* target) const {
412 : // @@protoc_insertion_point(serialize_to_array_start:mozilla.devtools.protobuf.Metadata)
413 : // optional uint64 timeStamp = 1;
414 0 : if (has_timestamp()) {
415 0 : target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->timestamp(), target);
416 : }
417 :
418 0 : if (!unknown_fields().empty()) {
419 0 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
420 0 : unknown_fields(), target);
421 : }
422 : // @@protoc_insertion_point(serialize_to_array_end:mozilla.devtools.protobuf.Metadata)
423 0 : return target;
424 : }
425 :
426 0 : int Metadata::ByteSize() const {
427 0 : int total_size = 0;
428 :
429 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
430 : // optional uint64 timeStamp = 1;
431 0 : if (has_timestamp()) {
432 0 : total_size += 1 +
433 0 : ::google::protobuf::internal::WireFormatLite::UInt64Size(
434 : this->timestamp());
435 : }
436 :
437 : }
438 0 : if (!unknown_fields().empty()) {
439 0 : total_size +=
440 0 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
441 : unknown_fields());
442 : }
443 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
444 0 : _cached_size_ = total_size;
445 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
446 0 : return total_size;
447 : }
448 :
449 0 : void Metadata::MergeFrom(const ::google::protobuf::Message& from) {
450 0 : GOOGLE_CHECK_NE(&from, this);
451 : const Metadata* source =
452 : ::google::protobuf::internal::dynamic_cast_if_available<const Metadata*>(
453 0 : &from);
454 0 : if (source == NULL) {
455 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
456 : } else {
457 0 : MergeFrom(*source);
458 : }
459 0 : }
460 :
461 0 : void Metadata::MergeFrom(const Metadata& from) {
462 0 : GOOGLE_CHECK_NE(&from, this);
463 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
464 0 : if (from.has_timestamp()) {
465 0 : set_timestamp(from.timestamp());
466 : }
467 : }
468 0 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
469 0 : }
470 :
471 0 : void Metadata::CopyFrom(const ::google::protobuf::Message& from) {
472 0 : if (&from == this) return;
473 0 : Clear();
474 0 : MergeFrom(from);
475 : }
476 :
477 0 : void Metadata::CopyFrom(const Metadata& from) {
478 0 : if (&from == this) return;
479 0 : Clear();
480 0 : MergeFrom(from);
481 : }
482 :
483 0 : bool Metadata::IsInitialized() const {
484 :
485 0 : return true;
486 : }
487 :
488 0 : void Metadata::Swap(Metadata* other) {
489 0 : if (other != this) {
490 0 : std::swap(timestamp_, other->timestamp_);
491 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
492 0 : _unknown_fields_.Swap(&other->_unknown_fields_);
493 0 : std::swap(_cached_size_, other->_cached_size_);
494 : }
495 0 : }
496 :
497 0 : ::google::protobuf::Metadata Metadata::GetMetadata() const {
498 0 : protobuf_AssignDescriptorsOnce();
499 : ::google::protobuf::Metadata metadata;
500 0 : metadata.descriptor = Metadata_descriptor_;
501 0 : metadata.reflection = Metadata_reflection_;
502 0 : return metadata;
503 : }
504 :
505 :
506 : // ===================================================================
507 :
508 : #ifndef _MSC_VER
509 : const int StackFrame_Data::kIdFieldNumber;
510 : const int StackFrame_Data::kParentFieldNumber;
511 : const int StackFrame_Data::kLineFieldNumber;
512 : const int StackFrame_Data::kColumnFieldNumber;
513 : const int StackFrame_Data::kSourceFieldNumber;
514 : const int StackFrame_Data::kSourceRefFieldNumber;
515 : const int StackFrame_Data::kFunctionDisplayNameFieldNumber;
516 : const int StackFrame_Data::kFunctionDisplayNameRefFieldNumber;
517 : const int StackFrame_Data::kIsSystemFieldNumber;
518 : const int StackFrame_Data::kIsSelfHostedFieldNumber;
519 : #endif // !_MSC_VER
520 :
521 3 : StackFrame_Data::StackFrame_Data()
522 3 : : ::google::protobuf::Message() {
523 3 : SharedCtor();
524 : // @@protoc_insertion_point(constructor:mozilla.devtools.protobuf.StackFrame.Data)
525 3 : }
526 :
527 3 : void StackFrame_Data::InitAsDefaultInstance() {
528 3 : parent_ = const_cast< ::mozilla::devtools::protobuf::StackFrame*>(&::mozilla::devtools::protobuf::StackFrame::default_instance());
529 3 : StackFrame_Data_default_oneof_instance_->source_ = &::google::protobuf::internal::GetEmptyStringAlreadyInited();
530 3 : StackFrame_Data_default_oneof_instance_->sourceref_ = GOOGLE_ULONGLONG(0);
531 3 : StackFrame_Data_default_oneof_instance_->functiondisplayname_ = &::google::protobuf::internal::GetEmptyStringAlreadyInited();
532 3 : StackFrame_Data_default_oneof_instance_->functiondisplaynameref_ = GOOGLE_ULONGLONG(0);
533 3 : }
534 :
535 0 : StackFrame_Data::StackFrame_Data(const StackFrame_Data& from)
536 0 : : ::google::protobuf::Message() {
537 0 : SharedCtor();
538 0 : MergeFrom(from);
539 : // @@protoc_insertion_point(copy_constructor:mozilla.devtools.protobuf.StackFrame.Data)
540 0 : }
541 :
542 3 : void StackFrame_Data::SharedCtor() {
543 3 : ::google::protobuf::internal::GetEmptyString();
544 3 : _cached_size_ = 0;
545 3 : id_ = GOOGLE_ULONGLONG(0);
546 3 : parent_ = NULL;
547 3 : line_ = 0u;
548 3 : column_ = 0u;
549 3 : issystem_ = false;
550 3 : isselfhosted_ = false;
551 3 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
552 3 : clear_has_SourceOrRef();
553 3 : clear_has_FunctionDisplayNameOrRef();
554 3 : }
555 :
556 0 : StackFrame_Data::~StackFrame_Data() {
557 : // @@protoc_insertion_point(destructor:mozilla.devtools.protobuf.StackFrame.Data)
558 0 : SharedDtor();
559 0 : }
560 :
561 0 : void StackFrame_Data::SharedDtor() {
562 0 : if (has_SourceOrRef()) {
563 0 : clear_SourceOrRef();
564 : }
565 0 : if (has_FunctionDisplayNameOrRef()) {
566 0 : clear_FunctionDisplayNameOrRef();
567 : }
568 0 : if (this != default_instance_) {
569 0 : delete parent_;
570 : }
571 0 : }
572 :
573 0 : void StackFrame_Data::SetCachedSize(int size) const {
574 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
575 0 : _cached_size_ = size;
576 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
577 0 : }
578 0 : const ::google::protobuf::Descriptor* StackFrame_Data::descriptor() {
579 0 : protobuf_AssignDescriptorsOnce();
580 0 : return StackFrame_Data_descriptor_;
581 : }
582 :
583 3 : const StackFrame_Data& StackFrame_Data::default_instance() {
584 3 : if (default_instance_ == NULL) protobuf_AddDesc_CoreDump_2eproto();
585 3 : return *default_instance_;
586 : }
587 :
588 : StackFrame_Data* StackFrame_Data::default_instance_ = NULL;
589 :
590 0 : StackFrame_Data* StackFrame_Data::New() const {
591 0 : return new StackFrame_Data;
592 : }
593 :
594 0 : void StackFrame_Data::clear_SourceOrRef() {
595 0 : switch(SourceOrRef_case()) {
596 : case kSource: {
597 0 : delete SourceOrRef_.source_;
598 0 : break;
599 : }
600 : case kSourceRef: {
601 : // No need to clear
602 0 : break;
603 : }
604 : case SOURCEORREF_NOT_SET: {
605 0 : break;
606 : }
607 : }
608 0 : _oneof_case_[0] = SOURCEORREF_NOT_SET;
609 0 : }
610 :
611 0 : void StackFrame_Data::clear_FunctionDisplayNameOrRef() {
612 0 : switch(FunctionDisplayNameOrRef_case()) {
613 : case kFunctionDisplayName: {
614 0 : delete FunctionDisplayNameOrRef_.functiondisplayname_;
615 0 : break;
616 : }
617 : case kFunctionDisplayNameRef: {
618 : // No need to clear
619 0 : break;
620 : }
621 : case FUNCTIONDISPLAYNAMEORREF_NOT_SET: {
622 0 : break;
623 : }
624 : }
625 0 : _oneof_case_[1] = FUNCTIONDISPLAYNAMEORREF_NOT_SET;
626 0 : }
627 :
628 :
629 0 : void StackFrame_Data::Clear() {
630 : #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
631 : &reinterpret_cast<StackFrame_Data*>(16)->f) - \
632 : reinterpret_cast<char*>(16))
633 :
634 : #define ZR_(first, last) do { \
635 : size_t f = OFFSET_OF_FIELD_(first); \
636 : size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
637 : ::memset(&first, 0, n); \
638 : } while (0)
639 :
640 0 : if (_has_bits_[0 / 32] & 15) {
641 0 : ZR_(line_, column_);
642 0 : id_ = GOOGLE_ULONGLONG(0);
643 0 : if (has_parent()) {
644 0 : if (parent_ != NULL) parent_->::mozilla::devtools::protobuf::StackFrame::Clear();
645 : }
646 : }
647 0 : ZR_(issystem_, isselfhosted_);
648 :
649 : #undef OFFSET_OF_FIELD_
650 : #undef ZR_
651 :
652 0 : clear_SourceOrRef();
653 0 : clear_FunctionDisplayNameOrRef();
654 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
655 0 : mutable_unknown_fields()->Clear();
656 0 : }
657 :
658 0 : bool StackFrame_Data::MergePartialFromCodedStream(
659 : ::google::protobuf::io::CodedInputStream* input) {
660 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
661 : ::google::protobuf::uint32 tag;
662 : // @@protoc_insertion_point(parse_start:mozilla.devtools.protobuf.StackFrame.Data)
663 : for (;;) {
664 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
665 0 : tag = p.first;
666 0 : if (!p.second) goto handle_unusual;
667 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
668 : // optional uint64 id = 1;
669 : case 1: {
670 0 : if (tag == 8) {
671 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
672 : ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
673 : input, &id_)));
674 0 : set_has_id();
675 : } else {
676 0 : goto handle_unusual;
677 : }
678 0 : if (input->ExpectTag(18)) goto parse_parent;
679 0 : break;
680 : }
681 :
682 : // optional .mozilla.devtools.protobuf.StackFrame parent = 2;
683 : case 2: {
684 0 : if (tag == 18) {
685 : parse_parent:
686 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
687 : input, mutable_parent()));
688 : } else {
689 0 : goto handle_unusual;
690 : }
691 0 : if (input->ExpectTag(24)) goto parse_line;
692 0 : break;
693 : }
694 :
695 : // optional uint32 line = 3;
696 : case 3: {
697 0 : if (tag == 24) {
698 : parse_line:
699 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
700 : ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
701 : input, &line_)));
702 0 : set_has_line();
703 : } else {
704 0 : goto handle_unusual;
705 : }
706 0 : if (input->ExpectTag(32)) goto parse_column;
707 0 : break;
708 : }
709 :
710 : // optional uint32 column = 4;
711 : case 4: {
712 0 : if (tag == 32) {
713 : parse_column:
714 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
715 : ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
716 : input, &column_)));
717 0 : set_has_column();
718 : } else {
719 0 : goto handle_unusual;
720 : }
721 0 : if (input->ExpectTag(42)) goto parse_source;
722 0 : break;
723 : }
724 :
725 : // optional bytes source = 5;
726 : case 5: {
727 0 : if (tag == 42) {
728 : parse_source:
729 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
730 : input, this->mutable_source()));
731 : } else {
732 0 : goto handle_unusual;
733 : }
734 0 : if (input->ExpectTag(48)) goto parse_sourceRef;
735 0 : break;
736 : }
737 :
738 : // optional uint64 sourceRef = 6;
739 : case 6: {
740 0 : if (tag == 48) {
741 : parse_sourceRef:
742 0 : clear_SourceOrRef();
743 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
744 : ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
745 : input, &SourceOrRef_.sourceref_)));
746 0 : set_has_sourceref();
747 : } else {
748 0 : goto handle_unusual;
749 : }
750 0 : if (input->ExpectTag(58)) goto parse_functionDisplayName;
751 0 : break;
752 : }
753 :
754 : // optional bytes functionDisplayName = 7;
755 : case 7: {
756 0 : if (tag == 58) {
757 : parse_functionDisplayName:
758 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
759 : input, this->mutable_functiondisplayname()));
760 : } else {
761 0 : goto handle_unusual;
762 : }
763 0 : if (input->ExpectTag(64)) goto parse_functionDisplayNameRef;
764 0 : break;
765 : }
766 :
767 : // optional uint64 functionDisplayNameRef = 8;
768 : case 8: {
769 0 : if (tag == 64) {
770 : parse_functionDisplayNameRef:
771 0 : clear_FunctionDisplayNameOrRef();
772 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
773 : ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
774 : input, &FunctionDisplayNameOrRef_.functiondisplaynameref_)));
775 0 : set_has_functiondisplaynameref();
776 : } else {
777 0 : goto handle_unusual;
778 : }
779 0 : if (input->ExpectTag(72)) goto parse_isSystem;
780 0 : break;
781 : }
782 :
783 : // optional bool isSystem = 9;
784 : case 9: {
785 0 : if (tag == 72) {
786 : parse_isSystem:
787 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
788 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
789 : input, &issystem_)));
790 0 : set_has_issystem();
791 : } else {
792 0 : goto handle_unusual;
793 : }
794 0 : if (input->ExpectTag(80)) goto parse_isSelfHosted;
795 0 : break;
796 : }
797 :
798 : // optional bool isSelfHosted = 10;
799 : case 10: {
800 0 : if (tag == 80) {
801 : parse_isSelfHosted:
802 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
803 : bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
804 : input, &isselfhosted_)));
805 0 : set_has_isselfhosted();
806 : } else {
807 0 : goto handle_unusual;
808 : }
809 0 : if (input->ExpectAtEnd()) goto success;
810 0 : break;
811 : }
812 :
813 : default: {
814 : handle_unusual:
815 0 : if (tag == 0 ||
816 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
817 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
818 0 : goto success;
819 : }
820 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
821 : input, tag, mutable_unknown_fields()));
822 0 : break;
823 : }
824 : }
825 0 : }
826 : success:
827 : // @@protoc_insertion_point(parse_success:mozilla.devtools.protobuf.StackFrame.Data)
828 0 : return true;
829 : failure:
830 : // @@protoc_insertion_point(parse_failure:mozilla.devtools.protobuf.StackFrame.Data)
831 0 : return false;
832 : #undef DO_
833 : }
834 :
835 0 : void StackFrame_Data::SerializeWithCachedSizes(
836 : ::google::protobuf::io::CodedOutputStream* output) const {
837 : // @@protoc_insertion_point(serialize_start:mozilla.devtools.protobuf.StackFrame.Data)
838 : // optional uint64 id = 1;
839 0 : if (has_id()) {
840 0 : ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->id(), output);
841 : }
842 :
843 : // optional .mozilla.devtools.protobuf.StackFrame parent = 2;
844 0 : if (has_parent()) {
845 0 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
846 0 : 2, this->parent(), output);
847 : }
848 :
849 : // optional uint32 line = 3;
850 0 : if (has_line()) {
851 0 : ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->line(), output);
852 : }
853 :
854 : // optional uint32 column = 4;
855 0 : if (has_column()) {
856 0 : ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->column(), output);
857 : }
858 :
859 : // optional bytes source = 5;
860 0 : if (has_source()) {
861 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
862 0 : 5, this->source(), output);
863 : }
864 :
865 : // optional uint64 sourceRef = 6;
866 0 : if (has_sourceref()) {
867 0 : ::google::protobuf::internal::WireFormatLite::WriteUInt64(6, this->sourceref(), output);
868 : }
869 :
870 : // optional bytes functionDisplayName = 7;
871 0 : if (has_functiondisplayname()) {
872 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
873 0 : 7, this->functiondisplayname(), output);
874 : }
875 :
876 : // optional uint64 functionDisplayNameRef = 8;
877 0 : if (has_functiondisplaynameref()) {
878 0 : ::google::protobuf::internal::WireFormatLite::WriteUInt64(8, this->functiondisplaynameref(), output);
879 : }
880 :
881 : // optional bool isSystem = 9;
882 0 : if (has_issystem()) {
883 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(9, this->issystem(), output);
884 : }
885 :
886 : // optional bool isSelfHosted = 10;
887 0 : if (has_isselfhosted()) {
888 0 : ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->isselfhosted(), output);
889 : }
890 :
891 0 : if (!unknown_fields().empty()) {
892 0 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
893 0 : unknown_fields(), output);
894 : }
895 : // @@protoc_insertion_point(serialize_end:mozilla.devtools.protobuf.StackFrame.Data)
896 0 : }
897 :
898 0 : ::google::protobuf::uint8* StackFrame_Data::SerializeWithCachedSizesToArray(
899 : ::google::protobuf::uint8* target) const {
900 : // @@protoc_insertion_point(serialize_to_array_start:mozilla.devtools.protobuf.StackFrame.Data)
901 : // optional uint64 id = 1;
902 0 : if (has_id()) {
903 0 : target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->id(), target);
904 : }
905 :
906 : // optional .mozilla.devtools.protobuf.StackFrame parent = 2;
907 0 : if (has_parent()) {
908 : target = ::google::protobuf::internal::WireFormatLite::
909 0 : WriteMessageNoVirtualToArray(
910 0 : 2, this->parent(), target);
911 : }
912 :
913 : // optional uint32 line = 3;
914 0 : if (has_line()) {
915 0 : target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->line(), target);
916 : }
917 :
918 : // optional uint32 column = 4;
919 0 : if (has_column()) {
920 0 : target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->column(), target);
921 : }
922 :
923 : // optional bytes source = 5;
924 0 : if (has_source()) {
925 : target =
926 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
927 0 : 5, this->source(), target);
928 : }
929 :
930 : // optional uint64 sourceRef = 6;
931 0 : if (has_sourceref()) {
932 0 : target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(6, this->sourceref(), target);
933 : }
934 :
935 : // optional bytes functionDisplayName = 7;
936 0 : if (has_functiondisplayname()) {
937 : target =
938 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
939 0 : 7, this->functiondisplayname(), target);
940 : }
941 :
942 : // optional uint64 functionDisplayNameRef = 8;
943 0 : if (has_functiondisplaynameref()) {
944 0 : target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(8, this->functiondisplaynameref(), target);
945 : }
946 :
947 : // optional bool isSystem = 9;
948 0 : if (has_issystem()) {
949 0 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(9, this->issystem(), target);
950 : }
951 :
952 : // optional bool isSelfHosted = 10;
953 0 : if (has_isselfhosted()) {
954 0 : target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->isselfhosted(), target);
955 : }
956 :
957 0 : if (!unknown_fields().empty()) {
958 0 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
959 0 : unknown_fields(), target);
960 : }
961 : // @@protoc_insertion_point(serialize_to_array_end:mozilla.devtools.protobuf.StackFrame.Data)
962 0 : return target;
963 : }
964 :
965 0 : int StackFrame_Data::ByteSize() const {
966 0 : int total_size = 0;
967 :
968 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
969 : // optional uint64 id = 1;
970 0 : if (has_id()) {
971 0 : total_size += 1 +
972 0 : ::google::protobuf::internal::WireFormatLite::UInt64Size(
973 : this->id());
974 : }
975 :
976 : // optional .mozilla.devtools.protobuf.StackFrame parent = 2;
977 0 : if (has_parent()) {
978 0 : total_size += 1 +
979 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
980 : this->parent());
981 : }
982 :
983 : // optional uint32 line = 3;
984 0 : if (has_line()) {
985 0 : total_size += 1 +
986 0 : ::google::protobuf::internal::WireFormatLite::UInt32Size(
987 : this->line());
988 : }
989 :
990 : // optional uint32 column = 4;
991 0 : if (has_column()) {
992 0 : total_size += 1 +
993 0 : ::google::protobuf::internal::WireFormatLite::UInt32Size(
994 : this->column());
995 : }
996 :
997 : }
998 0 : if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
999 : // optional bool isSystem = 9;
1000 0 : if (has_issystem()) {
1001 0 : total_size += 1 + 1;
1002 : }
1003 :
1004 : // optional bool isSelfHosted = 10;
1005 0 : if (has_isselfhosted()) {
1006 0 : total_size += 1 + 1;
1007 : }
1008 :
1009 : }
1010 0 : switch (SourceOrRef_case()) {
1011 : // optional bytes source = 5;
1012 : case kSource: {
1013 0 : total_size += 1 +
1014 0 : ::google::protobuf::internal::WireFormatLite::BytesSize(
1015 : this->source());
1016 0 : break;
1017 : }
1018 : // optional uint64 sourceRef = 6;
1019 : case kSourceRef: {
1020 0 : total_size += 1 +
1021 0 : ::google::protobuf::internal::WireFormatLite::UInt64Size(
1022 : this->sourceref());
1023 0 : break;
1024 : }
1025 : case SOURCEORREF_NOT_SET: {
1026 0 : break;
1027 : }
1028 : }
1029 0 : switch (FunctionDisplayNameOrRef_case()) {
1030 : // optional bytes functionDisplayName = 7;
1031 : case kFunctionDisplayName: {
1032 0 : total_size += 1 +
1033 0 : ::google::protobuf::internal::WireFormatLite::BytesSize(
1034 : this->functiondisplayname());
1035 0 : break;
1036 : }
1037 : // optional uint64 functionDisplayNameRef = 8;
1038 : case kFunctionDisplayNameRef: {
1039 0 : total_size += 1 +
1040 0 : ::google::protobuf::internal::WireFormatLite::UInt64Size(
1041 : this->functiondisplaynameref());
1042 0 : break;
1043 : }
1044 : case FUNCTIONDISPLAYNAMEORREF_NOT_SET: {
1045 0 : break;
1046 : }
1047 : }
1048 0 : if (!unknown_fields().empty()) {
1049 0 : total_size +=
1050 0 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1051 : unknown_fields());
1052 : }
1053 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1054 0 : _cached_size_ = total_size;
1055 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
1056 0 : return total_size;
1057 : }
1058 :
1059 0 : void StackFrame_Data::MergeFrom(const ::google::protobuf::Message& from) {
1060 0 : GOOGLE_CHECK_NE(&from, this);
1061 : const StackFrame_Data* source =
1062 : ::google::protobuf::internal::dynamic_cast_if_available<const StackFrame_Data*>(
1063 0 : &from);
1064 0 : if (source == NULL) {
1065 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1066 : } else {
1067 0 : MergeFrom(*source);
1068 : }
1069 0 : }
1070 :
1071 0 : void StackFrame_Data::MergeFrom(const StackFrame_Data& from) {
1072 0 : GOOGLE_CHECK_NE(&from, this);
1073 0 : switch (from.SourceOrRef_case()) {
1074 : case kSource: {
1075 0 : set_source(from.source());
1076 0 : break;
1077 : }
1078 : case kSourceRef: {
1079 0 : set_sourceref(from.sourceref());
1080 0 : break;
1081 : }
1082 : case SOURCEORREF_NOT_SET: {
1083 0 : break;
1084 : }
1085 : }
1086 0 : switch (from.FunctionDisplayNameOrRef_case()) {
1087 : case kFunctionDisplayName: {
1088 0 : set_functiondisplayname(from.functiondisplayname());
1089 0 : break;
1090 : }
1091 : case kFunctionDisplayNameRef: {
1092 0 : set_functiondisplaynameref(from.functiondisplaynameref());
1093 0 : break;
1094 : }
1095 : case FUNCTIONDISPLAYNAMEORREF_NOT_SET: {
1096 0 : break;
1097 : }
1098 : }
1099 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1100 0 : if (from.has_id()) {
1101 0 : set_id(from.id());
1102 : }
1103 0 : if (from.has_parent()) {
1104 0 : mutable_parent()->::mozilla::devtools::protobuf::StackFrame::MergeFrom(from.parent());
1105 : }
1106 0 : if (from.has_line()) {
1107 0 : set_line(from.line());
1108 : }
1109 0 : if (from.has_column()) {
1110 0 : set_column(from.column());
1111 : }
1112 : }
1113 0 : if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
1114 0 : if (from.has_issystem()) {
1115 0 : set_issystem(from.issystem());
1116 : }
1117 0 : if (from.has_isselfhosted()) {
1118 0 : set_isselfhosted(from.isselfhosted());
1119 : }
1120 : }
1121 0 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1122 0 : }
1123 :
1124 0 : void StackFrame_Data::CopyFrom(const ::google::protobuf::Message& from) {
1125 0 : if (&from == this) return;
1126 0 : Clear();
1127 0 : MergeFrom(from);
1128 : }
1129 :
1130 0 : void StackFrame_Data::CopyFrom(const StackFrame_Data& from) {
1131 0 : if (&from == this) return;
1132 0 : Clear();
1133 0 : MergeFrom(from);
1134 : }
1135 :
1136 0 : bool StackFrame_Data::IsInitialized() const {
1137 :
1138 0 : return true;
1139 : }
1140 :
1141 0 : void StackFrame_Data::Swap(StackFrame_Data* other) {
1142 0 : if (other != this) {
1143 0 : std::swap(id_, other->id_);
1144 0 : std::swap(parent_, other->parent_);
1145 0 : std::swap(line_, other->line_);
1146 0 : std::swap(column_, other->column_);
1147 0 : std::swap(issystem_, other->issystem_);
1148 0 : std::swap(isselfhosted_, other->isselfhosted_);
1149 0 : std::swap(SourceOrRef_, other->SourceOrRef_);
1150 0 : std::swap(_oneof_case_[0], other->_oneof_case_[0]);
1151 0 : std::swap(FunctionDisplayNameOrRef_, other->FunctionDisplayNameOrRef_);
1152 0 : std::swap(_oneof_case_[1], other->_oneof_case_[1]);
1153 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
1154 0 : _unknown_fields_.Swap(&other->_unknown_fields_);
1155 0 : std::swap(_cached_size_, other->_cached_size_);
1156 : }
1157 0 : }
1158 :
1159 0 : ::google::protobuf::Metadata StackFrame_Data::GetMetadata() const {
1160 0 : protobuf_AssignDescriptorsOnce();
1161 : ::google::protobuf::Metadata metadata;
1162 0 : metadata.descriptor = StackFrame_Data_descriptor_;
1163 0 : metadata.reflection = StackFrame_Data_reflection_;
1164 0 : return metadata;
1165 : }
1166 :
1167 :
1168 : // -------------------------------------------------------------------
1169 :
1170 : #ifndef _MSC_VER
1171 : const int StackFrame::kDataFieldNumber;
1172 : const int StackFrame::kRefFieldNumber;
1173 : #endif // !_MSC_VER
1174 :
1175 3 : StackFrame::StackFrame()
1176 3 : : ::google::protobuf::Message() {
1177 3 : SharedCtor();
1178 : // @@protoc_insertion_point(constructor:mozilla.devtools.protobuf.StackFrame)
1179 3 : }
1180 :
1181 3 : void StackFrame::InitAsDefaultInstance() {
1182 3 : StackFrame_default_oneof_instance_->data_ = const_cast< ::mozilla::devtools::protobuf::StackFrame_Data*>(&::mozilla::devtools::protobuf::StackFrame_Data::default_instance());
1183 3 : StackFrame_default_oneof_instance_->ref_ = GOOGLE_ULONGLONG(0);
1184 3 : }
1185 :
1186 0 : StackFrame::StackFrame(const StackFrame& from)
1187 0 : : ::google::protobuf::Message() {
1188 0 : SharedCtor();
1189 0 : MergeFrom(from);
1190 : // @@protoc_insertion_point(copy_constructor:mozilla.devtools.protobuf.StackFrame)
1191 0 : }
1192 :
1193 3 : void StackFrame::SharedCtor() {
1194 3 : _cached_size_ = 0;
1195 3 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
1196 3 : clear_has_StackFrameType();
1197 3 : }
1198 :
1199 0 : StackFrame::~StackFrame() {
1200 : // @@protoc_insertion_point(destructor:mozilla.devtools.protobuf.StackFrame)
1201 0 : SharedDtor();
1202 0 : }
1203 :
1204 0 : void StackFrame::SharedDtor() {
1205 0 : if (has_StackFrameType()) {
1206 0 : clear_StackFrameType();
1207 : }
1208 0 : if (this != default_instance_) {
1209 : }
1210 0 : }
1211 :
1212 0 : void StackFrame::SetCachedSize(int size) const {
1213 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1214 0 : _cached_size_ = size;
1215 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
1216 0 : }
1217 0 : const ::google::protobuf::Descriptor* StackFrame::descriptor() {
1218 0 : protobuf_AssignDescriptorsOnce();
1219 0 : return StackFrame_descriptor_;
1220 : }
1221 :
1222 6 : const StackFrame& StackFrame::default_instance() {
1223 6 : if (default_instance_ == NULL) protobuf_AddDesc_CoreDump_2eproto();
1224 6 : return *default_instance_;
1225 : }
1226 :
1227 : StackFrame* StackFrame::default_instance_ = NULL;
1228 :
1229 0 : StackFrame* StackFrame::New() const {
1230 0 : return new StackFrame;
1231 : }
1232 :
1233 0 : void StackFrame::clear_StackFrameType() {
1234 0 : switch(StackFrameType_case()) {
1235 : case kData: {
1236 0 : delete StackFrameType_.data_;
1237 0 : break;
1238 : }
1239 : case kRef: {
1240 : // No need to clear
1241 0 : break;
1242 : }
1243 : case STACKFRAMETYPE_NOT_SET: {
1244 0 : break;
1245 : }
1246 : }
1247 0 : _oneof_case_[0] = STACKFRAMETYPE_NOT_SET;
1248 0 : }
1249 :
1250 :
1251 0 : void StackFrame::Clear() {
1252 0 : clear_StackFrameType();
1253 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
1254 0 : mutable_unknown_fields()->Clear();
1255 0 : }
1256 :
1257 0 : bool StackFrame::MergePartialFromCodedStream(
1258 : ::google::protobuf::io::CodedInputStream* input) {
1259 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
1260 : ::google::protobuf::uint32 tag;
1261 : // @@protoc_insertion_point(parse_start:mozilla.devtools.protobuf.StackFrame)
1262 : for (;;) {
1263 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
1264 0 : tag = p.first;
1265 0 : if (!p.second) goto handle_unusual;
1266 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1267 : // optional .mozilla.devtools.protobuf.StackFrame.Data data = 1;
1268 : case 1: {
1269 0 : if (tag == 10) {
1270 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1271 : input, mutable_data()));
1272 : } else {
1273 0 : goto handle_unusual;
1274 : }
1275 0 : if (input->ExpectTag(16)) goto parse_ref;
1276 0 : break;
1277 : }
1278 :
1279 : // optional uint64 ref = 2;
1280 : case 2: {
1281 0 : if (tag == 16) {
1282 : parse_ref:
1283 0 : clear_StackFrameType();
1284 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1285 : ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
1286 : input, &StackFrameType_.ref_)));
1287 0 : set_has_ref();
1288 : } else {
1289 0 : goto handle_unusual;
1290 : }
1291 0 : if (input->ExpectAtEnd()) goto success;
1292 0 : break;
1293 : }
1294 :
1295 : default: {
1296 : handle_unusual:
1297 0 : if (tag == 0 ||
1298 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1299 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1300 0 : goto success;
1301 : }
1302 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
1303 : input, tag, mutable_unknown_fields()));
1304 0 : break;
1305 : }
1306 : }
1307 0 : }
1308 : success:
1309 : // @@protoc_insertion_point(parse_success:mozilla.devtools.protobuf.StackFrame)
1310 0 : return true;
1311 : failure:
1312 : // @@protoc_insertion_point(parse_failure:mozilla.devtools.protobuf.StackFrame)
1313 0 : return false;
1314 : #undef DO_
1315 : }
1316 :
1317 0 : void StackFrame::SerializeWithCachedSizes(
1318 : ::google::protobuf::io::CodedOutputStream* output) const {
1319 : // @@protoc_insertion_point(serialize_start:mozilla.devtools.protobuf.StackFrame)
1320 : // optional .mozilla.devtools.protobuf.StackFrame.Data data = 1;
1321 0 : if (has_data()) {
1322 0 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1323 0 : 1, this->data(), output);
1324 : }
1325 :
1326 : // optional uint64 ref = 2;
1327 0 : if (has_ref()) {
1328 0 : ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->ref(), output);
1329 : }
1330 :
1331 0 : if (!unknown_fields().empty()) {
1332 0 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1333 0 : unknown_fields(), output);
1334 : }
1335 : // @@protoc_insertion_point(serialize_end:mozilla.devtools.protobuf.StackFrame)
1336 0 : }
1337 :
1338 0 : ::google::protobuf::uint8* StackFrame::SerializeWithCachedSizesToArray(
1339 : ::google::protobuf::uint8* target) const {
1340 : // @@protoc_insertion_point(serialize_to_array_start:mozilla.devtools.protobuf.StackFrame)
1341 : // optional .mozilla.devtools.protobuf.StackFrame.Data data = 1;
1342 0 : if (has_data()) {
1343 : target = ::google::protobuf::internal::WireFormatLite::
1344 0 : WriteMessageNoVirtualToArray(
1345 0 : 1, this->data(), target);
1346 : }
1347 :
1348 : // optional uint64 ref = 2;
1349 0 : if (has_ref()) {
1350 0 : target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->ref(), target);
1351 : }
1352 :
1353 0 : if (!unknown_fields().empty()) {
1354 0 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1355 0 : unknown_fields(), target);
1356 : }
1357 : // @@protoc_insertion_point(serialize_to_array_end:mozilla.devtools.protobuf.StackFrame)
1358 0 : return target;
1359 : }
1360 :
1361 0 : int StackFrame::ByteSize() const {
1362 0 : int total_size = 0;
1363 :
1364 0 : switch (StackFrameType_case()) {
1365 : // optional .mozilla.devtools.protobuf.StackFrame.Data data = 1;
1366 : case kData: {
1367 0 : total_size += 1 +
1368 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1369 : this->data());
1370 0 : break;
1371 : }
1372 : // optional uint64 ref = 2;
1373 : case kRef: {
1374 0 : total_size += 1 +
1375 0 : ::google::protobuf::internal::WireFormatLite::UInt64Size(
1376 : this->ref());
1377 0 : break;
1378 : }
1379 : case STACKFRAMETYPE_NOT_SET: {
1380 0 : break;
1381 : }
1382 : }
1383 0 : if (!unknown_fields().empty()) {
1384 0 : total_size +=
1385 0 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1386 : unknown_fields());
1387 : }
1388 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1389 0 : _cached_size_ = total_size;
1390 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
1391 0 : return total_size;
1392 : }
1393 :
1394 0 : void StackFrame::MergeFrom(const ::google::protobuf::Message& from) {
1395 0 : GOOGLE_CHECK_NE(&from, this);
1396 : const StackFrame* source =
1397 : ::google::protobuf::internal::dynamic_cast_if_available<const StackFrame*>(
1398 0 : &from);
1399 0 : if (source == NULL) {
1400 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1401 : } else {
1402 0 : MergeFrom(*source);
1403 : }
1404 0 : }
1405 :
1406 0 : void StackFrame::MergeFrom(const StackFrame& from) {
1407 0 : GOOGLE_CHECK_NE(&from, this);
1408 0 : switch (from.StackFrameType_case()) {
1409 : case kData: {
1410 0 : mutable_data()->::mozilla::devtools::protobuf::StackFrame_Data::MergeFrom(from.data());
1411 0 : break;
1412 : }
1413 : case kRef: {
1414 0 : set_ref(from.ref());
1415 0 : break;
1416 : }
1417 : case STACKFRAMETYPE_NOT_SET: {
1418 0 : break;
1419 : }
1420 : }
1421 0 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1422 0 : }
1423 :
1424 0 : void StackFrame::CopyFrom(const ::google::protobuf::Message& from) {
1425 0 : if (&from == this) return;
1426 0 : Clear();
1427 0 : MergeFrom(from);
1428 : }
1429 :
1430 0 : void StackFrame::CopyFrom(const StackFrame& from) {
1431 0 : if (&from == this) return;
1432 0 : Clear();
1433 0 : MergeFrom(from);
1434 : }
1435 :
1436 0 : bool StackFrame::IsInitialized() const {
1437 :
1438 0 : return true;
1439 : }
1440 :
1441 0 : void StackFrame::Swap(StackFrame* other) {
1442 0 : if (other != this) {
1443 0 : std::swap(StackFrameType_, other->StackFrameType_);
1444 0 : std::swap(_oneof_case_[0], other->_oneof_case_[0]);
1445 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
1446 0 : _unknown_fields_.Swap(&other->_unknown_fields_);
1447 0 : std::swap(_cached_size_, other->_cached_size_);
1448 : }
1449 0 : }
1450 :
1451 0 : ::google::protobuf::Metadata StackFrame::GetMetadata() const {
1452 0 : protobuf_AssignDescriptorsOnce();
1453 : ::google::protobuf::Metadata metadata;
1454 0 : metadata.descriptor = StackFrame_descriptor_;
1455 0 : metadata.reflection = StackFrame_reflection_;
1456 0 : return metadata;
1457 : }
1458 :
1459 :
1460 : // ===================================================================
1461 :
1462 : #ifndef _MSC_VER
1463 : const int Node::kIdFieldNumber;
1464 : const int Node::kTypeNameFieldNumber;
1465 : const int Node::kTypeNameRefFieldNumber;
1466 : const int Node::kSizeFieldNumber;
1467 : const int Node::kEdgesFieldNumber;
1468 : const int Node::kAllocationStackFieldNumber;
1469 : const int Node::kJsObjectClassNameFieldNumber;
1470 : const int Node::kJsObjectClassNameRefFieldNumber;
1471 : const int Node::kCoarseTypeFieldNumber;
1472 : const int Node::kScriptFilenameFieldNumber;
1473 : const int Node::kScriptFilenameRefFieldNumber;
1474 : #endif // !_MSC_VER
1475 :
1476 3 : Node::Node()
1477 3 : : ::google::protobuf::Message() {
1478 3 : SharedCtor();
1479 : // @@protoc_insertion_point(constructor:mozilla.devtools.protobuf.Node)
1480 3 : }
1481 :
1482 3 : void Node::InitAsDefaultInstance() {
1483 3 : Node_default_oneof_instance_->typename__ = &::google::protobuf::internal::GetEmptyStringAlreadyInited();
1484 3 : Node_default_oneof_instance_->typenameref_ = GOOGLE_ULONGLONG(0);
1485 3 : allocationstack_ = const_cast< ::mozilla::devtools::protobuf::StackFrame*>(&::mozilla::devtools::protobuf::StackFrame::default_instance());
1486 3 : Node_default_oneof_instance_->jsobjectclassname_ = &::google::protobuf::internal::GetEmptyStringAlreadyInited();
1487 3 : Node_default_oneof_instance_->jsobjectclassnameref_ = GOOGLE_ULONGLONG(0);
1488 3 : Node_default_oneof_instance_->scriptfilename_ = &::google::protobuf::internal::GetEmptyStringAlreadyInited();
1489 3 : Node_default_oneof_instance_->scriptfilenameref_ = GOOGLE_ULONGLONG(0);
1490 3 : }
1491 :
1492 0 : Node::Node(const Node& from)
1493 0 : : ::google::protobuf::Message() {
1494 0 : SharedCtor();
1495 0 : MergeFrom(from);
1496 : // @@protoc_insertion_point(copy_constructor:mozilla.devtools.protobuf.Node)
1497 0 : }
1498 :
1499 3 : void Node::SharedCtor() {
1500 3 : ::google::protobuf::internal::GetEmptyString();
1501 3 : _cached_size_ = 0;
1502 3 : id_ = GOOGLE_ULONGLONG(0);
1503 3 : size_ = GOOGLE_ULONGLONG(0);
1504 3 : allocationstack_ = NULL;
1505 3 : coarsetype_ = 0u;
1506 3 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
1507 3 : clear_has_TypeNameOrRef();
1508 3 : clear_has_JSObjectClassNameOrRef();
1509 3 : clear_has_ScriptFilenameOrRef();
1510 3 : }
1511 :
1512 0 : Node::~Node() {
1513 : // @@protoc_insertion_point(destructor:mozilla.devtools.protobuf.Node)
1514 0 : SharedDtor();
1515 0 : }
1516 :
1517 0 : void Node::SharedDtor() {
1518 0 : if (has_TypeNameOrRef()) {
1519 0 : clear_TypeNameOrRef();
1520 : }
1521 0 : if (has_JSObjectClassNameOrRef()) {
1522 0 : clear_JSObjectClassNameOrRef();
1523 : }
1524 0 : if (has_ScriptFilenameOrRef()) {
1525 0 : clear_ScriptFilenameOrRef();
1526 : }
1527 0 : if (this != default_instance_) {
1528 0 : delete allocationstack_;
1529 : }
1530 0 : }
1531 :
1532 0 : void Node::SetCachedSize(int size) const {
1533 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1534 0 : _cached_size_ = size;
1535 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
1536 0 : }
1537 0 : const ::google::protobuf::Descriptor* Node::descriptor() {
1538 0 : protobuf_AssignDescriptorsOnce();
1539 0 : return Node_descriptor_;
1540 : }
1541 :
1542 0 : const Node& Node::default_instance() {
1543 0 : if (default_instance_ == NULL) protobuf_AddDesc_CoreDump_2eproto();
1544 0 : return *default_instance_;
1545 : }
1546 :
1547 : Node* Node::default_instance_ = NULL;
1548 :
1549 0 : Node* Node::New() const {
1550 0 : return new Node;
1551 : }
1552 :
1553 0 : void Node::clear_TypeNameOrRef() {
1554 0 : switch(TypeNameOrRef_case()) {
1555 : case kTypeName: {
1556 0 : delete TypeNameOrRef_.typename__;
1557 0 : break;
1558 : }
1559 : case kTypeNameRef: {
1560 : // No need to clear
1561 0 : break;
1562 : }
1563 : case TYPENAMEORREF_NOT_SET: {
1564 0 : break;
1565 : }
1566 : }
1567 0 : _oneof_case_[0] = TYPENAMEORREF_NOT_SET;
1568 0 : }
1569 :
1570 0 : void Node::clear_JSObjectClassNameOrRef() {
1571 0 : switch(JSObjectClassNameOrRef_case()) {
1572 : case kJsObjectClassName: {
1573 0 : delete JSObjectClassNameOrRef_.jsobjectclassname_;
1574 0 : break;
1575 : }
1576 : case kJsObjectClassNameRef: {
1577 : // No need to clear
1578 0 : break;
1579 : }
1580 : case JSOBJECTCLASSNAMEORREF_NOT_SET: {
1581 0 : break;
1582 : }
1583 : }
1584 0 : _oneof_case_[1] = JSOBJECTCLASSNAMEORREF_NOT_SET;
1585 0 : }
1586 :
1587 0 : void Node::clear_ScriptFilenameOrRef() {
1588 0 : switch(ScriptFilenameOrRef_case()) {
1589 : case kScriptFilename: {
1590 0 : delete ScriptFilenameOrRef_.scriptfilename_;
1591 0 : break;
1592 : }
1593 : case kScriptFilenameRef: {
1594 : // No need to clear
1595 0 : break;
1596 : }
1597 : case SCRIPTFILENAMEORREF_NOT_SET: {
1598 0 : break;
1599 : }
1600 : }
1601 0 : _oneof_case_[2] = SCRIPTFILENAMEORREF_NOT_SET;
1602 0 : }
1603 :
1604 :
1605 0 : void Node::Clear() {
1606 : #define OFFSET_OF_FIELD_(f) (reinterpret_cast<char*>( \
1607 : &reinterpret_cast<Node*>(16)->f) - \
1608 : reinterpret_cast<char*>(16))
1609 :
1610 : #define ZR_(first, last) do { \
1611 : size_t f = OFFSET_OF_FIELD_(first); \
1612 : size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \
1613 : ::memset(&first, 0, n); \
1614 : } while (0)
1615 :
1616 0 : if (_has_bits_[0 / 32] & 41) {
1617 0 : ZR_(id_, size_);
1618 0 : if (has_allocationstack()) {
1619 0 : if (allocationstack_ != NULL) allocationstack_->::mozilla::devtools::protobuf::StackFrame::Clear();
1620 : }
1621 : }
1622 0 : coarsetype_ = 0u;
1623 :
1624 : #undef OFFSET_OF_FIELD_
1625 : #undef ZR_
1626 :
1627 0 : edges_.Clear();
1628 0 : clear_TypeNameOrRef();
1629 0 : clear_JSObjectClassNameOrRef();
1630 0 : clear_ScriptFilenameOrRef();
1631 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
1632 0 : mutable_unknown_fields()->Clear();
1633 0 : }
1634 :
1635 0 : bool Node::MergePartialFromCodedStream(
1636 : ::google::protobuf::io::CodedInputStream* input) {
1637 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
1638 : ::google::protobuf::uint32 tag;
1639 : // @@protoc_insertion_point(parse_start:mozilla.devtools.protobuf.Node)
1640 : for (;;) {
1641 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
1642 0 : tag = p.first;
1643 0 : if (!p.second) goto handle_unusual;
1644 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1645 : // optional uint64 id = 1;
1646 : case 1: {
1647 0 : if (tag == 8) {
1648 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1649 : ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
1650 : input, &id_)));
1651 0 : set_has_id();
1652 : } else {
1653 0 : goto handle_unusual;
1654 : }
1655 0 : if (input->ExpectTag(18)) goto parse_typeName;
1656 0 : break;
1657 : }
1658 :
1659 : // optional bytes typeName = 2;
1660 : case 2: {
1661 0 : if (tag == 18) {
1662 : parse_typeName:
1663 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1664 : input, this->mutable_typename_()));
1665 : } else {
1666 0 : goto handle_unusual;
1667 : }
1668 0 : if (input->ExpectTag(24)) goto parse_typeNameRef;
1669 0 : break;
1670 : }
1671 :
1672 : // optional uint64 typeNameRef = 3;
1673 : case 3: {
1674 0 : if (tag == 24) {
1675 : parse_typeNameRef:
1676 0 : clear_TypeNameOrRef();
1677 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1678 : ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
1679 : input, &TypeNameOrRef_.typenameref_)));
1680 0 : set_has_typenameref();
1681 : } else {
1682 0 : goto handle_unusual;
1683 : }
1684 0 : if (input->ExpectTag(32)) goto parse_size;
1685 0 : break;
1686 : }
1687 :
1688 : // optional uint64 size = 4;
1689 : case 4: {
1690 0 : if (tag == 32) {
1691 : parse_size:
1692 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1693 : ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
1694 : input, &size_)));
1695 0 : set_has_size();
1696 : } else {
1697 0 : goto handle_unusual;
1698 : }
1699 0 : if (input->ExpectTag(42)) goto parse_edges;
1700 0 : break;
1701 : }
1702 :
1703 : // repeated .mozilla.devtools.protobuf.Edge edges = 5;
1704 : case 5: {
1705 0 : if (tag == 42) {
1706 : parse_edges:
1707 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1708 : input, add_edges()));
1709 : } else {
1710 0 : goto handle_unusual;
1711 : }
1712 0 : if (input->ExpectTag(42)) goto parse_edges;
1713 0 : if (input->ExpectTag(50)) goto parse_allocationStack;
1714 0 : break;
1715 : }
1716 :
1717 : // optional .mozilla.devtools.protobuf.StackFrame allocationStack = 6;
1718 : case 6: {
1719 0 : if (tag == 50) {
1720 : parse_allocationStack:
1721 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1722 : input, mutable_allocationstack()));
1723 : } else {
1724 0 : goto handle_unusual;
1725 : }
1726 0 : if (input->ExpectTag(58)) goto parse_jsObjectClassName;
1727 0 : break;
1728 : }
1729 :
1730 : // optional bytes jsObjectClassName = 7;
1731 : case 7: {
1732 0 : if (tag == 58) {
1733 : parse_jsObjectClassName:
1734 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1735 : input, this->mutable_jsobjectclassname()));
1736 : } else {
1737 0 : goto handle_unusual;
1738 : }
1739 0 : if (input->ExpectTag(64)) goto parse_jsObjectClassNameRef;
1740 0 : break;
1741 : }
1742 :
1743 : // optional uint64 jsObjectClassNameRef = 8;
1744 : case 8: {
1745 0 : if (tag == 64) {
1746 : parse_jsObjectClassNameRef:
1747 0 : clear_JSObjectClassNameOrRef();
1748 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1749 : ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
1750 : input, &JSObjectClassNameOrRef_.jsobjectclassnameref_)));
1751 0 : set_has_jsobjectclassnameref();
1752 : } else {
1753 0 : goto handle_unusual;
1754 : }
1755 0 : if (input->ExpectTag(72)) goto parse_coarseType;
1756 0 : break;
1757 : }
1758 :
1759 : // optional uint32 coarseType = 9 [default = 0];
1760 : case 9: {
1761 0 : if (tag == 72) {
1762 : parse_coarseType:
1763 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1764 : ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1765 : input, &coarsetype_)));
1766 0 : set_has_coarsetype();
1767 : } else {
1768 0 : goto handle_unusual;
1769 : }
1770 0 : if (input->ExpectTag(82)) goto parse_scriptFilename;
1771 0 : break;
1772 : }
1773 :
1774 : // optional bytes scriptFilename = 10;
1775 : case 10: {
1776 0 : if (tag == 82) {
1777 : parse_scriptFilename:
1778 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1779 : input, this->mutable_scriptfilename()));
1780 : } else {
1781 0 : goto handle_unusual;
1782 : }
1783 0 : if (input->ExpectTag(88)) goto parse_scriptFilenameRef;
1784 0 : break;
1785 : }
1786 :
1787 : // optional uint64 scriptFilenameRef = 11;
1788 : case 11: {
1789 0 : if (tag == 88) {
1790 : parse_scriptFilenameRef:
1791 0 : clear_ScriptFilenameOrRef();
1792 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1793 : ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
1794 : input, &ScriptFilenameOrRef_.scriptfilenameref_)));
1795 0 : set_has_scriptfilenameref();
1796 : } else {
1797 0 : goto handle_unusual;
1798 : }
1799 0 : if (input->ExpectAtEnd()) goto success;
1800 0 : break;
1801 : }
1802 :
1803 : default: {
1804 : handle_unusual:
1805 0 : if (tag == 0 ||
1806 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1807 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1808 0 : goto success;
1809 : }
1810 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
1811 : input, tag, mutable_unknown_fields()));
1812 0 : break;
1813 : }
1814 : }
1815 0 : }
1816 : success:
1817 : // @@protoc_insertion_point(parse_success:mozilla.devtools.protobuf.Node)
1818 0 : return true;
1819 : failure:
1820 : // @@protoc_insertion_point(parse_failure:mozilla.devtools.protobuf.Node)
1821 0 : return false;
1822 : #undef DO_
1823 : }
1824 :
1825 0 : void Node::SerializeWithCachedSizes(
1826 : ::google::protobuf::io::CodedOutputStream* output) const {
1827 : // @@protoc_insertion_point(serialize_start:mozilla.devtools.protobuf.Node)
1828 : // optional uint64 id = 1;
1829 0 : if (has_id()) {
1830 0 : ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->id(), output);
1831 : }
1832 :
1833 : // optional bytes typeName = 2;
1834 0 : if (has_typename_()) {
1835 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
1836 0 : 2, this->typename_(), output);
1837 : }
1838 :
1839 : // optional uint64 typeNameRef = 3;
1840 0 : if (has_typenameref()) {
1841 0 : ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->typenameref(), output);
1842 : }
1843 :
1844 : // optional uint64 size = 4;
1845 0 : if (has_size()) {
1846 0 : ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->size(), output);
1847 : }
1848 :
1849 : // repeated .mozilla.devtools.protobuf.Edge edges = 5;
1850 0 : for (int i = 0; i < this->edges_size(); i++) {
1851 0 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1852 0 : 5, this->edges(i), output);
1853 : }
1854 :
1855 : // optional .mozilla.devtools.protobuf.StackFrame allocationStack = 6;
1856 0 : if (has_allocationstack()) {
1857 0 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1858 0 : 6, this->allocationstack(), output);
1859 : }
1860 :
1861 : // optional bytes jsObjectClassName = 7;
1862 0 : if (has_jsobjectclassname()) {
1863 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
1864 0 : 7, this->jsobjectclassname(), output);
1865 : }
1866 :
1867 : // optional uint64 jsObjectClassNameRef = 8;
1868 0 : if (has_jsobjectclassnameref()) {
1869 0 : ::google::protobuf::internal::WireFormatLite::WriteUInt64(8, this->jsobjectclassnameref(), output);
1870 : }
1871 :
1872 : // optional uint32 coarseType = 9 [default = 0];
1873 0 : if (has_coarsetype()) {
1874 0 : ::google::protobuf::internal::WireFormatLite::WriteUInt32(9, this->coarsetype(), output);
1875 : }
1876 :
1877 : // optional bytes scriptFilename = 10;
1878 0 : if (has_scriptfilename()) {
1879 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
1880 0 : 10, this->scriptfilename(), output);
1881 : }
1882 :
1883 : // optional uint64 scriptFilenameRef = 11;
1884 0 : if (has_scriptfilenameref()) {
1885 0 : ::google::protobuf::internal::WireFormatLite::WriteUInt64(11, this->scriptfilenameref(), output);
1886 : }
1887 :
1888 0 : if (!unknown_fields().empty()) {
1889 0 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1890 0 : unknown_fields(), output);
1891 : }
1892 : // @@protoc_insertion_point(serialize_end:mozilla.devtools.protobuf.Node)
1893 0 : }
1894 :
1895 0 : ::google::protobuf::uint8* Node::SerializeWithCachedSizesToArray(
1896 : ::google::protobuf::uint8* target) const {
1897 : // @@protoc_insertion_point(serialize_to_array_start:mozilla.devtools.protobuf.Node)
1898 : // optional uint64 id = 1;
1899 0 : if (has_id()) {
1900 0 : target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->id(), target);
1901 : }
1902 :
1903 : // optional bytes typeName = 2;
1904 0 : if (has_typename_()) {
1905 : target =
1906 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
1907 0 : 2, this->typename_(), target);
1908 : }
1909 :
1910 : // optional uint64 typeNameRef = 3;
1911 0 : if (has_typenameref()) {
1912 0 : target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->typenameref(), target);
1913 : }
1914 :
1915 : // optional uint64 size = 4;
1916 0 : if (has_size()) {
1917 0 : target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->size(), target);
1918 : }
1919 :
1920 : // repeated .mozilla.devtools.protobuf.Edge edges = 5;
1921 0 : for (int i = 0; i < this->edges_size(); i++) {
1922 : target = ::google::protobuf::internal::WireFormatLite::
1923 0 : WriteMessageNoVirtualToArray(
1924 0 : 5, this->edges(i), target);
1925 : }
1926 :
1927 : // optional .mozilla.devtools.protobuf.StackFrame allocationStack = 6;
1928 0 : if (has_allocationstack()) {
1929 : target = ::google::protobuf::internal::WireFormatLite::
1930 0 : WriteMessageNoVirtualToArray(
1931 0 : 6, this->allocationstack(), target);
1932 : }
1933 :
1934 : // optional bytes jsObjectClassName = 7;
1935 0 : if (has_jsobjectclassname()) {
1936 : target =
1937 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
1938 0 : 7, this->jsobjectclassname(), target);
1939 : }
1940 :
1941 : // optional uint64 jsObjectClassNameRef = 8;
1942 0 : if (has_jsobjectclassnameref()) {
1943 0 : target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(8, this->jsobjectclassnameref(), target);
1944 : }
1945 :
1946 : // optional uint32 coarseType = 9 [default = 0];
1947 0 : if (has_coarsetype()) {
1948 0 : target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(9, this->coarsetype(), target);
1949 : }
1950 :
1951 : // optional bytes scriptFilename = 10;
1952 0 : if (has_scriptfilename()) {
1953 : target =
1954 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
1955 0 : 10, this->scriptfilename(), target);
1956 : }
1957 :
1958 : // optional uint64 scriptFilenameRef = 11;
1959 0 : if (has_scriptfilenameref()) {
1960 0 : target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(11, this->scriptfilenameref(), target);
1961 : }
1962 :
1963 0 : if (!unknown_fields().empty()) {
1964 0 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1965 0 : unknown_fields(), target);
1966 : }
1967 : // @@protoc_insertion_point(serialize_to_array_end:mozilla.devtools.protobuf.Node)
1968 0 : return target;
1969 : }
1970 :
1971 0 : int Node::ByteSize() const {
1972 0 : int total_size = 0;
1973 :
1974 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1975 : // optional uint64 id = 1;
1976 0 : if (has_id()) {
1977 0 : total_size += 1 +
1978 0 : ::google::protobuf::internal::WireFormatLite::UInt64Size(
1979 : this->id());
1980 : }
1981 :
1982 : // optional uint64 size = 4;
1983 0 : if (has_size()) {
1984 0 : total_size += 1 +
1985 0 : ::google::protobuf::internal::WireFormatLite::UInt64Size(
1986 : this->size());
1987 : }
1988 :
1989 : // optional .mozilla.devtools.protobuf.StackFrame allocationStack = 6;
1990 0 : if (has_allocationstack()) {
1991 0 : total_size += 1 +
1992 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1993 : this->allocationstack());
1994 : }
1995 :
1996 : }
1997 0 : if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
1998 : // optional uint32 coarseType = 9 [default = 0];
1999 0 : if (has_coarsetype()) {
2000 0 : total_size += 1 +
2001 0 : ::google::protobuf::internal::WireFormatLite::UInt32Size(
2002 : this->coarsetype());
2003 : }
2004 :
2005 : }
2006 : // repeated .mozilla.devtools.protobuf.Edge edges = 5;
2007 0 : total_size += 1 * this->edges_size();
2008 0 : for (int i = 0; i < this->edges_size(); i++) {
2009 0 : total_size +=
2010 0 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2011 : this->edges(i));
2012 : }
2013 :
2014 0 : switch (TypeNameOrRef_case()) {
2015 : // optional bytes typeName = 2;
2016 : case kTypeName: {
2017 0 : total_size += 1 +
2018 0 : ::google::protobuf::internal::WireFormatLite::BytesSize(
2019 : this->typename_());
2020 0 : break;
2021 : }
2022 : // optional uint64 typeNameRef = 3;
2023 : case kTypeNameRef: {
2024 0 : total_size += 1 +
2025 0 : ::google::protobuf::internal::WireFormatLite::UInt64Size(
2026 : this->typenameref());
2027 0 : break;
2028 : }
2029 : case TYPENAMEORREF_NOT_SET: {
2030 0 : break;
2031 : }
2032 : }
2033 0 : switch (JSObjectClassNameOrRef_case()) {
2034 : // optional bytes jsObjectClassName = 7;
2035 : case kJsObjectClassName: {
2036 0 : total_size += 1 +
2037 0 : ::google::protobuf::internal::WireFormatLite::BytesSize(
2038 : this->jsobjectclassname());
2039 0 : break;
2040 : }
2041 : // optional uint64 jsObjectClassNameRef = 8;
2042 : case kJsObjectClassNameRef: {
2043 0 : total_size += 1 +
2044 0 : ::google::protobuf::internal::WireFormatLite::UInt64Size(
2045 : this->jsobjectclassnameref());
2046 0 : break;
2047 : }
2048 : case JSOBJECTCLASSNAMEORREF_NOT_SET: {
2049 0 : break;
2050 : }
2051 : }
2052 0 : switch (ScriptFilenameOrRef_case()) {
2053 : // optional bytes scriptFilename = 10;
2054 : case kScriptFilename: {
2055 0 : total_size += 1 +
2056 0 : ::google::protobuf::internal::WireFormatLite::BytesSize(
2057 : this->scriptfilename());
2058 0 : break;
2059 : }
2060 : // optional uint64 scriptFilenameRef = 11;
2061 : case kScriptFilenameRef: {
2062 0 : total_size += 1 +
2063 0 : ::google::protobuf::internal::WireFormatLite::UInt64Size(
2064 : this->scriptfilenameref());
2065 0 : break;
2066 : }
2067 : case SCRIPTFILENAMEORREF_NOT_SET: {
2068 0 : break;
2069 : }
2070 : }
2071 0 : if (!unknown_fields().empty()) {
2072 0 : total_size +=
2073 0 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2074 : unknown_fields());
2075 : }
2076 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2077 0 : _cached_size_ = total_size;
2078 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
2079 0 : return total_size;
2080 : }
2081 :
2082 0 : void Node::MergeFrom(const ::google::protobuf::Message& from) {
2083 0 : GOOGLE_CHECK_NE(&from, this);
2084 : const Node* source =
2085 : ::google::protobuf::internal::dynamic_cast_if_available<const Node*>(
2086 0 : &from);
2087 0 : if (source == NULL) {
2088 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2089 : } else {
2090 0 : MergeFrom(*source);
2091 : }
2092 0 : }
2093 :
2094 0 : void Node::MergeFrom(const Node& from) {
2095 0 : GOOGLE_CHECK_NE(&from, this);
2096 0 : edges_.MergeFrom(from.edges_);
2097 0 : switch (from.TypeNameOrRef_case()) {
2098 : case kTypeName: {
2099 0 : set_typename_(from.typename_());
2100 0 : break;
2101 : }
2102 : case kTypeNameRef: {
2103 0 : set_typenameref(from.typenameref());
2104 0 : break;
2105 : }
2106 : case TYPENAMEORREF_NOT_SET: {
2107 0 : break;
2108 : }
2109 : }
2110 0 : switch (from.JSObjectClassNameOrRef_case()) {
2111 : case kJsObjectClassName: {
2112 0 : set_jsobjectclassname(from.jsobjectclassname());
2113 0 : break;
2114 : }
2115 : case kJsObjectClassNameRef: {
2116 0 : set_jsobjectclassnameref(from.jsobjectclassnameref());
2117 0 : break;
2118 : }
2119 : case JSOBJECTCLASSNAMEORREF_NOT_SET: {
2120 0 : break;
2121 : }
2122 : }
2123 0 : switch (from.ScriptFilenameOrRef_case()) {
2124 : case kScriptFilename: {
2125 0 : set_scriptfilename(from.scriptfilename());
2126 0 : break;
2127 : }
2128 : case kScriptFilenameRef: {
2129 0 : set_scriptfilenameref(from.scriptfilenameref());
2130 0 : break;
2131 : }
2132 : case SCRIPTFILENAMEORREF_NOT_SET: {
2133 0 : break;
2134 : }
2135 : }
2136 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2137 0 : if (from.has_id()) {
2138 0 : set_id(from.id());
2139 : }
2140 0 : if (from.has_size()) {
2141 0 : set_size(from.size());
2142 : }
2143 0 : if (from.has_allocationstack()) {
2144 0 : mutable_allocationstack()->::mozilla::devtools::protobuf::StackFrame::MergeFrom(from.allocationstack());
2145 : }
2146 : }
2147 0 : if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
2148 0 : if (from.has_coarsetype()) {
2149 0 : set_coarsetype(from.coarsetype());
2150 : }
2151 : }
2152 0 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
2153 0 : }
2154 :
2155 0 : void Node::CopyFrom(const ::google::protobuf::Message& from) {
2156 0 : if (&from == this) return;
2157 0 : Clear();
2158 0 : MergeFrom(from);
2159 : }
2160 :
2161 0 : void Node::CopyFrom(const Node& from) {
2162 0 : if (&from == this) return;
2163 0 : Clear();
2164 0 : MergeFrom(from);
2165 : }
2166 :
2167 0 : bool Node::IsInitialized() const {
2168 :
2169 0 : return true;
2170 : }
2171 :
2172 0 : void Node::Swap(Node* other) {
2173 0 : if (other != this) {
2174 0 : std::swap(id_, other->id_);
2175 0 : std::swap(size_, other->size_);
2176 0 : edges_.Swap(&other->edges_);
2177 0 : std::swap(allocationstack_, other->allocationstack_);
2178 0 : std::swap(coarsetype_, other->coarsetype_);
2179 0 : std::swap(TypeNameOrRef_, other->TypeNameOrRef_);
2180 0 : std::swap(_oneof_case_[0], other->_oneof_case_[0]);
2181 0 : std::swap(JSObjectClassNameOrRef_, other->JSObjectClassNameOrRef_);
2182 0 : std::swap(_oneof_case_[1], other->_oneof_case_[1]);
2183 0 : std::swap(ScriptFilenameOrRef_, other->ScriptFilenameOrRef_);
2184 0 : std::swap(_oneof_case_[2], other->_oneof_case_[2]);
2185 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
2186 0 : _unknown_fields_.Swap(&other->_unknown_fields_);
2187 0 : std::swap(_cached_size_, other->_cached_size_);
2188 : }
2189 0 : }
2190 :
2191 0 : ::google::protobuf::Metadata Node::GetMetadata() const {
2192 0 : protobuf_AssignDescriptorsOnce();
2193 : ::google::protobuf::Metadata metadata;
2194 0 : metadata.descriptor = Node_descriptor_;
2195 0 : metadata.reflection = Node_reflection_;
2196 0 : return metadata;
2197 : }
2198 :
2199 :
2200 : // ===================================================================
2201 :
2202 : #ifndef _MSC_VER
2203 : const int Edge::kReferentFieldNumber;
2204 : const int Edge::kNameFieldNumber;
2205 : const int Edge::kNameRefFieldNumber;
2206 : #endif // !_MSC_VER
2207 :
2208 3 : Edge::Edge()
2209 3 : : ::google::protobuf::Message() {
2210 3 : SharedCtor();
2211 : // @@protoc_insertion_point(constructor:mozilla.devtools.protobuf.Edge)
2212 3 : }
2213 :
2214 3 : void Edge::InitAsDefaultInstance() {
2215 3 : Edge_default_oneof_instance_->name_ = &::google::protobuf::internal::GetEmptyStringAlreadyInited();
2216 3 : Edge_default_oneof_instance_->nameref_ = GOOGLE_ULONGLONG(0);
2217 3 : }
2218 :
2219 0 : Edge::Edge(const Edge& from)
2220 0 : : ::google::protobuf::Message() {
2221 0 : SharedCtor();
2222 0 : MergeFrom(from);
2223 : // @@protoc_insertion_point(copy_constructor:mozilla.devtools.protobuf.Edge)
2224 0 : }
2225 :
2226 3 : void Edge::SharedCtor() {
2227 3 : ::google::protobuf::internal::GetEmptyString();
2228 3 : _cached_size_ = 0;
2229 3 : referent_ = GOOGLE_ULONGLONG(0);
2230 3 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
2231 3 : clear_has_EdgeNameOrRef();
2232 3 : }
2233 :
2234 0 : Edge::~Edge() {
2235 : // @@protoc_insertion_point(destructor:mozilla.devtools.protobuf.Edge)
2236 0 : SharedDtor();
2237 0 : }
2238 :
2239 0 : void Edge::SharedDtor() {
2240 0 : if (has_EdgeNameOrRef()) {
2241 0 : clear_EdgeNameOrRef();
2242 : }
2243 0 : if (this != default_instance_) {
2244 : }
2245 0 : }
2246 :
2247 0 : void Edge::SetCachedSize(int size) const {
2248 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2249 0 : _cached_size_ = size;
2250 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
2251 0 : }
2252 0 : const ::google::protobuf::Descriptor* Edge::descriptor() {
2253 0 : protobuf_AssignDescriptorsOnce();
2254 0 : return Edge_descriptor_;
2255 : }
2256 :
2257 0 : const Edge& Edge::default_instance() {
2258 0 : if (default_instance_ == NULL) protobuf_AddDesc_CoreDump_2eproto();
2259 0 : return *default_instance_;
2260 : }
2261 :
2262 : Edge* Edge::default_instance_ = NULL;
2263 :
2264 0 : Edge* Edge::New() const {
2265 0 : return new Edge;
2266 : }
2267 :
2268 0 : void Edge::clear_EdgeNameOrRef() {
2269 0 : switch(EdgeNameOrRef_case()) {
2270 : case kName: {
2271 0 : delete EdgeNameOrRef_.name_;
2272 0 : break;
2273 : }
2274 : case kNameRef: {
2275 : // No need to clear
2276 0 : break;
2277 : }
2278 : case EDGENAMEORREF_NOT_SET: {
2279 0 : break;
2280 : }
2281 : }
2282 0 : _oneof_case_[0] = EDGENAMEORREF_NOT_SET;
2283 0 : }
2284 :
2285 :
2286 0 : void Edge::Clear() {
2287 0 : referent_ = GOOGLE_ULONGLONG(0);
2288 0 : clear_EdgeNameOrRef();
2289 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
2290 0 : mutable_unknown_fields()->Clear();
2291 0 : }
2292 :
2293 0 : bool Edge::MergePartialFromCodedStream(
2294 : ::google::protobuf::io::CodedInputStream* input) {
2295 : #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
2296 : ::google::protobuf::uint32 tag;
2297 : // @@protoc_insertion_point(parse_start:mozilla.devtools.protobuf.Edge)
2298 : for (;;) {
2299 : ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
2300 0 : tag = p.first;
2301 0 : if (!p.second) goto handle_unusual;
2302 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2303 : // optional uint64 referent = 1;
2304 : case 1: {
2305 0 : if (tag == 8) {
2306 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2307 : ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
2308 : input, &referent_)));
2309 0 : set_has_referent();
2310 : } else {
2311 0 : goto handle_unusual;
2312 : }
2313 0 : if (input->ExpectTag(18)) goto parse_name;
2314 0 : break;
2315 : }
2316 :
2317 : // optional bytes name = 2;
2318 : case 2: {
2319 0 : if (tag == 18) {
2320 : parse_name:
2321 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2322 : input, this->mutable_name()));
2323 : } else {
2324 0 : goto handle_unusual;
2325 : }
2326 0 : if (input->ExpectTag(24)) goto parse_nameRef;
2327 0 : break;
2328 : }
2329 :
2330 : // optional uint64 nameRef = 3;
2331 : case 3: {
2332 0 : if (tag == 24) {
2333 : parse_nameRef:
2334 0 : clear_EdgeNameOrRef();
2335 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2336 : ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
2337 : input, &EdgeNameOrRef_.nameref_)));
2338 0 : set_has_nameref();
2339 : } else {
2340 0 : goto handle_unusual;
2341 : }
2342 0 : if (input->ExpectAtEnd()) goto success;
2343 0 : break;
2344 : }
2345 :
2346 : default: {
2347 : handle_unusual:
2348 0 : if (tag == 0 ||
2349 0 : ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2350 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2351 0 : goto success;
2352 : }
2353 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
2354 : input, tag, mutable_unknown_fields()));
2355 0 : break;
2356 : }
2357 : }
2358 0 : }
2359 : success:
2360 : // @@protoc_insertion_point(parse_success:mozilla.devtools.protobuf.Edge)
2361 0 : return true;
2362 : failure:
2363 : // @@protoc_insertion_point(parse_failure:mozilla.devtools.protobuf.Edge)
2364 0 : return false;
2365 : #undef DO_
2366 : }
2367 :
2368 0 : void Edge::SerializeWithCachedSizes(
2369 : ::google::protobuf::io::CodedOutputStream* output) const {
2370 : // @@protoc_insertion_point(serialize_start:mozilla.devtools.protobuf.Edge)
2371 : // optional uint64 referent = 1;
2372 0 : if (has_referent()) {
2373 0 : ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->referent(), output);
2374 : }
2375 :
2376 : // optional bytes name = 2;
2377 0 : if (has_name()) {
2378 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2379 0 : 2, this->name(), output);
2380 : }
2381 :
2382 : // optional uint64 nameRef = 3;
2383 0 : if (has_nameref()) {
2384 0 : ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->nameref(), output);
2385 : }
2386 :
2387 0 : if (!unknown_fields().empty()) {
2388 0 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2389 0 : unknown_fields(), output);
2390 : }
2391 : // @@protoc_insertion_point(serialize_end:mozilla.devtools.protobuf.Edge)
2392 0 : }
2393 :
2394 0 : ::google::protobuf::uint8* Edge::SerializeWithCachedSizesToArray(
2395 : ::google::protobuf::uint8* target) const {
2396 : // @@protoc_insertion_point(serialize_to_array_start:mozilla.devtools.protobuf.Edge)
2397 : // optional uint64 referent = 1;
2398 0 : if (has_referent()) {
2399 0 : target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->referent(), target);
2400 : }
2401 :
2402 : // optional bytes name = 2;
2403 0 : if (has_name()) {
2404 : target =
2405 0 : ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2406 0 : 2, this->name(), target);
2407 : }
2408 :
2409 : // optional uint64 nameRef = 3;
2410 0 : if (has_nameref()) {
2411 0 : target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->nameref(), target);
2412 : }
2413 :
2414 0 : if (!unknown_fields().empty()) {
2415 0 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2416 0 : unknown_fields(), target);
2417 : }
2418 : // @@protoc_insertion_point(serialize_to_array_end:mozilla.devtools.protobuf.Edge)
2419 0 : return target;
2420 : }
2421 :
2422 0 : int Edge::ByteSize() const {
2423 0 : int total_size = 0;
2424 :
2425 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2426 : // optional uint64 referent = 1;
2427 0 : if (has_referent()) {
2428 0 : total_size += 1 +
2429 0 : ::google::protobuf::internal::WireFormatLite::UInt64Size(
2430 : this->referent());
2431 : }
2432 :
2433 : }
2434 0 : switch (EdgeNameOrRef_case()) {
2435 : // optional bytes name = 2;
2436 : case kName: {
2437 0 : total_size += 1 +
2438 0 : ::google::protobuf::internal::WireFormatLite::BytesSize(
2439 : this->name());
2440 0 : break;
2441 : }
2442 : // optional uint64 nameRef = 3;
2443 : case kNameRef: {
2444 0 : total_size += 1 +
2445 0 : ::google::protobuf::internal::WireFormatLite::UInt64Size(
2446 : this->nameref());
2447 0 : break;
2448 : }
2449 : case EDGENAMEORREF_NOT_SET: {
2450 0 : break;
2451 : }
2452 : }
2453 0 : if (!unknown_fields().empty()) {
2454 0 : total_size +=
2455 0 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2456 : unknown_fields());
2457 : }
2458 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2459 0 : _cached_size_ = total_size;
2460 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
2461 0 : return total_size;
2462 : }
2463 :
2464 0 : void Edge::MergeFrom(const ::google::protobuf::Message& from) {
2465 0 : GOOGLE_CHECK_NE(&from, this);
2466 : const Edge* source =
2467 : ::google::protobuf::internal::dynamic_cast_if_available<const Edge*>(
2468 0 : &from);
2469 0 : if (source == NULL) {
2470 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2471 : } else {
2472 0 : MergeFrom(*source);
2473 : }
2474 0 : }
2475 :
2476 0 : void Edge::MergeFrom(const Edge& from) {
2477 0 : GOOGLE_CHECK_NE(&from, this);
2478 0 : switch (from.EdgeNameOrRef_case()) {
2479 : case kName: {
2480 0 : set_name(from.name());
2481 0 : break;
2482 : }
2483 : case kNameRef: {
2484 0 : set_nameref(from.nameref());
2485 0 : break;
2486 : }
2487 : case EDGENAMEORREF_NOT_SET: {
2488 0 : break;
2489 : }
2490 : }
2491 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2492 0 : if (from.has_referent()) {
2493 0 : set_referent(from.referent());
2494 : }
2495 : }
2496 0 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
2497 0 : }
2498 :
2499 0 : void Edge::CopyFrom(const ::google::protobuf::Message& from) {
2500 0 : if (&from == this) return;
2501 0 : Clear();
2502 0 : MergeFrom(from);
2503 : }
2504 :
2505 0 : void Edge::CopyFrom(const Edge& from) {
2506 0 : if (&from == this) return;
2507 0 : Clear();
2508 0 : MergeFrom(from);
2509 : }
2510 :
2511 0 : bool Edge::IsInitialized() const {
2512 :
2513 0 : return true;
2514 : }
2515 :
2516 0 : void Edge::Swap(Edge* other) {
2517 0 : if (other != this) {
2518 0 : std::swap(referent_, other->referent_);
2519 0 : std::swap(EdgeNameOrRef_, other->EdgeNameOrRef_);
2520 0 : std::swap(_oneof_case_[0], other->_oneof_case_[0]);
2521 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
2522 0 : _unknown_fields_.Swap(&other->_unknown_fields_);
2523 0 : std::swap(_cached_size_, other->_cached_size_);
2524 : }
2525 0 : }
2526 :
2527 0 : ::google::protobuf::Metadata Edge::GetMetadata() const {
2528 0 : protobuf_AssignDescriptorsOnce();
2529 : ::google::protobuf::Metadata metadata;
2530 0 : metadata.descriptor = Edge_descriptor_;
2531 0 : metadata.reflection = Edge_reflection_;
2532 0 : return metadata;
2533 : }
2534 :
2535 :
2536 : // @@protoc_insertion_point(namespace_scope)
2537 :
2538 : } // namespace protobuf
2539 : } // namespace devtools
2540 9 : } // namespace mozilla
2541 :
2542 : // @@protoc_insertion_point(global_scope)
|