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

Side by Side Diff: src/deoptimizer.cc

Issue 553843002: Replace our home-grown BitCast with bit_cast from Chrome/Google3. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/conversions-inl.h ('k') | src/double.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/codegen.h" 8 #include "src/codegen.h"
9 #include "src/deoptimizer.h" 9 #include "src/deoptimizer.h"
10 #include "src/disasm.h" 10 #include "src/disasm.h"
(...skipping 3657 matching lines...) Expand 10 before | Expand all | Expand 10 after
3668 } 3668 }
3669 3669
3670 3670
3671 DeoptimizedFrameInfo::~DeoptimizedFrameInfo() { 3671 DeoptimizedFrameInfo::~DeoptimizedFrameInfo() {
3672 delete[] expression_stack_; 3672 delete[] expression_stack_;
3673 delete[] parameters_; 3673 delete[] parameters_;
3674 } 3674 }
3675 3675
3676 3676
3677 void DeoptimizedFrameInfo::Iterate(ObjectVisitor* v) { 3677 void DeoptimizedFrameInfo::Iterate(ObjectVisitor* v) {
3678 v->VisitPointer(BitCast<Object**>(&function_)); 3678 v->VisitPointer(bit_cast<Object**>(&function_));
3679 v->VisitPointer(&context_); 3679 v->VisitPointer(&context_);
3680 v->VisitPointers(parameters_, parameters_ + parameters_count_); 3680 v->VisitPointers(parameters_, parameters_ + parameters_count_);
3681 v->VisitPointers(expression_stack_, expression_stack_ + expression_count_); 3681 v->VisitPointers(expression_stack_, expression_stack_ + expression_count_);
3682 } 3682 }
3683 3683
3684 } } // namespace v8::internal 3684 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/conversions-inl.h ('k') | src/double.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698