Replace reinterpret_cast with BitCast in deoptimizer to please certain compilers.

This is a back-port of upstream V8 rev 8672.

Fixes #1354.
pull/5370/head
Ben Noordhuis 2011-07-18 13:39:22 +02:00
parent bd2d90feff
commit e5cceffe6a
1 changed files with 1 additions and 1 deletions

View File

@ -1462,7 +1462,7 @@ DeoptimizedFrameInfo::~DeoptimizedFrameInfo() {
}
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_);
}