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

Unified Diff: src/utils.h

Issue 2760603002: Revert of MIPS[64]: Fix unaligned arguments storage in Wasm-to-interpreter entry (Closed)
Patch Set: Fix 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 | « src/compiler/wasm-compiler.cc ('k') | src/wasm/wasm-debug.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils.h
diff --git a/src/utils.h b/src/utils.h
index 98810bce0d950e3b027230857d441ac5c90b8dee..887988a48845d1ac3fecac138baf3ef1014d3412 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -192,11 +192,6 @@ inline bool IsAddressAligned(Address addr,
return IsAligned(offs, alignment);
}
-template <typename T, typename U>
-inline T RoundUpToMultipleOfPowOf2(T value, U multiple) {
- DCHECK(multiple && ((multiple & (multiple - 1)) == 0));
- return (value + multiple - 1) & ~(multiple - 1);
-}
// Returns the maximum of the two parameters.
template <typename T>
« no previous file with comments | « src/compiler/wasm-compiler.cc ('k') | src/wasm/wasm-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698