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

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

Issue 12314152: Miscellaneous profile-driven Isolate plumbing. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 9 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/ia32/deoptimizer-ia32.cc ('k') | src/isolate.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 815 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 826
827 827
828 void LCodeGen::DeoptimizeIf(Condition cc, LEnvironment* environment) { 828 void LCodeGen::DeoptimizeIf(Condition cc, LEnvironment* environment) {
829 RegisterEnvironmentForDeoptimization(environment, Safepoint::kNoLazyDeopt); 829 RegisterEnvironmentForDeoptimization(environment, Safepoint::kNoLazyDeopt);
830 ASSERT(environment->HasBeenRegistered()); 830 ASSERT(environment->HasBeenRegistered());
831 int id = environment->deoptimization_index(); 831 int id = environment->deoptimization_index();
832 ASSERT(info()->IsOptimizing() || info()->IsStub()); 832 ASSERT(info()->IsOptimizing() || info()->IsStub());
833 Deoptimizer::BailoutType bailout_type = info()->IsStub() 833 Deoptimizer::BailoutType bailout_type = info()->IsStub()
834 ? Deoptimizer::LAZY 834 ? Deoptimizer::LAZY
835 : Deoptimizer::EAGER; 835 : Deoptimizer::EAGER;
836 Address entry = Deoptimizer::GetDeoptimizationEntry(id, bailout_type); 836 Address entry =
837 Deoptimizer::GetDeoptimizationEntry(isolate(), id, bailout_type);
837 if (entry == NULL) { 838 if (entry == NULL) {
838 Abort("bailout was not prepared"); 839 Abort("bailout was not prepared");
839 return; 840 return;
840 } 841 }
841 842
842 if (FLAG_deopt_every_n_times != 0) { 843 if (FLAG_deopt_every_n_times != 0) {
843 Handle<SharedFunctionInfo> shared(info_->shared_info()); 844 Handle<SharedFunctionInfo> shared(info_->shared_info());
844 Label no_deopt; 845 Label no_deopt;
845 __ pushfd(); 846 __ pushfd();
846 __ push(eax); 847 __ push(eax);
(...skipping 5355 matching lines...) Expand 10 before | Expand all | Expand 10 after
6202 FixedArray::kHeaderSize - kPointerSize)); 6203 FixedArray::kHeaderSize - kPointerSize));
6203 __ bind(&done); 6204 __ bind(&done);
6204 } 6205 }
6205 6206
6206 6207
6207 #undef __ 6208 #undef __
6208 6209
6209 } } // namespace v8::internal 6210 } } // namespace v8::internal
6210 6211
6211 #endif // V8_TARGET_ARCH_IA32 6212 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/deoptimizer-ia32.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698