OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1596 } | 1596 } |
1597 | 1597 |
1598 #ifdef ENABLE_DEBUGGER_SUPPORT | 1598 #ifdef ENABLE_DEBUGGER_SUPPORT |
1599 | 1599 |
1600 DeoptimizedFrameInfo::DeoptimizedFrameInfo( | 1600 DeoptimizedFrameInfo::DeoptimizedFrameInfo( |
1601 Deoptimizer* deoptimizer, int frame_index, bool has_arguments_adaptor) { | 1601 Deoptimizer* deoptimizer, int frame_index, bool has_arguments_adaptor) { |
1602 FrameDescription* output_frame = deoptimizer->output_[frame_index]; | 1602 FrameDescription* output_frame = deoptimizer->output_[frame_index]; |
1603 SetFunction(output_frame->GetFunction()); | 1603 SetFunction(output_frame->GetFunction()); |
1604 expression_count_ = output_frame->GetExpressionCount(); | 1604 expression_count_ = output_frame->GetExpressionCount(); |
1605 expression_stack_ = new Object*[expression_count_]; | 1605 expression_stack_ = new Object*[expression_count_]; |
| 1606 pc_ = output_frame->GetPc(); |
1606 for (int i = 0; i < expression_count_; i++) { | 1607 for (int i = 0; i < expression_count_; i++) { |
1607 SetExpression(i, output_frame->GetExpression(i)); | 1608 SetExpression(i, output_frame->GetExpression(i)); |
1608 } | 1609 } |
1609 | 1610 |
1610 if (has_arguments_adaptor) { | 1611 if (has_arguments_adaptor) { |
1611 output_frame = deoptimizer->output_[frame_index - 1]; | 1612 output_frame = deoptimizer->output_[frame_index - 1]; |
1612 ASSERT(output_frame->GetFrameType() == StackFrame::ARGUMENTS_ADAPTOR); | 1613 ASSERT(output_frame->GetFrameType() == StackFrame::ARGUMENTS_ADAPTOR); |
1613 } | 1614 } |
1614 | 1615 |
1615 parameters_count_ = output_frame->ComputeParametersCount(); | 1616 parameters_count_ = output_frame->ComputeParametersCount(); |
(...skipping 11 matching lines...) Expand all Loading... |
1627 | 1628 |
1628 void DeoptimizedFrameInfo::Iterate(ObjectVisitor* v) { | 1629 void DeoptimizedFrameInfo::Iterate(ObjectVisitor* v) { |
1629 v->VisitPointer(BitCast<Object**>(&function_)); | 1630 v->VisitPointer(BitCast<Object**>(&function_)); |
1630 v->VisitPointers(parameters_, parameters_ + parameters_count_); | 1631 v->VisitPointers(parameters_, parameters_ + parameters_count_); |
1631 v->VisitPointers(expression_stack_, expression_stack_ + expression_count_); | 1632 v->VisitPointers(expression_stack_, expression_stack_ + expression_count_); |
1632 } | 1633 } |
1633 | 1634 |
1634 #endif // ENABLE_DEBUGGER_SUPPORT | 1635 #endif // ENABLE_DEBUGGER_SUPPORT |
1635 | 1636 |
1636 } } // namespace v8::internal | 1637 } } // namespace v8::internal |
OLD | NEW |