Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Unified Diff: src/asmjs/asm-typer.h

Issue 2251433002: [wasm] asm.js - Check stdlib.NaN is valid, prepare for the rest. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
};

Powered by Google App Engine
This is Rietveld 408576698