summaryrefslogtreecommitdiff
path: root/src/wasm/literal.cpp
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2019-07-14 15:25:16 -0700
committerGitHub <noreply@github.com>2019-07-14 15:25:16 -0700
commitcdab4ef130626958790cb2601209f14d192fa10a (patch)
tree420e95f5effa60a9fd0742ffd4f45735e2975ed8 /src/wasm/literal.cpp
parent8d13b5a9c59b5b215583568ddd117a626cc8f59f (diff)
downloadbinaryen-cdab4ef130626958790cb2601209f14d192fa10a.tar.gz
binaryen-cdab4ef130626958790cb2601209f14d192fa10a.tar.bz2
binaryen-cdab4ef130626958790cb2601209f14d192fa10a.zip
Rename except_ref type to exnref (#2224)
In WebAssembly/exception-handling#79 we agreed to rename `except_ref` type to `exnref`.
Diffstat (limited to 'src/wasm/literal.cpp')
-rw-r--r--src/wasm/literal.cpp20
1 files changed, 10 insertions, 10 deletions
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();