Index: src/wasm/wasm-result.h |
diff --git a/src/wasm/wasm-result.h b/src/wasm/wasm-result.h |
index 9df4194ac5c2ba8e73ba6055d571ff1e326eb4fc..efe269a86828ee6b2b498c7ef8e2ed2b582f970a 100644 |
--- a/src/wasm/wasm-result.h |
+++ b/src/wasm/wasm-result.h |
@@ -22,7 +22,19 @@ |
// Error codes for programmatic checking of the decoder's verification. |
enum ErrorCode { |
kSuccess, |
- kError, // TODO(titzer): introduce real error codes |
+ kError, // TODO(titzer): remove me |
+ kOutOfMemory, // decoder ran out of memory |
+ kEndOfCode, // end of code reached prematurely |
+ kInvalidOpcode, // found invalid opcode |
+ kUnreachableCode, // found unreachable code |
+ kImproperContinue, // improperly nested continue |
+ kImproperBreak, // improperly nested break |
+ kReturnCount, // return count mismatch |
+ kTypeError, // type mismatch |
+ kInvalidLocalIndex, // invalid local |
+ kInvalidGlobalIndex, // invalid global |
+ kInvalidFunctionIndex, // invalid function |
+ kInvalidMemType // invalid memory type |
}; |
// The overall result of decoding a function or a module. |