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

Unified Diff: src/objects.h

Issue 136333011: MIPS: Specialize FixedTypedArray<> set and get functions to solve unaligned double access. (Closed) Base URL: https://github.com/v8/v8.git@gbl
Patch Set: Fixed nit Created 6 years, 11 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/objects-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index c6f36bf63bdb3b4d31fba9c27b42bf8efff2f583..7eec8cdadf7336c93fa40434af2b32b88969954a 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -4899,6 +4899,10 @@ class FixedTypedArray: public FixedTypedArrayBase {
return kDataOffset + length * sizeof(ElementType);
}
+ static inline int ElementOffset(int index) {
+ return SizeFor(index);
Dmitry Lomov (no reviews) 2014/01/30 18:34:03 Please express them the other way round, i.e. Size
kilvadyb 2014/01/30 19:24:52 Done.
+ }
+
inline ElementType get_scalar(int index);
MUST_USE_RESULT inline MaybeObject* get(int index);
inline void set(int index, ElementType value);
« no previous file with comments | « no previous file | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698