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

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

Issue 13779003: Unbreak --deopt-every-n-times. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 8 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/arm/lithium-codegen-arm.cc ('k') | src/mips/lithium-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 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 840 matching lines...) Expand 10 before | Expand all | Expand 10 after
851 Deoptimizer::BailoutType bailout_type = info()->IsStub() 851 Deoptimizer::BailoutType bailout_type = info()->IsStub()
852 ? Deoptimizer::LAZY 852 ? Deoptimizer::LAZY
853 : Deoptimizer::EAGER; 853 : Deoptimizer::EAGER;
854 Address entry = 854 Address entry =
855 Deoptimizer::GetDeoptimizationEntry(isolate(), id, bailout_type); 855 Deoptimizer::GetDeoptimizationEntry(isolate(), id, bailout_type);
856 if (entry == NULL) { 856 if (entry == NULL) {
857 Abort("bailout was not prepared"); 857 Abort("bailout was not prepared");
858 return; 858 return;
859 } 859 }
860 860
861 if (FLAG_deopt_every_n_times != 0) { 861 if (FLAG_deopt_every_n_times != 0 && !info()->IsStub()) {
862 Handle<SharedFunctionInfo> shared(info_->shared_info()); 862 Handle<SharedFunctionInfo> shared(info()->shared_info());
863 Label no_deopt; 863 Label no_deopt;
864 __ pushfd(); 864 __ pushfd();
865 __ push(eax); 865 __ push(eax);
866 __ push(ebx); 866 __ push(ebx);
867 __ mov(ebx, shared); 867 __ mov(ebx, shared);
868 __ mov(eax, 868 __ mov(eax,
869 FieldOperand(ebx, SharedFunctionInfo::kStressDeoptCounterOffset)); 869 FieldOperand(ebx, SharedFunctionInfo::kStressDeoptCounterOffset));
870 __ sub(Operand(eax), Immediate(Smi::FromInt(1))); 870 __ sub(Operand(eax), Immediate(Smi::FromInt(1)));
871 __ j(not_zero, &no_deopt, Label::kNear); 871 __ j(not_zero, &no_deopt, Label::kNear);
872 if (FLAG_trap_on_deopt) __ int3(); 872 if (FLAG_trap_on_deopt) __ int3();
(...skipping 5420 matching lines...) Expand 10 before | Expand all | Expand 10 after
6293 FixedArray::kHeaderSize - kPointerSize)); 6293 FixedArray::kHeaderSize - kPointerSize));
6294 __ bind(&done); 6294 __ bind(&done);
6295 } 6295 }
6296 6296
6297 6297
6298 #undef __ 6298 #undef __
6299 6299
6300 } } // namespace v8::internal 6300 } } // namespace v8::internal
6301 6301
6302 #endif // V8_TARGET_ARCH_IA32 6302 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698