OLD | NEW |
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 Loading... |
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 } |
3631 } } // namespace v8::internal | 3640 } } // namespace v8::internal |
OLD | NEW |