From cdab4ef130626958790cb2601209f14d192fa10a Mon Sep 17 00:00:00 2001 From: Heejin Ahn Date: Sun, 14 Jul 2019 15:25:16 -0700 Subject: Rename except_ref type to exnref (#2224) In WebAssembly/exception-handling#79 we agreed to rename `except_ref` type to `exnref`. --- src/wasm/literal.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/wasm/literal.cpp') diff --git a/src/wasm/literal.cpp b/src/wasm/literal.cpp index 48b58c3ca..68268d366 100644 --- a/src/wasm/literal.cpp +++ b/src/wasm/literal.cpp @@ -137,7 +137,7 @@ void Literal::getBits(uint8_t (&buf)[16]) const { case Type::v128: memcpy(buf, &v128, sizeof(v128)); break; - case Type::except_ref: // except_ref type is opaque + case Type::exnref: // exnref type is opaque case Type::none: case Type::unreachable: WASM_UNREACHABLE(); @@ -272,7 +272,7 @@ std::ostream& operator<<(std::ostream& o, Literal literal) { o << "i32x4 "; literal.printVec128(o, literal.getv128()); break; - case Type::except_ref: // except_ref type is opaque + case Type::exnref: // exnref type is opaque case Type::unreachable: WASM_UNREACHABLE(); } @@ -475,7 +475,7 @@ Literal Literal::eqz() const { case Type::f64: return eq(Literal(double(0))); case Type::v128: - case Type::except_ref: + case Type::exnref: case Type::none: case Type::unreachable: WASM_UNREACHABLE(); @@ -494,7 +494,7 @@ Literal Literal::neg() const { case Type::f64: return Literal(int64_t(i64 ^ 0x8000000000000000ULL)).castToF64(); case Type::v128: - case Type::except_ref: + case Type::exnref: case Type::none: case Type::unreachable: WASM_UNREACHABLE(); @@ -513,7 +513,7 @@ Literal Literal::abs() const { case Type::f64: return Literal(int64_t(i64 & 0x7fffffffffffffffULL)).castToF64(); case Type::v128: - case Type::except_ref: + case Type::exnref: case Type::none: case Type::unreachable: WASM_UNREACHABLE(); @@ -615,7 +615,7 @@ Literal Literal::add(const Literal& other) const { case Type::f64: return Literal(getf64() + other.getf64()); case Type::v128: - case Type::except_ref: + case Type::exnref: case Type::none: case Type::unreachable: WASM_UNREACHABLE(); @@ -634,7 +634,7 @@ Literal Literal::sub(const Literal& other) const { case Type::f64: return Literal(getf64() - other.getf64()); case Type::v128: - case Type::except_ref: + case Type::exnref: case Type::none: case Type::unreachable: WASM_UNREACHABLE(); @@ -724,7 +724,7 @@ Literal Literal::mul(const Literal& other) const { case Type::f64: return Literal(getf64() * other.getf64()); case Type::v128: - case Type::except_ref: + case Type::exnref: case Type::none: case Type::unreachable: WASM_UNREACHABLE(); @@ -942,7 +942,7 @@ Literal Literal::eq(const Literal& other) const { case Type::f64: return Literal(getf64() == other.getf64()); case Type::v128: - case Type::except_ref: + case Type::exnref: case Type::none: case Type::unreachable: WASM_UNREACHABLE(); @@ -961,7 +961,7 @@ Literal Literal::ne(const Literal& other) const { case Type::f64: return Literal(getf64() != other.getf64()); case Type::v128: - case Type::except_ref: + case Type::exnref: case Type::none: case Type::unreachable: WASM_UNREACHABLE(); -- cgit v1.2.3