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

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

Issue 2771183002: [wasm][asm.js] Fix and enable several asm.js tests with the new parser. (Closed)
Patch Set: fix one more item Created 3 years, 9 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-parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/asmjs/asm-parser.h
diff --git a/src/asmjs/asm-parser.h b/src/asmjs/asm-parser.h
index 86aec71636945215fdd008e2c45ad5281b1b97de..ad836b26ff1f3cec9ccf9cd8b42b6e64d86f089f 100644
--- a/src/asmjs/asm-parser.h
+++ b/src/asmjs/asm-parser.h
@@ -59,7 +59,8 @@ class AsmJsParser {
// clang-format on
struct FunctionImportInfo {
- std::string name;
+ char* function_name;
+ size_t function_name_size;
SignatureMap cache;
std::vector<uint32_t> cache_index;
};
@@ -80,7 +81,8 @@ class AsmJsParser {
};
struct GlobalImport {
- std::string import_name;
+ char* import_name;
+ size_t import_name_size;
uint32_t import_index;
uint32_t global_index;
bool needs_init;
@@ -248,7 +250,7 @@ class AsmJsParser {
bool ValidateModuleVarImport(VarInfo* info, bool mutable_variable);
void ValidateModuleVarStdlib(VarInfo* info);
void ValidateModuleVarNewStdlib(VarInfo* info);
- void ValidateModuleVarFloat(VarInfo* info, bool mutable_variable);
+ void ValidateModuleVarFromGlobal(VarInfo* info, bool mutable_variable);
void ValidateExport(); // 6.2 ValidateExport
void ValidateFunctionTable(); // 6.3 ValidateFunctionTable
« no previous file with comments | « no previous file | src/asmjs/asm-parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698