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

Side by Side Diff: src/mips/lithium-codegen-mips.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. 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 771 matching lines...) Expand 10 before | Expand all | Expand 10 after
782 LEnvironment* environment, 782 LEnvironment* environment,
783 Register src1, 783 Register src1,
784 const Operand& src2) { 784 const Operand& src2) {
785 Deoptimizer::BailoutType bailout_type = info()->IsStub() 785 Deoptimizer::BailoutType bailout_type = info()->IsStub()
786 ? Deoptimizer::LAZY 786 ? Deoptimizer::LAZY
787 : Deoptimizer::EAGER; 787 : Deoptimizer::EAGER;
788 DeoptimizeIf(cc, environment, bailout_type, src1, src2); 788 DeoptimizeIf(cc, environment, bailout_type, src1, src2);
789 } 789 }
790 790
791 791
792 void LCodeGen::SoftDeoptimize(LEnvironment* environment, 792 void LCodeGen::Deoptimize(LEnvironment* environment,
793 Register src1, 793 Register src1,
794 const Operand& src2) { 794 const Operand& src2) {
795 ASSERT(!info()->IsStub()); 795 ASSERT(!info()->IsStub());
796 DeoptimizeIf(al, environment, Deoptimizer::SOFT, src1, src2); 796 DeoptimizeIf(al, environment, Deoptimizer::SOFT, src1, src2);
797 } 797 }
798 798
799 799
800 void LCodeGen::RegisterDependentCodeForEmbeddedMaps(Handle<Code> code) { 800 void LCodeGen::RegisterDependentCodeForEmbeddedMaps(Handle<Code> code) {
801 ZoneList<Handle<Map> > maps(1, zone()); 801 ZoneList<Handle<Map> > maps(1, zone());
802 int mode_mask = RelocInfo::ModeMask(RelocInfo::EMBEDDED_OBJECT); 802 int mode_mask = RelocInfo::ModeMask(RelocInfo::EMBEDDED_OBJECT);
803 for (RelocIterator it(*code, mode_mask); !it.done(); it.next()) { 803 for (RelocIterator it(*code, mode_mask); !it.done(); it.next()) {
804 RelocInfo::Mode mode = it.rinfo()->rmode(); 804 RelocInfo::Mode mode = it.rinfo()->rmode();
(...skipping 4809 matching lines...) Expand 10 before | Expand all | Expand 10 after
5614 void LCodeGen::DoLazyBailout(LLazyBailout* instr) { 5614 void LCodeGen::DoLazyBailout(LLazyBailout* instr) {
5615 EnsureSpaceForLazyDeopt(); 5615 EnsureSpaceForLazyDeopt();
5616 ASSERT(instr->HasEnvironment()); 5616 ASSERT(instr->HasEnvironment());
5617 LEnvironment* env = instr->environment(); 5617 LEnvironment* env = instr->environment();
5618 RegisterEnvironmentForDeoptimization(env, Safepoint::kLazyDeopt); 5618 RegisterEnvironmentForDeoptimization(env, Safepoint::kLazyDeopt);
5619 safepoints_.RecordLazyDeoptimizationIndex(env->deoptimization_index()); 5619 safepoints_.RecordLazyDeoptimizationIndex(env->deoptimization_index());
5620 } 5620 }
5621 5621
5622 5622
5623 void LCodeGen::DoDeoptimize(LDeoptimize* instr) { 5623 void LCodeGen::DoDeoptimize(LDeoptimize* instr) {
5624 if (instr->hydrogen_value()->IsSoftDeoptimize()) { 5624 if (instr->hydrogen_value()->IsDeoptimize()) {
Jakob Kummerow 2013/07/22 16:53:12 see ARM comment
danno 2013/07/23 12:18:14 Done.
5625 SoftDeoptimize(instr->environment(), zero_reg, Operand(zero_reg)); 5625 Deoptimize(instr->environment(), zero_reg, Operand(zero_reg));
5626 } else { 5626 } else {
5627 DeoptimizeIf(al, instr->environment(), zero_reg, Operand(zero_reg)); 5627 DeoptimizeIf(al, instr->environment(), zero_reg, Operand(zero_reg));
5628 } 5628 }
5629 } 5629 }
5630 5630
5631 5631
5632 void LCodeGen::DoDummyUse(LDummyUse* instr) { 5632 void LCodeGen::DoDummyUse(LDummyUse* instr) {
5633 // Nothing to see here, move on! 5633 // Nothing to see here, move on!
5634 } 5634 }
5635 5635
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
5794 __ Subu(scratch, result, scratch); 5794 __ Subu(scratch, result, scratch);
5795 __ lw(result, FieldMemOperand(scratch, 5795 __ lw(result, FieldMemOperand(scratch,
5796 FixedArray::kHeaderSize - kPointerSize)); 5796 FixedArray::kHeaderSize - kPointerSize));
5797 __ bind(&done); 5797 __ bind(&done);
5798 } 5798 }
5799 5799
5800 5800
5801 #undef __ 5801 #undef __
5802 5802
5803 } } // namespace v8::internal 5803 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698