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

Side by Side Diff: src/arm/lithium-codegen-arm.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/arm/lithium-codegen-arm.h ('k') | src/code-stubs-hydrogen.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 847 matching lines...) Expand 10 before | Expand all | Expand 10 after
858 858
859 void LCodeGen::DeoptimizeIf(Condition cc, 859 void LCodeGen::DeoptimizeIf(Condition cc,
860 LEnvironment* environment) { 860 LEnvironment* environment) {
861 Deoptimizer::BailoutType bailout_type = info()->IsStub() 861 Deoptimizer::BailoutType bailout_type = info()->IsStub()
862 ? Deoptimizer::LAZY 862 ? Deoptimizer::LAZY
863 : Deoptimizer::EAGER; 863 : Deoptimizer::EAGER;
864 DeoptimizeIf(cc, environment, bailout_type); 864 DeoptimizeIf(cc, environment, bailout_type);
865 } 865 }
866 866
867 867
868 void LCodeGen::SoftDeoptimize(LEnvironment* environment) {
869 ASSERT(!info()->IsStub());
870 DeoptimizeIf(al, environment, Deoptimizer::SOFT);
871 }
872
873
874 void LCodeGen::RegisterDependentCodeForEmbeddedMaps(Handle<Code> code) { 868 void LCodeGen::RegisterDependentCodeForEmbeddedMaps(Handle<Code> code) {
875 ZoneList<Handle<Map> > maps(1, zone()); 869 ZoneList<Handle<Map> > maps(1, zone());
876 int mode_mask = RelocInfo::ModeMask(RelocInfo::EMBEDDED_OBJECT); 870 int mode_mask = RelocInfo::ModeMask(RelocInfo::EMBEDDED_OBJECT);
877 for (RelocIterator it(*code, mode_mask); !it.done(); it.next()) { 871 for (RelocIterator it(*code, mode_mask); !it.done(); it.next()) {
878 RelocInfo::Mode mode = it.rinfo()->rmode(); 872 RelocInfo::Mode mode = it.rinfo()->rmode();
879 if (mode == RelocInfo::EMBEDDED_OBJECT && 873 if (mode == RelocInfo::EMBEDDED_OBJECT &&
880 it.rinfo()->target_object()->IsMap()) { 874 it.rinfo()->target_object()->IsMap()) {
881 Handle<Map> map(Map::cast(it.rinfo()->target_object())); 875 Handle<Map> map(Map::cast(it.rinfo()->target_object()));
882 if (map->CanTransition()) { 876 if (map->CanTransition()) {
883 maps.Add(map, zone()); 877 maps.Add(map, zone());
(...skipping 4786 matching lines...) Expand 10 before | Expand all | Expand 10 after
5670 EnsureSpaceForLazyDeopt(); 5664 EnsureSpaceForLazyDeopt();
5671 last_lazy_deopt_pc_ = masm()->pc_offset(); 5665 last_lazy_deopt_pc_ = masm()->pc_offset();
5672 ASSERT(instr->HasEnvironment()); 5666 ASSERT(instr->HasEnvironment());
5673 LEnvironment* env = instr->environment(); 5667 LEnvironment* env = instr->environment();
5674 RegisterEnvironmentForDeoptimization(env, Safepoint::kLazyDeopt); 5668 RegisterEnvironmentForDeoptimization(env, Safepoint::kLazyDeopt);
5675 safepoints_.RecordLazyDeoptimizationIndex(env->deoptimization_index()); 5669 safepoints_.RecordLazyDeoptimizationIndex(env->deoptimization_index());
5676 } 5670 }
5677 5671
5678 5672
5679 void LCodeGen::DoDeoptimize(LDeoptimize* instr) { 5673 void LCodeGen::DoDeoptimize(LDeoptimize* instr) {
5680 if (instr->hydrogen_value()->IsSoftDeoptimize()) { 5674 Deoptimizer::BailoutType type = instr->hydrogen()->type();
5681 SoftDeoptimize(instr->environment()); 5675 // TODO(danno): Stubs expect all deopts to be lazy for historical reasons (the
5682 } else { 5676 // needed return address), even though the implementation of LAZY and EAGER is
5683 DeoptimizeIf(al, instr->environment()); 5677 // now identical. When LAZY is eventually completely folded into EAGER, remove
5678 // the special case below.
5679 if (info()->IsStub() && type == Deoptimizer::EAGER) {
5680 type = Deoptimizer::LAZY;
5684 } 5681 }
5682 DeoptimizeIf(al, instr->environment(), type);
5685 } 5683 }
5686 5684
5687 5685
5688 void LCodeGen::DoDummyUse(LDummyUse* instr) { 5686 void LCodeGen::DoDummyUse(LDummyUse* instr) {
5689 // Nothing to see here, move on! 5687 // Nothing to see here, move on!
5690 } 5688 }
5691 5689
5692 5690
5693 void LCodeGen::DoDeleteProperty(LDeleteProperty* instr) { 5691 void LCodeGen::DoDeleteProperty(LDeleteProperty* instr) {
5694 Register object = ToRegister(instr->object()); 5692 Register object = ToRegister(instr->object());
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
5884 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); 5882 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index));
5885 __ ldr(result, FieldMemOperand(scratch, 5883 __ ldr(result, FieldMemOperand(scratch,
5886 FixedArray::kHeaderSize - kPointerSize)); 5884 FixedArray::kHeaderSize - kPointerSize));
5887 __ bind(&done); 5885 __ bind(&done);
5888 } 5886 }
5889 5887
5890 5888
5891 #undef __ 5889 #undef __
5892 5890
5893 } } // namespace v8::internal 5891 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.h ('k') | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698