summaryrefslogtreecommitdiff
path: root/deps/v8/src/wasm/decoder.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/wasm/decoder.h')
-rw-r--r--deps/v8/src/wasm/decoder.h23
1 files changed, 1 insertions, 22 deletions
diff --git a/deps/v8/src/wasm/decoder.h b/deps/v8/src/wasm/decoder.h
index 3dd9aff9c6..74955f9ede 100644
--- a/deps/v8/src/wasm/decoder.h
+++ b/deps/v8/src/wasm/decoder.h
@@ -56,7 +56,7 @@ class Decoder {
DCHECK_EQ(static_cast<uint32_t>(end - start), end - start);
}
- virtual ~Decoder() {}
+ virtual ~Decoder() = default;
inline bool validate_size(const byte* pc, uint32_t length, const char* msg) {
DCHECK_LE(start_, pc);
@@ -375,27 +375,6 @@ class Decoder {
}
};
-// Reference to a string in the wire bytes.
-class WireBytesRef {
- public:
- WireBytesRef() : WireBytesRef(0, 0) {}
- WireBytesRef(uint32_t offset, uint32_t length)
- : offset_(offset), length_(length) {
- DCHECK_IMPLIES(offset_ == 0, length_ == 0);
- DCHECK_LE(offset_, offset_ + length_); // no uint32_t overflow.
- }
-
- uint32_t offset() const { return offset_; }
- uint32_t length() const { return length_; }
- uint32_t end_offset() const { return offset_ + length_; }
- bool is_empty() const { return length_ == 0; }
- bool is_set() const { return offset_ != 0; }
-
- private:
- uint32_t offset_;
- uint32_t length_;
-};
-
#undef TRACE
} // namespace wasm
} // namespace internal