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

Side by Side Diff: src/arm/lithium-codegen-arm.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/arm/deoptimizer-arm.cc ('k') | src/compiler.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 814 matching lines...) Expand 10 before | Expand all | Expand 10 after
825 825
826 826
827 void LCodeGen::DeoptimizeIf(Condition cc, LEnvironment* environment) { 827 void LCodeGen::DeoptimizeIf(Condition cc, LEnvironment* environment) {
828 RegisterEnvironmentForDeoptimization(environment, Safepoint::kNoLazyDeopt); 828 RegisterEnvironmentForDeoptimization(environment, Safepoint::kNoLazyDeopt);
829 ASSERT(environment->HasBeenRegistered()); 829 ASSERT(environment->HasBeenRegistered());
830 int id = environment->deoptimization_index(); 830 int id = environment->deoptimization_index();
831 ASSERT(info()->IsOptimizing() || info()->IsStub()); 831 ASSERT(info()->IsOptimizing() || info()->IsStub());
832 Deoptimizer::BailoutType bailout_type = info()->IsStub() 832 Deoptimizer::BailoutType bailout_type = info()->IsStub()
833 ? Deoptimizer::LAZY 833 ? Deoptimizer::LAZY
834 : Deoptimizer::EAGER; 834 : Deoptimizer::EAGER;
835 Address entry = Deoptimizer::GetDeoptimizationEntry(id, bailout_type); 835 Address entry =
836 Deoptimizer::GetDeoptimizationEntry(isolate(), id, bailout_type);
836 if (entry == NULL) { 837 if (entry == NULL) {
837 Abort("bailout was not prepared"); 838 Abort("bailout was not prepared");
838 return; 839 return;
839 } 840 }
840 841
841 ASSERT(FLAG_deopt_every_n_times < 2); // Other values not supported on ARM. 842 ASSERT(FLAG_deopt_every_n_times < 2); // Other values not supported on ARM.
842 if (FLAG_deopt_every_n_times == 1 && info_->opt_count() == id) { 843 if (FLAG_deopt_every_n_times == 1 && info_->opt_count() == id) {
843 __ Jump(entry, RelocInfo::RUNTIME_ENTRY); 844 __ Jump(entry, RelocInfo::RUNTIME_ENTRY);
844 return; 845 return;
845 } 846 }
(...skipping 5510 matching lines...) Expand 10 before | Expand all | Expand 10 after
6356 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); 6357 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize));
6357 __ ldr(result, FieldMemOperand(scratch, 6358 __ ldr(result, FieldMemOperand(scratch,
6358 FixedArray::kHeaderSize - kPointerSize)); 6359 FixedArray::kHeaderSize - kPointerSize));
6359 __ bind(&done); 6360 __ bind(&done);
6360 } 6361 }
6361 6362
6362 6363
6363 #undef __ 6364 #undef __
6364 6365
6365 } } // namespace v8::internal 6366 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/deoptimizer-arm.cc ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698