Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: src/mips/deoptimizer-mips.cc

Issue 9227007: Version 3.8.6 (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/mips/cpu-mips.cc ('k') | src/mips/full-codegen-mips.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 while (ok && input_offset >= 0) { 319 while (ok && input_offset >= 0) {
320 ok = DoOsrTranslateCommand(&iterator, &input_offset); 320 ok = DoOsrTranslateCommand(&iterator, &input_offset);
321 } 321 }
322 322
323 // If translation of any command failed, continue using the input frame. 323 // If translation of any command failed, continue using the input frame.
324 if (!ok) { 324 if (!ok) {
325 delete output_[0]; 325 delete output_[0];
326 output_[0] = input_; 326 output_[0] = input_;
327 output_[0]->SetPc(reinterpret_cast<uint32_t>(from_)); 327 output_[0]->SetPc(reinterpret_cast<uint32_t>(from_));
328 } else { 328 } else {
329 // Setup the frame pointer and the context pointer. 329 // Set up the frame pointer and the context pointer.
330 output_[0]->SetRegister(fp.code(), input_->GetRegister(fp.code())); 330 output_[0]->SetRegister(fp.code(), input_->GetRegister(fp.code()));
331 output_[0]->SetRegister(cp.code(), input_->GetRegister(cp.code())); 331 output_[0]->SetRegister(cp.code(), input_->GetRegister(cp.code()));
332 332
333 unsigned pc_offset = data->OsrPcOffset()->value(); 333 unsigned pc_offset = data->OsrPcOffset()->value();
334 uint32_t pc = reinterpret_cast<uint32_t>( 334 uint32_t pc = reinterpret_cast<uint32_t>(
335 optimized_code_->entry() + pc_offset); 335 optimized_code_->entry() + pc_offset);
336 output_[0]->SetPc(pc); 336 output_[0]->SetPc(pc);
337 } 337 }
338 Code* continuation = isolate_->builtins()->builtin(Builtins::kNotifyOSR); 338 Code* continuation = isolate_->builtins()->builtin(Builtins::kNotifyOSR);
339 output_[0]->SetContinuation( 339 output_[0]->SetContinuation(
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 ASSERT(!(at.bit() & restored_regs)); 726 ASSERT(!(at.bit() & restored_regs));
727 // Restore the registers from the last output frame. 727 // Restore the registers from the last output frame.
728 __ mov(at, a2); 728 __ mov(at, a2);
729 for (int i = kNumberOfRegisters - 1; i >= 0; i--) { 729 for (int i = kNumberOfRegisters - 1; i >= 0; i--) {
730 int offset = (i * kPointerSize) + FrameDescription::registers_offset(); 730 int offset = (i * kPointerSize) + FrameDescription::registers_offset();
731 if ((restored_regs & (1 << i)) != 0) { 731 if ((restored_regs & (1 << i)) != 0) {
732 __ lw(ToRegister(i), MemOperand(at, offset)); 732 __ lw(ToRegister(i), MemOperand(at, offset));
733 } 733 }
734 } 734 }
735 735
736 // Set up the roots register. 736 __ InitializeRootRegister();
737 ExternalReference roots_array_start =
738 ExternalReference::roots_array_start(isolate);
739 __ li(roots, Operand(roots_array_start));
740 737
741 __ pop(at); // Get continuation, leave pc on stack. 738 __ pop(at); // Get continuation, leave pc on stack.
742 __ pop(ra); 739 __ pop(ra);
743 __ Jump(at); 740 __ Jump(at);
744 __ stop("Unreachable."); 741 __ stop("Unreachable.");
745 } 742 }
746 743
747 744
748 void Deoptimizer::TableEntryGenerator::GeneratePrologue() { 745 void Deoptimizer::TableEntryGenerator::GeneratePrologue() {
749 Assembler::BlockTrampolinePoolScope block_trampoline_pool(masm()); 746 Assembler::BlockTrampolinePoolScope block_trampoline_pool(masm());
(...skipping 20 matching lines...) Expand all
770 767
771 ASSERT_EQ(table_entry_size_, masm()->pc_offset() - start); 768 ASSERT_EQ(table_entry_size_, masm()->pc_offset() - start);
772 } 769 }
773 __ bind(&done); 770 __ bind(&done);
774 } 771 }
775 772
776 #undef __ 773 #undef __
777 774
778 775
779 } } // namespace v8::internal 776 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/cpu-mips.cc ('k') | src/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698