Bug 1411450 - Switch devtools CoreDump.proto to the LITE_RUNTIME. r=fitzgen

The "lite" runtime allows us to pull in a lot less of the protocol
buffers library:

https://developers.google.com/protocol-buffers/docs/proto#options

MozReview-Commit-ID: 2m41fqa9j09

--HG--
extra : rebase_source : 06fca11cba46ec20b58a33eef97df4157902725c
This commit is contained in:
Francois Marier 2017-10-26 16:12:51 -07:00
Родитель a655304bb6
Коммит b591fa63a6
3 изменённых файлов: 150 добавлений и 689 удалений

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -24,11 +24,10 @@
#include <google/protobuf/arenastring.h>
#include <google/protobuf/generated_message_table_driven.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/metadata.h>
#include <google/protobuf/message.h>
#include <google/protobuf/metadata_lite.h>
#include <google/protobuf/message_lite.h>
#include <google/protobuf/repeated_field.h> // IWYU pragma: export
#include <google/protobuf/extension_set.h> // IWYU pragma: export
#include <google/protobuf/unknown_field_set.h>
// @@protoc_insertion_point(includes)
namespace mozilla {
namespace devtools {
@ -73,7 +72,7 @@ void InitDefaults();
// ===================================================================
class Metadata : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mozilla.devtools.protobuf.Metadata) */ {
class Metadata : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.devtools.protobuf.Metadata) */ {
public:
Metadata();
virtual ~Metadata();
@ -99,14 +98,13 @@ class Metadata : public ::google::protobuf::Message /* @@protoc_insertion_point(
return *this;
}
#endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
inline const ::std::string& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
inline ::std::string* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const Metadata& default_instance();
static inline const Metadata* internal_default_instance() {
@ -126,8 +124,8 @@ class Metadata : public ::google::protobuf::Message /* @@protoc_insertion_point(
inline Metadata* New() const PROTOBUF_FINAL { return New(NULL); }
Metadata* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
PROTOBUF_FINAL;
void CopyFrom(const Metadata& from);
void MergeFrom(const Metadata& from);
void Clear() PROTOBUF_FINAL;
@ -138,13 +136,12 @@ class Metadata : public ::google::protobuf::Message /* @@protoc_insertion_point(
::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
void DiscardUnknownFields();
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const PROTOBUF_FINAL;
void SetCachedSize(int size) const;
void InternalSwap(Metadata* other);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
@ -155,7 +152,7 @@ class Metadata : public ::google::protobuf::Message /* @@protoc_insertion_point(
}
public:
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
::std::string GetTypeName() const PROTOBUF_FINAL;
// nested types ----------------------------------------------------
@ -173,7 +170,7 @@ class Metadata : public ::google::protobuf::Message /* @@protoc_insertion_point(
void set_has_timestamp();
void clear_has_timestamp();
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable int _cached_size_;
::google::protobuf::uint64 timestamp_;
@ -181,7 +178,7 @@ class Metadata : public ::google::protobuf::Message /* @@protoc_insertion_point(
};
// -------------------------------------------------------------------
class StackFrame_Data : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mozilla.devtools.protobuf.StackFrame.Data) */ {
class StackFrame_Data : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.devtools.protobuf.StackFrame.Data) */ {
public:
StackFrame_Data();
virtual ~StackFrame_Data();
@ -207,14 +204,13 @@ class StackFrame_Data : public ::google::protobuf::Message /* @@protoc_insertion
return *this;
}
#endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
inline const ::std::string& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
inline ::std::string* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const StackFrame_Data& default_instance();
enum SourceOrRefCase {
@ -246,8 +242,8 @@ class StackFrame_Data : public ::google::protobuf::Message /* @@protoc_insertion
inline StackFrame_Data* New() const PROTOBUF_FINAL { return New(NULL); }
StackFrame_Data* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
PROTOBUF_FINAL;
void CopyFrom(const StackFrame_Data& from);
void MergeFrom(const StackFrame_Data& from);
void Clear() PROTOBUF_FINAL;
@ -258,13 +254,12 @@ class StackFrame_Data : public ::google::protobuf::Message /* @@protoc_insertion
::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
void DiscardUnknownFields();
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const PROTOBUF_FINAL;
void SetCachedSize(int size) const;
void InternalSwap(StackFrame_Data* other);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
@ -275,7 +270,7 @@ class StackFrame_Data : public ::google::protobuf::Message /* @@protoc_insertion
}
public:
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
::std::string GetTypeName() const PROTOBUF_FINAL;
// nested types ----------------------------------------------------
@ -398,7 +393,7 @@ class StackFrame_Data : public ::google::protobuf::Message /* @@protoc_insertion
void clear_FunctionDisplayNameOrRef();
inline void clear_has_FunctionDisplayNameOrRef();
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable int _cached_size_;
::mozilla::devtools::protobuf::StackFrame* parent_;
@ -423,7 +418,7 @@ class StackFrame_Data : public ::google::protobuf::Message /* @@protoc_insertion
};
// -------------------------------------------------------------------
class StackFrame : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mozilla.devtools.protobuf.StackFrame) */ {
class StackFrame : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.devtools.protobuf.StackFrame) */ {
public:
StackFrame();
virtual ~StackFrame();
@ -449,14 +444,13 @@ class StackFrame : public ::google::protobuf::Message /* @@protoc_insertion_poin
return *this;
}
#endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
inline const ::std::string& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
inline ::std::string* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const StackFrame& default_instance();
enum StackFrameTypeCase {
@ -482,8 +476,8 @@ class StackFrame : public ::google::protobuf::Message /* @@protoc_insertion_poin
inline StackFrame* New() const PROTOBUF_FINAL { return New(NULL); }
StackFrame* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
PROTOBUF_FINAL;
void CopyFrom(const StackFrame& from);
void MergeFrom(const StackFrame& from);
void Clear() PROTOBUF_FINAL;
@ -494,13 +488,12 @@ class StackFrame : public ::google::protobuf::Message /* @@protoc_insertion_poin
::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
void DiscardUnknownFields();
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const PROTOBUF_FINAL;
void SetCachedSize(int size) const;
void InternalSwap(StackFrame* other);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
@ -511,7 +504,7 @@ class StackFrame : public ::google::protobuf::Message /* @@protoc_insertion_poin
}
public:
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
::std::string GetTypeName() const PROTOBUF_FINAL;
// nested types ----------------------------------------------------
@ -545,7 +538,7 @@ class StackFrame : public ::google::protobuf::Message /* @@protoc_insertion_poin
void clear_StackFrameType();
inline void clear_has_StackFrameType();
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable int _cached_size_;
union StackFrameTypeUnion {
@ -559,7 +552,7 @@ class StackFrame : public ::google::protobuf::Message /* @@protoc_insertion_poin
};
// -------------------------------------------------------------------
class Node : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mozilla.devtools.protobuf.Node) */ {
class Node : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.devtools.protobuf.Node) */ {
public:
Node();
virtual ~Node();
@ -585,14 +578,13 @@ class Node : public ::google::protobuf::Message /* @@protoc_insertion_point(clas
return *this;
}
#endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
inline const ::std::string& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
inline ::std::string* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const Node& default_instance();
enum TypeNameOrRefCase {
@ -630,8 +622,8 @@ class Node : public ::google::protobuf::Message /* @@protoc_insertion_point(clas
inline Node* New() const PROTOBUF_FINAL { return New(NULL); }
Node* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
PROTOBUF_FINAL;
void CopyFrom(const Node& from);
void MergeFrom(const Node& from);
void Clear() PROTOBUF_FINAL;
@ -642,13 +634,12 @@ class Node : public ::google::protobuf::Message /* @@protoc_insertion_point(clas
::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
void DiscardUnknownFields();
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const PROTOBUF_FINAL;
void SetCachedSize(int size) const;
void InternalSwap(Node* other);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
@ -659,7 +650,7 @@ class Node : public ::google::protobuf::Message /* @@protoc_insertion_point(clas
}
public:
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
::std::string GetTypeName() const PROTOBUF_FINAL;
// nested types ----------------------------------------------------
@ -805,7 +796,7 @@ class Node : public ::google::protobuf::Message /* @@protoc_insertion_point(clas
void clear_ScriptFilenameOrRef();
inline void clear_has_ScriptFilenameOrRef();
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable int _cached_size_;
::google::protobuf::RepeatedPtrField< ::mozilla::devtools::protobuf::Edge > edges_;
@ -834,7 +825,7 @@ class Node : public ::google::protobuf::Message /* @@protoc_insertion_point(clas
};
// -------------------------------------------------------------------
class Edge : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:mozilla.devtools.protobuf.Edge) */ {
class Edge : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:mozilla.devtools.protobuf.Edge) */ {
public:
Edge();
virtual ~Edge();
@ -860,14 +851,13 @@ class Edge : public ::google::protobuf::Message /* @@protoc_insertion_point(clas
return *this;
}
#endif
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
inline const ::std::string& unknown_fields() const {
return _internal_metadata_.unknown_fields();
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
inline ::std::string* mutable_unknown_fields() {
return _internal_metadata_.mutable_unknown_fields();
}
static const ::google::protobuf::Descriptor* descriptor();
static const Edge& default_instance();
enum EdgeNameOrRefCase {
@ -893,8 +883,8 @@ class Edge : public ::google::protobuf::Message /* @@protoc_insertion_point(clas
inline Edge* New() const PROTOBUF_FINAL { return New(NULL); }
Edge* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
PROTOBUF_FINAL;
void CopyFrom(const Edge& from);
void MergeFrom(const Edge& from);
void Clear() PROTOBUF_FINAL;
@ -905,13 +895,12 @@ class Edge : public ::google::protobuf::Message /* @@protoc_insertion_point(clas
::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
void DiscardUnknownFields();
int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const PROTOBUF_FINAL;
void SetCachedSize(int size) const;
void InternalSwap(Edge* other);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
@ -922,7 +911,7 @@ class Edge : public ::google::protobuf::Message /* @@protoc_insertion_point(clas
}
public:
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
::std::string GetTypeName() const PROTOBUF_FINAL;
// nested types ----------------------------------------------------
@ -969,7 +958,7 @@ class Edge : public ::google::protobuf::Message /* @@protoc_insertion_point(clas
void clear_EdgeNameOrRef();
inline void clear_has_EdgeNameOrRef();
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable int _cached_size_;
::google::protobuf::uint64 referent_;

Просмотреть файл

@ -57,6 +57,9 @@
// inline a messsage within another message and the child message must be
// referenced by pointer. This leads to extra mallocs that we wish to avoid.
syntax = "proto2";
option optimize_for = LITE_RUNTIME;
package mozilla.devtools.protobuf;