CoreDump.pb.cc 79 KB

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