Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Unified Diff: src/wasm/ast-decoder.cc

Issue 2111433003: [wasm] Remove some dead methods from AST decoder. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/wasm/ast-decoder.cc
diff --git a/src/wasm/ast-decoder.cc b/src/wasm/ast-decoder.cc
index a1416a97fea0fbf7908bc1c54a0236a50c5e5442..848430288bd402e2006fcb888727fed25abe55aa 100644
--- a/src/wasm/ast-decoder.cc
+++ b/src/wasm/ast-decoder.cc
@@ -109,30 +109,6 @@ class WasmDecoder : public Decoder {
size_t total_locals_;
ZoneVector<LocalType>* local_types_;
- byte ByteOperand(const byte* pc, const char* msg = "missing 1-byte operand") {
- if ((pc + sizeof(byte)) >= limit_) {
- error(pc, msg);
- return 0;
- }
- return pc[1];
- }
-
- uint32_t Uint32Operand(const byte* pc) {
- if ((pc + sizeof(uint32_t)) >= limit_) {
- error(pc, "missing 4-byte operand");
- return 0;
- }
- return read_u32(pc + 1);
- }
-
- uint64_t Uint64Operand(const byte* pc) {
- if ((pc + sizeof(uint64_t)) >= limit_) {
- error(pc, "missing 8-byte operand");
- return 0;
- }
- return read_u64(pc + 1);
- }
-
inline bool Validate(const byte* pc, LocalIndexOperand& operand) {
if (operand.index < total_locals_) {
if (local_types_) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698