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

Side by Side Diff: src/deoptimizer.cc

Issue 892843007: Revert of Externalize deoptimization reasons. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « src/deoptimizer.h ('k') | src/disassembler.cc » ('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 3610 matching lines...) Expand 10 before | Expand all | Expand 10 after
3621 } 3621 }
3622 3622
3623 3623
3624 void DeoptimizedFrameInfo::Iterate(ObjectVisitor* v) { 3624 void DeoptimizedFrameInfo::Iterate(ObjectVisitor* v) {
3625 v->VisitPointer(bit_cast<Object**>(&function_)); 3625 v->VisitPointer(bit_cast<Object**>(&function_));
3626 v->VisitPointer(&context_); 3626 v->VisitPointer(&context_);
3627 v->VisitPointers(parameters_, parameters_ + parameters_count_); 3627 v->VisitPointers(parameters_, parameters_ + parameters_count_);
3628 v->VisitPointers(expression_stack_, expression_stack_ + expression_count_); 3628 v->VisitPointers(expression_stack_, expression_stack_ + expression_count_);
3629 } 3629 }
3630 3630
3631
3632 const char* Deoptimizer::GetDeoptReason(DeoptReason deopt_reason) {
3633 DCHECK(deopt_reason < kLastDeoptReason);
3634 #define DEOPT_MESSAGES_TEXTS(C, T) T,
3635 static const char* deopt_messages_[] = {
3636 DEOPT_MESSAGES_LIST(DEOPT_MESSAGES_TEXTS)};
3637 #undef DEOPT_MESSAGES_TEXTS
3638 return deopt_messages_[deopt_reason];
3639 }
3640 } } // namespace v8::internal 3631 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/deoptimizer.h ('k') | src/disassembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698