| 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 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 594 | 594 |
| 595 // Set the continuation for the topmost frame. | 595 // Set the continuation for the topmost frame. |
| 596 if (is_topmost && bailout_type_ != DEBUGGER) { | 596 if (is_topmost && bailout_type_ != DEBUGGER) { |
| 597 Builtins* builtins = isolate_->builtins(); | 597 Builtins* builtins = isolate_->builtins(); |
| 598 Code* continuation = (bailout_type_ == EAGER) | 598 Code* continuation = (bailout_type_ == EAGER) |
| 599 ? builtins->builtin(Builtins::kNotifyDeoptimized) | 599 ? builtins->builtin(Builtins::kNotifyDeoptimized) |
| 600 : builtins->builtin(Builtins::kNotifyLazyDeoptimized); | 600 : builtins->builtin(Builtins::kNotifyLazyDeoptimized); |
| 601 output_frame->SetContinuation( | 601 output_frame->SetContinuation( |
| 602 reinterpret_cast<uint32_t>(continuation->entry())); | 602 reinterpret_cast<uint32_t>(continuation->entry())); |
| 603 } | 603 } |
| 604 | |
| 605 if (output_count_ - 1 == frame_index) iterator->Done(); | |
| 606 } | 604 } |
| 607 | 605 |
| 608 | 606 |
| 609 void Deoptimizer::FillInputFrame(Address tos, JavaScriptFrame* frame) { | 607 void Deoptimizer::FillInputFrame(Address tos, JavaScriptFrame* frame) { |
| 610 // Set the register values. The values are not important as there are no | 608 // Set the register values. The values are not important as there are no |
| 611 // callee saved registers in JavaScript frames, so all registers are | 609 // callee saved registers in JavaScript frames, so all registers are |
| 612 // spilled. Registers ebp and esp are set to the correct values though. | 610 // spilled. Registers ebp and esp are set to the correct values though. |
| 613 | 611 |
| 614 for (int i = 0; i < Register::kNumRegisters; i++) { | 612 for (int i = 0; i < Register::kNumRegisters; i++) { |
| 615 input_->SetRegister(i, i * 4); | 613 input_->SetRegister(i, i * 4); |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 792 } | 790 } |
| 793 __ bind(&done); | 791 __ bind(&done); |
| 794 } | 792 } |
| 795 | 793 |
| 796 #undef __ | 794 #undef __ |
| 797 | 795 |
| 798 | 796 |
| 799 } } // namespace v8::internal | 797 } } // namespace v8::internal |
| 800 | 798 |
| 801 #endif // V8_TARGET_ARCH_IA32 | 799 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |