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

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

Issue 20767002: Merge 15827, 15842, and 15912 into 3.19 (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.19
Patch Set: Final version Created 7 years, 4 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/mips/lithium-codegen-mips.h ('k') | src/mips/lithium-mips.h » ('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 825 matching lines...) Expand 10 before | Expand all | Expand 10 after
836 LEnvironment* environment, 836 LEnvironment* environment,
837 Register src1, 837 Register src1,
838 const Operand& src2) { 838 const Operand& src2) {
839 Deoptimizer::BailoutType bailout_type = info()->IsStub() 839 Deoptimizer::BailoutType bailout_type = info()->IsStub()
840 ? Deoptimizer::LAZY 840 ? Deoptimizer::LAZY
841 : Deoptimizer::EAGER; 841 : Deoptimizer::EAGER;
842 DeoptimizeIf(cc, environment, bailout_type, src1, src2); 842 DeoptimizeIf(cc, environment, bailout_type, src1, src2);
843 } 843 }
844 844
845 845
846 void LCodeGen::SoftDeoptimize(LEnvironment* environment,
847 Register src1,
848 const Operand& src2) {
849 ASSERT(!info()->IsStub());
850 DeoptimizeIf(al, environment, Deoptimizer::SOFT, src1, src2);
851 }
852
853
854 void LCodeGen::RegisterDependentCodeForEmbeddedMaps(Handle<Code> code) { 846 void LCodeGen::RegisterDependentCodeForEmbeddedMaps(Handle<Code> code) {
855 ZoneList<Handle<Map> > maps(1, zone()); 847 ZoneList<Handle<Map> > maps(1, zone());
856 int mode_mask = RelocInfo::ModeMask(RelocInfo::EMBEDDED_OBJECT); 848 int mode_mask = RelocInfo::ModeMask(RelocInfo::EMBEDDED_OBJECT);
857 for (RelocIterator it(*code, mode_mask); !it.done(); it.next()) { 849 for (RelocIterator it(*code, mode_mask); !it.done(); it.next()) {
858 RelocInfo::Mode mode = it.rinfo()->rmode(); 850 RelocInfo::Mode mode = it.rinfo()->rmode();
859 if (mode == RelocInfo::EMBEDDED_OBJECT && 851 if (mode == RelocInfo::EMBEDDED_OBJECT &&
860 it.rinfo()->target_object()->IsMap()) { 852 it.rinfo()->target_object()->IsMap()) {
861 Handle<Map> map(Map::cast(it.rinfo()->target_object())); 853 Handle<Map> map(Map::cast(it.rinfo()->target_object()));
862 if (map->CanTransition()) { 854 if (map->CanTransition()) {
863 maps.Add(map, zone()); 855 maps.Add(map, zone());
(...skipping 4780 matching lines...) Expand 10 before | Expand all | Expand 10 after
5644 EnsureSpaceForLazyDeopt(); 5636 EnsureSpaceForLazyDeopt();
5645 last_lazy_deopt_pc_ = masm()->pc_offset(); 5637 last_lazy_deopt_pc_ = masm()->pc_offset();
5646 ASSERT(instr->HasEnvironment()); 5638 ASSERT(instr->HasEnvironment());
5647 LEnvironment* env = instr->environment(); 5639 LEnvironment* env = instr->environment();
5648 RegisterEnvironmentForDeoptimization(env, Safepoint::kLazyDeopt); 5640 RegisterEnvironmentForDeoptimization(env, Safepoint::kLazyDeopt);
5649 safepoints_.RecordLazyDeoptimizationIndex(env->deoptimization_index()); 5641 safepoints_.RecordLazyDeoptimizationIndex(env->deoptimization_index());
5650 } 5642 }
5651 5643
5652 5644
5653 void LCodeGen::DoDeoptimize(LDeoptimize* instr) { 5645 void LCodeGen::DoDeoptimize(LDeoptimize* instr) {
5654 if (instr->hydrogen_value()->IsSoftDeoptimize()) { 5646 Deoptimizer::BailoutType type = instr->hydrogen()->type();
5655 SoftDeoptimize(instr->environment(), zero_reg, Operand(zero_reg)); 5647 // TODO(danno): Stubs expect all deopts to be lazy for historical reasons (the
5656 } else { 5648 // needed return address), even though the implementation of LAZY and EAGER is
5657 DeoptimizeIf(al, instr->environment(), zero_reg, Operand(zero_reg)); 5649 // now identical. When LAZY is eventually completely folded into EAGER, remove
5650 // the special case below.
5651 if (info()->IsStub() && type == Deoptimizer::EAGER) {
5652 type = Deoptimizer::LAZY;
5658 } 5653 }
5654 DeoptimizeIf(al, instr->environment(), type, zero_reg, Operand(zero_reg));
5659 } 5655 }
5660 5656
5661 5657
5662 void LCodeGen::DoDummyUse(LDummyUse* instr) { 5658 void LCodeGen::DoDummyUse(LDummyUse* instr) {
5663 // Nothing to see here, move on! 5659 // Nothing to see here, move on!
5664 } 5660 }
5665 5661
5666 5662
5667 void LCodeGen::DoDeleteProperty(LDeleteProperty* instr) { 5663 void LCodeGen::DoDeleteProperty(LDeleteProperty* instr) {
5668 Register object = ToRegister(instr->object()); 5664 Register object = ToRegister(instr->object());
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
5853 __ Subu(scratch, result, scratch); 5849 __ Subu(scratch, result, scratch);
5854 __ lw(result, FieldMemOperand(scratch, 5850 __ lw(result, FieldMemOperand(scratch,
5855 FixedArray::kHeaderSize - kPointerSize)); 5851 FixedArray::kHeaderSize - kPointerSize));
5856 __ bind(&done); 5852 __ bind(&done);
5857 } 5853 }
5858 5854
5859 5855
5860 #undef __ 5856 #undef __
5861 5857
5862 } } // namespace v8::internal 5858 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.h ('k') | src/mips/lithium-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698