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

Side by Side Diff: src/mips/lithium-codegen-mips.cc

Issue 19188002: Fix --deopt-every-n-times flag (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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
OLDNEW
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 726 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 Deoptimizer::GetDeoptimizationEntry(isolate(), id, bailout_type); 737 Deoptimizer::GetDeoptimizationEntry(isolate(), id, bailout_type);
738 if (entry == NULL) { 738 if (entry == NULL) {
739 Abort("bailout was not prepared"); 739 Abort("bailout was not prepared");
740 return; 740 return;
741 } 741 }
742 742
743 ASSERT(FLAG_deopt_every_n_times < 2); // Other values not supported on MIPS. 743 ASSERT(FLAG_deopt_every_n_times < 2); // Other values not supported on MIPS.
744 if (FLAG_deopt_every_n_times == 1 && 744 if (FLAG_deopt_every_n_times == 1 &&
745 !info()->IsStub() && 745 !info()->IsStub() &&
746 info()->opt_count() == id) { 746 info()->opt_count() == id) {
747 __ Jump(entry, RelocInfo::RUNTIME_ENTRY); 747 ASSERT(frame_is_built_);
748 __ Call(entry, RelocInfo::RUNTIME_ENTRY);
748 return; 749 return;
749 } 750 }
750 751
751 if (FLAG_trap_on_deopt && info()->IsOptimizing()) { 752 if (FLAG_trap_on_deopt && info()->IsOptimizing()) {
752 Label skip; 753 Label skip;
753 if (cc != al) { 754 if (cc != al) {
754 __ Branch(&skip, NegateCondition(cc), src1, src2); 755 __ Branch(&skip, NegateCondition(cc), src1, src2);
755 } 756 }
756 __ stop("trap_on_deopt"); 757 __ stop("trap_on_deopt");
757 __ bind(&skip); 758 __ bind(&skip);
(...skipping 5109 matching lines...) Expand 10 before | Expand all | Expand 10 after
5867 __ Subu(scratch, result, scratch); 5868 __ Subu(scratch, result, scratch);
5868 __ lw(result, FieldMemOperand(scratch, 5869 __ lw(result, FieldMemOperand(scratch,
5869 FixedArray::kHeaderSize - kPointerSize)); 5870 FixedArray::kHeaderSize - kPointerSize));
5870 __ bind(&done); 5871 __ bind(&done);
5871 } 5872 }
5872 5873
5873 5874
5874 #undef __ 5875 #undef __
5875 5876
5876 } } // namespace v8::internal 5877 } } // namespace v8::internal
OLDNEW
« src/ia32/lithium-codegen-ia32.cc ('K') | « src/ia32/lithium-codegen-ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698