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

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

Issue 2147403002: V8. ASM-2-WASM. Fixes issue 628446. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « no previous file | src/asmjs/asm-typer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/asmjs/asm-typer.h
diff --git a/src/asmjs/asm-typer.h b/src/asmjs/asm-typer.h
index 96b4fb1dac6a8dca32ec8baf08cf3f554ca5eb35..fe939434406be212cb8b3b4c1fb79c10b4c391f9 100644
--- a/src/asmjs/asm-typer.h
+++ b/src/asmjs/asm-typer.h
@@ -85,7 +85,6 @@ class AsmTyper final {
kImmutableGlobal,
};
- VariableInfo() = default;
explicit VariableInfo(AsmType* t) : type_(t) {}
VariableInfo* Clone(Zone* zone) const;
@@ -120,8 +119,11 @@ class AsmTyper final {
VariableProxy* first_forward_use() const { return first_forward_use_; }
+ static VariableInfo* ForSpecialSymbol(Zone* zone,
+ StandardMember standard_member);
+
private:
- AsmType* type_ = AsmType::None();
+ AsmType* type_;
StandardMember standard_member_ = kNone;
Mutability mutability_ = kInvalidMutability;
// missing_definition_ is set to true for forward definition - i.e., use
@@ -303,7 +305,7 @@ class AsmTyper final {
// The ASM module name. This member is used to prevent globals from redefining
// the module name.
- VariableInfo module_info_;
+ VariableInfo* module_info_;
Handle<String> module_name_;
// 3 Environments
@@ -315,6 +317,7 @@ class AsmTyper final {
ZoneMap<AstNode*, AsmType*> node_types_;
static const int kErrorMessageLimit = 100;
AsmType* fround_type_;
+ AsmType* ffi_type_;
char error_message_[kErrorMessageLimit];
DISALLOW_IMPLICIT_CONSTRUCTORS(AsmTyper);
« no previous file with comments | « no previous file | src/asmjs/asm-typer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698