Chromium Code Reviews

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

Issue 19528003: Unify SoftDeoptimize and Deoptimize hydrogen instructions (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Use defaults for Add<HDeoptimize> Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | 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 790 matching lines...)
801 801
802 void LCodeGen::DeoptimizeIf(Condition cc, 802 void LCodeGen::DeoptimizeIf(Condition cc,
803 LEnvironment* environment) { 803 LEnvironment* environment) {
804 Deoptimizer::BailoutType bailout_type = info()->IsStub() 804 Deoptimizer::BailoutType bailout_type = info()->IsStub()
805 ? Deoptimizer::LAZY 805 ? Deoptimizer::LAZY
806 : Deoptimizer::EAGER; 806 : Deoptimizer::EAGER;
807 DeoptimizeIf(cc, environment, bailout_type); 807 DeoptimizeIf(cc, environment, bailout_type);
808 } 808 }
809 809
810 810
811 void LCodeGen::SoftDeoptimize(LEnvironment* environment) { 811 void LCodeGen::Deoptimize(LEnvironment* environment) {
812 ASSERT(!info()->IsStub()); 812 ASSERT(!info()->IsStub());
813 DeoptimizeIf(al, environment, Deoptimizer::SOFT); 813 DeoptimizeIf(al, environment, Deoptimizer::SOFT);
814 } 814 }
815 815
816 816
817 void LCodeGen::RegisterDependentCodeForEmbeddedMaps(Handle<Code> code) { 817 void LCodeGen::RegisterDependentCodeForEmbeddedMaps(Handle<Code> code) {
818 ZoneList<Handle<Map> > maps(1, zone()); 818 ZoneList<Handle<Map> > maps(1, zone());
819 int mode_mask = RelocInfo::ModeMask(RelocInfo::EMBEDDED_OBJECT); 819 int mode_mask = RelocInfo::ModeMask(RelocInfo::EMBEDDED_OBJECT);
820 for (RelocIterator it(*code, mode_mask); !it.done(); it.next()) { 820 for (RelocIterator it(*code, mode_mask); !it.done(); it.next()) {
821 RelocInfo::Mode mode = it.rinfo()->rmode(); 821 RelocInfo::Mode mode = it.rinfo()->rmode();
(...skipping 4800 matching lines...)
5622 void LCodeGen::DoLazyBailout(LLazyBailout* instr) { 5622 void LCodeGen::DoLazyBailout(LLazyBailout* instr) {
5623 EnsureSpaceForLazyDeopt(); 5623 EnsureSpaceForLazyDeopt();
5624 ASSERT(instr->HasEnvironment()); 5624 ASSERT(instr->HasEnvironment());
5625 LEnvironment* env = instr->environment(); 5625 LEnvironment* env = instr->environment();
5626 RegisterEnvironmentForDeoptimization(env, Safepoint::kLazyDeopt); 5626 RegisterEnvironmentForDeoptimization(env, Safepoint::kLazyDeopt);
5627 safepoints_.RecordLazyDeoptimizationIndex(env->deoptimization_index()); 5627 safepoints_.RecordLazyDeoptimizationIndex(env->deoptimization_index());
5628 } 5628 }
5629 5629
5630 5630
5631 void LCodeGen::DoDeoptimize(LDeoptimize* instr) { 5631 void LCodeGen::DoDeoptimize(LDeoptimize* instr) {
5632 if (instr->hydrogen_value()->IsSoftDeoptimize()) { 5632 if (instr->hydrogen_value()->IsDeoptimize()) {
Jakob Kummerow 2013/07/22 16:53:12 Uhm, what? What else would the hydrogen_value be?
danno 2013/07/23 12:18:14 Done.
5633 SoftDeoptimize(instr->environment()); 5633 Deoptimize(instr->environment());
5634 } else { 5634 } else {
5635 DeoptimizeIf(al, instr->environment()); 5635 DeoptimizeIf(al, instr->environment());
5636 } 5636 }
5637 } 5637 }
5638 5638
5639 5639
5640 void LCodeGen::DoDummyUse(LDummyUse* instr) { 5640 void LCodeGen::DoDummyUse(LDummyUse* instr) {
5641 // Nothing to see here, move on! 5641 // Nothing to see here, move on!
5642 } 5642 }
5643 5643
(...skipping 163 matching lines...)
5807 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); 5807 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index));
5808 __ ldr(result, FieldMemOperand(scratch, 5808 __ ldr(result, FieldMemOperand(scratch,
5809 FixedArray::kHeaderSize - kPointerSize)); 5809 FixedArray::kHeaderSize - kPointerSize));
5810 __ bind(&done); 5810 __ bind(&done);
5811 } 5811 }
5812 5812
5813 5813
5814 #undef __ 5814 #undef __
5815 5815
5816 } } // namespace v8::internal 5816 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine