Revision: 8672
Author:   [email protected]
Date:     Mon Jul 18 03:51:28 2011
Log: Replace reinterpret_cast with BitCast in deoptimizer to please certain compilers.

[email protected]
BUG=v8:1564

Review URL: http://codereview.chromium.org/7398024
http://code.google.com/p/v8/source/detail?r=8672

Modified:
 /branches/bleeding_edge/src/deoptimizer.cc

=======================================
--- /branches/bleeding_edge/src/deoptimizer.cc  Mon Jul 11 02:35:18 2011
+++ /branches/bleeding_edge/src/deoptimizer.cc  Mon Jul 18 03:51:28 2011
@@ -1462,7 +1462,7 @@
 }

 void DeoptimizedFrameInfo::Iterate(ObjectVisitor* v) {
-  v->VisitPointer(reinterpret_cast<Object**>(&function_));
+  v->VisitPointer(BitCast<Object**>(&function_));
   v->VisitPointers(parameters_, parameters_ + parameters_count_);
v->VisitPointers(expression_stack_, expression_stack_ + expression_count_);
 }

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to