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

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

Issue 2981883002: [wasm] More extensive indirect dispatch signature mismatch tests. (Closed)
Patch Set: Shorter constructor Created 3 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/wasm/signature-map.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/wasm/signature-map.h
diff --git a/src/wasm/signature-map.h b/src/wasm/signature-map.h
index cadc9485a9014a64391813beda22753e199d5089..0b7ddfc58c082eec98f3888c39ff2c880057d435 100644
--- a/src/wasm/signature-map.h
+++ b/src/wasm/signature-map.h
@@ -22,7 +22,7 @@ class V8_EXPORT_PRIVATE SignatureMap {
// Allow default construction and move construction (because we have vectors
// of objects containing SignatureMaps), but disallow copy or assign. It's
// too easy to get security bugs by accidentally updating a copy of the map.
- SignatureMap() = default;
+ SignatureMap();
SignatureMap(SignatureMap&&) = default;
// Gets the index for a signature, assigning a new index if necessary.
@@ -37,6 +37,7 @@ class V8_EXPORT_PRIVATE SignatureMap {
bool operator()(FunctionSig* a, FunctionSig* b) const;
};
uint32_t next_ = 0;
+ std::unique_ptr<base::Mutex> mutex_;
std::map<FunctionSig*, uint32_t, CompareFunctionSigs> map_;
DISALLOW_COPY_AND_ASSIGN(SignatureMap);
« no previous file with comments | « no previous file | src/wasm/signature-map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698