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 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
528 } | 528 } |
529 } | 529 } |
530 PrintF("[couldn't find pc offset for node=%d]\n", id.ToInt()); | 530 PrintF("[couldn't find pc offset for node=%d]\n", id.ToInt()); |
531 PrintF("[method: %s]\n", *shared->DebugName()->ToCString()); | 531 PrintF("[method: %s]\n", *shared->DebugName()->ToCString()); |
532 // Print the source code if available. | 532 // Print the source code if available. |
533 HeapStringAllocator string_allocator; | 533 HeapStringAllocator string_allocator; |
534 StringStream stream(&string_allocator); | 534 StringStream stream(&string_allocator); |
535 shared->SourceCodePrint(&stream, -1); | 535 shared->SourceCodePrint(&stream, -1); |
536 PrintF("[source:\n%s\n]", *stream.ToCString()); | 536 PrintF("[source:\n%s\n]", *stream.ToCString()); |
537 | 537 |
538 UNREACHABLE(); | 538 FATAL("unable to find pc offset during deoptimization"); |
539 return -1; | 539 return -1; |
540 } | 540 } |
541 | 541 |
542 | 542 |
543 int Deoptimizer::GetDeoptimizedCodeCount(Isolate* isolate) { | 543 int Deoptimizer::GetDeoptimizedCodeCount(Isolate* isolate) { |
544 int length = 0; | 544 int length = 0; |
545 DeoptimizingCodeListNode* node = | 545 DeoptimizingCodeListNode* node = |
546 isolate->deoptimizer_data()->deoptimizing_code_list_; | 546 isolate->deoptimizer_data()->deoptimizing_code_list_; |
547 while (node != NULL) { | 547 while (node != NULL) { |
548 length++; | 548 length++; |
(...skipping 1473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2022 | 2022 |
2023 void DeoptimizedFrameInfo::Iterate(ObjectVisitor* v) { | 2023 void DeoptimizedFrameInfo::Iterate(ObjectVisitor* v) { |
2024 v->VisitPointer(BitCast<Object**>(&function_)); | 2024 v->VisitPointer(BitCast<Object**>(&function_)); |
2025 v->VisitPointers(parameters_, parameters_ + parameters_count_); | 2025 v->VisitPointers(parameters_, parameters_ + parameters_count_); |
2026 v->VisitPointers(expression_stack_, expression_stack_ + expression_count_); | 2026 v->VisitPointers(expression_stack_, expression_stack_ + expression_count_); |
2027 } | 2027 } |
2028 | 2028 |
2029 #endif // ENABLE_DEBUGGER_SUPPORT | 2029 #endif // ENABLE_DEBUGGER_SUPPORT |
2030 | 2030 |
2031 } } // namespace v8::internal | 2031 } } // namespace v8::internal |
OLD | NEW |