Index: src/asmjs/asm-typer.h |
diff --git a/src/asmjs/asm-typer.h b/src/asmjs/asm-typer.h |
index 391c157fb3b8c372c4dbdcb93ba5044cb7d0025e..6b9c70cf00357963d115043a8218a3fbba0aed9a 100644 |
--- a/src/asmjs/asm-typer.h |
+++ b/src/asmjs/asm-typer.h |
@@ -7,6 +7,7 @@ |
#include <cstdint> |
#include <string> |
+#include <unordered_set> |
#include "src/allocation.h" |
#include "src/asmjs/asm-types.h" |
@@ -74,6 +75,10 @@ class AsmTyper final { |
AsmType* TypeOf(AstNode* node) const; |
StandardMember VariableAsStandardMember(Variable* var); |
+ typedef std::unordered_set<StandardMember, std::hash<int> > StdlibSet; |
+ |
+ StdlibSet StdlibUses() const { return stdlib_uses_; } |
+ |
private: |
friend class v8::internal::wasm::AsmTyperHarnessBuilder; |
@@ -320,6 +325,7 @@ class AsmTyper final { |
AsmType* fround_type_; |
AsmType* ffi_type_; |
char error_message_[kErrorMessageLimit]; |
+ StdlibSet stdlib_uses_; |
DISALLOW_IMPLICIT_CONSTRUCTORS(AsmTyper); |
}; |