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

Unified Diff: src/wasm/asm-types.h

Issue 2071343003: V8. ASM-2-WASM. Validator V2. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: tests function tables and module exports. Created 4 years, 6 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/wasm/asm-types.h
diff --git a/src/wasm/asm-types.h b/src/wasm/asm-types.h
index a102fc856ff6061c5ada57c6c5dd59cacb666980..b973abfec5de6c19a93c39784c6cede5c70fe8f0 100644
--- a/src/wasm/asm-types.h
+++ b/src/wasm/asm-types.h
@@ -132,6 +132,9 @@ class AsmFunctionType : public AsmCallableType {
virtual bool IsMinMaxType() const { return false; }
virtual bool IsFroundType() const { return false; }
+ AsmType* ValidateCall(AsmType* return_type,
+ const ZoneVector<AsmType*>& args) override;
+
protected:
AsmFunctionType(Zone* zone, AsmType* return_type)
: return_type_(return_type), args_(zone) {}
@@ -140,8 +143,6 @@ class AsmFunctionType : public AsmCallableType {
friend AsmType;
std::string Name() override;
- AsmType* ValidateCall(AsmType* return_type,
- const ZoneVector<AsmType*>& args) override;
AsmType* return_type_;
ZoneVector<AsmType*> args_;
@@ -197,6 +198,7 @@ class AsmFunctionTableType : public AsmCallableType {
const ZoneVector<AsmType*>& args) override;
size_t length() const { return length_; }
+ AsmType* signature() { return signature_; }
private:
friend class AsmType;

Powered by Google App Engine
This is Rietveld 408576698