From 39411ccd87b44abef98ec34b21d4c5cee41eb4f9 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Sat, 15 Dec 2018 08:12:46 -0800 Subject: Consistent spacing around the namespace keyword (#1829) --- src/ir/ExpressionAnalyzer.cpp | 2 ++ src/support/safe_integer.h | 2 ++ src/wasm-js.cpp | 2 ++ 3 files changed, 6 insertions(+) (limited to 'src') diff --git a/src/ir/ExpressionAnalyzer.cpp b/src/ir/ExpressionAnalyzer.cpp index 7248691a9..6b553c909 100644 --- a/src/ir/ExpressionAnalyzer.cpp +++ b/src/ir/ExpressionAnalyzer.cpp @@ -19,6 +19,7 @@ #include "ir/load-utils.h" namespace wasm { + // Given a stack of expressions, checks if the topmost is used as a result. // For example, if the parent is a block and the node is before the last position, // it is not used. @@ -616,4 +617,5 @@ HashType ExpressionAnalyzer::hash(Expression* curr) { } return digest; } + } // namespace wasm diff --git a/src/support/safe_integer.h b/src/support/safe_integer.h index ea5e16425..5bd807a18 100644 --- a/src/support/safe_integer.h +++ b/src/support/safe_integer.h @@ -20,6 +20,7 @@ #include namespace wasm { + bool isInteger(double x); bool isUInteger32(double x); bool isSInteger32(double x); @@ -39,6 +40,7 @@ bool isInRangeI32TruncS(int64_t i); bool isInRangeI32TruncU(int64_t i); bool isInRangeI64TruncS(int64_t i); bool isInRangeI64TruncU(int64_t i); + } // namespace wasm #endif // wasm_safe_integer_h diff --git a/src/wasm-js.cpp b/src/wasm-js.cpp index a6e751dcc..0ea00d9f9 100644 --- a/src/wasm-js.cpp +++ b/src/wasm-js.cpp @@ -34,7 +34,9 @@ using namespace cashew; using namespace wasm; namespace wasm { + int debug = 0; + } // global singletons -- cgit v1.2.3