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

Unified Diff: src/wasm/signature-map.h

Issue 2424623002: [wasm] Use a Managed<WasmModule> to hold metadata about modules. (Closed)
Patch Set: Review comments Created 4 years, 2 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/signature-map.h
diff --git a/src/wasm/signature-map.h b/src/wasm/signature-map.h
index 28c9fd63edee258f5531ba3649f18dd90e48109c..ea784246f299bcc3f22199d7235b548d6f114844 100644
--- a/src/wasm/signature-map.h
+++ b/src/wasm/signature-map.h
@@ -25,6 +25,9 @@ class SignatureMap {
// Gets the index for a signature, returning {-1} if not found.
int32_t Find(FunctionSig* sig) const;
+ // Compares two signatures for equality.
rossberg 2016/10/19 09:19:15 Shouldn't this better be a method of Signature?
+ static bool Equal(FunctionSig* a, FunctionSig* b);
Mircea Trofin 2016/10/19 05:28:55 Did you mean "Equals" (or maybe "Is" or "AreEqual"
+
private:
// TODO(wasm): use a hashmap instead of an ordered map?
struct CompareFunctionSigs {

Powered by Google App Engine
This is Rietveld 408576698