| 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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 while (ok && input_offset >= 0) { | 312 while (ok && input_offset >= 0) { |
| 313 ok = DoOsrTranslateCommand(&iterator, &input_offset); | 313 ok = DoOsrTranslateCommand(&iterator, &input_offset); |
| 314 } | 314 } |
| 315 | 315 |
| 316 // If translation of any command failed, continue using the input frame. | 316 // If translation of any command failed, continue using the input frame. |
| 317 if (!ok) { | 317 if (!ok) { |
| 318 delete output_[0]; | 318 delete output_[0]; |
| 319 output_[0] = input_; | 319 output_[0] = input_; |
| 320 output_[0]->SetPc(reinterpret_cast<uint32_t>(from_)); | 320 output_[0]->SetPc(reinterpret_cast<uint32_t>(from_)); |
| 321 } else { | 321 } else { |
| 322 // Setup the frame pointer and the context pointer. | 322 // Set up the frame pointer and the context pointer. |
| 323 output_[0]->SetRegister(fp.code(), input_->GetRegister(fp.code())); | 323 output_[0]->SetRegister(fp.code(), input_->GetRegister(fp.code())); |
| 324 output_[0]->SetRegister(cp.code(), input_->GetRegister(cp.code())); | 324 output_[0]->SetRegister(cp.code(), input_->GetRegister(cp.code())); |
| 325 | 325 |
| 326 unsigned pc_offset = data->OsrPcOffset()->value(); | 326 unsigned pc_offset = data->OsrPcOffset()->value(); |
| 327 uint32_t pc = reinterpret_cast<uint32_t>( | 327 uint32_t pc = reinterpret_cast<uint32_t>( |
| 328 optimized_code_->entry() + pc_offset); | 328 optimized_code_->entry() + pc_offset); |
| 329 output_[0]->SetPc(pc); | 329 output_[0]->SetPc(pc); |
| 330 } | 330 } |
| 331 Code* continuation = isolate_->builtins()->builtin(Builtins::kNotifyOSR); | 331 Code* continuation = isolate_->builtins()->builtin(Builtins::kNotifyOSR); |
| 332 output_[0]->SetContinuation( | 332 output_[0]->SetContinuation( |
| (...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 750 __ push(ip); | 750 __ push(ip); |
| 751 __ b(&done); | 751 __ b(&done); |
| 752 ASSERT(masm()->pc_offset() - start == table_entry_size_); | 752 ASSERT(masm()->pc_offset() - start == table_entry_size_); |
| 753 } | 753 } |
| 754 __ bind(&done); | 754 __ bind(&done); |
| 755 } | 755 } |
| 756 | 756 |
| 757 #undef __ | 757 #undef __ |
| 758 | 758 |
| 759 } } // namespace v8::internal | 759 } } // namespace v8::internal |
| OLD | NEW |