OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1408 } | 1408 } |
1409 } | 1409 } |
1410 | 1410 |
1411 UNREACHABLE(); | 1411 UNREACHABLE(); |
1412 } | 1412 } |
1413 | 1413 |
1414 | 1414 |
1415 DeoptimizedFrameInfo::DeoptimizedFrameInfo( | 1415 DeoptimizedFrameInfo::DeoptimizedFrameInfo( |
1416 Deoptimizer* deoptimizer, int frame_index) { | 1416 Deoptimizer* deoptimizer, int frame_index) { |
1417 FrameDescription* output_frame = deoptimizer->output_[frame_index]; | 1417 FrameDescription* output_frame = deoptimizer->output_[frame_index]; |
| 1418 SetFunction(output_frame->GetFunction()); |
1418 expression_count_ = output_frame->GetExpressionCount(deoptimizer); | 1419 expression_count_ = output_frame->GetExpressionCount(deoptimizer); |
1419 expression_stack_ = new Object*[expression_count_]; | 1420 expression_stack_ = new Object*[expression_count_]; |
1420 for (int i = 0; i < expression_count_; i++) { | 1421 for (int i = 0; i < expression_count_; i++) { |
1421 SetExpression(i, output_frame->GetExpression(deoptimizer, i)); | 1422 SetExpression(i, output_frame->GetExpression(deoptimizer, i)); |
1422 } | 1423 } |
1423 } | 1424 } |
1424 | 1425 |
1425 | 1426 |
1426 DeoptimizedFrameInfo::~DeoptimizedFrameInfo() { | 1427 DeoptimizedFrameInfo::~DeoptimizedFrameInfo() { |
1427 delete expression_stack_; | 1428 delete expression_stack_; |
1428 } | 1429 } |
1429 | 1430 |
1430 void DeoptimizedFrameInfo::Iterate(ObjectVisitor* v) { | 1431 void DeoptimizedFrameInfo::Iterate(ObjectVisitor* v) { |
| 1432 v->VisitPointer(reinterpret_cast<Object**>(&function_)); |
1431 v->VisitPointers(expression_stack_, expression_stack_ + expression_count_); | 1433 v->VisitPointers(expression_stack_, expression_stack_ + expression_count_); |
1432 } | 1434 } |
1433 | 1435 |
1434 | 1436 |
1435 } } // namespace v8::internal | 1437 } } // namespace v8::internal |
OLD | NEW |