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

Unified Diff: src/objects.h

Issue 300753002: Fix PathTracer. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: also, test case. Created 6 years, 7 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 8ef7f20231f5e5a0d77bae8321462db95affe69e..ac1a33750a6eeee0eb89519e57a5165ec9ad7ee8 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -5077,12 +5077,16 @@ class FixedTypedArrayBase: public FixedArrayBase {
inline int size();
+ inline int SizeFromMap(Map* map);
Michael Starzinger 2014/05/27 12:19:55 nit: Instead of overloading the SizeFromMap() name
+
// Use with care: returns raw pointer into heap.
inline void* DataPtr();
- inline int DataSize();
+ inline int DataSize() { return DataSizeFromMap(map()); }
private:
+ inline int DataSizeFromMap(Map* map);
+
DISALLOW_IMPLICIT_CONSTRUCTORS(FixedTypedArrayBase);
};
« 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