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

Side by Side Diff: src/x64/lithium-codegen-x64.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/x64/lithium-codegen-x64.h ('k') | src/x64/lithium-x64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 735 matching lines...) Expand 10 before | Expand all | Expand 10 after
746 746
747 void LCodeGen::DeoptimizeIf(Condition cc, 747 void LCodeGen::DeoptimizeIf(Condition cc,
748 LEnvironment* environment) { 748 LEnvironment* environment) {
749 Deoptimizer::BailoutType bailout_type = info()->IsStub() 749 Deoptimizer::BailoutType bailout_type = info()->IsStub()
750 ? Deoptimizer::LAZY 750 ? Deoptimizer::LAZY
751 : Deoptimizer::EAGER; 751 : Deoptimizer::EAGER;
752 DeoptimizeIf(cc, environment, bailout_type); 752 DeoptimizeIf(cc, environment, bailout_type);
753 } 753 }
754 754
755 755
756 void LCodeGen::SoftDeoptimize(LEnvironment* environment) {
757 ASSERT(!info()->IsStub());
758 DeoptimizeIf(no_condition, environment, Deoptimizer::SOFT);
759 }
760
761
762 void LCodeGen::RegisterDependentCodeForEmbeddedMaps(Handle<Code> code) { 756 void LCodeGen::RegisterDependentCodeForEmbeddedMaps(Handle<Code> code) {
763 ZoneList<Handle<Map> > maps(1, zone()); 757 ZoneList<Handle<Map> > maps(1, zone());
764 int mode_mask = RelocInfo::ModeMask(RelocInfo::EMBEDDED_OBJECT); 758 int mode_mask = RelocInfo::ModeMask(RelocInfo::EMBEDDED_OBJECT);
765 for (RelocIterator it(*code, mode_mask); !it.done(); it.next()) { 759 for (RelocIterator it(*code, mode_mask); !it.done(); it.next()) {
766 RelocInfo::Mode mode = it.rinfo()->rmode(); 760 RelocInfo::Mode mode = it.rinfo()->rmode();
767 if (mode == RelocInfo::EMBEDDED_OBJECT && 761 if (mode == RelocInfo::EMBEDDED_OBJECT &&
768 it.rinfo()->target_object()->IsMap()) { 762 it.rinfo()->target_object()->IsMap()) {
769 Handle<Map> map(Map::cast(it.rinfo()->target_object())); 763 Handle<Map> map(Map::cast(it.rinfo()->target_object()));
770 if (map->CanTransition()) { 764 if (map->CanTransition()) {
771 maps.Add(map, zone()); 765 maps.Add(map, zone());
(...skipping 4620 matching lines...) Expand 10 before | Expand all | Expand 10 after
5392 EnsureSpaceForLazyDeopt(Deoptimizer::patch_size()); 5386 EnsureSpaceForLazyDeopt(Deoptimizer::patch_size());
5393 last_lazy_deopt_pc_ = masm()->pc_offset(); 5387 last_lazy_deopt_pc_ = masm()->pc_offset();
5394 ASSERT(instr->HasEnvironment()); 5388 ASSERT(instr->HasEnvironment());
5395 LEnvironment* env = instr->environment(); 5389 LEnvironment* env = instr->environment();
5396 RegisterEnvironmentForDeoptimization(env, Safepoint::kLazyDeopt); 5390 RegisterEnvironmentForDeoptimization(env, Safepoint::kLazyDeopt);
5397 safepoints_.RecordLazyDeoptimizationIndex(env->deoptimization_index()); 5391 safepoints_.RecordLazyDeoptimizationIndex(env->deoptimization_index());
5398 } 5392 }
5399 5393
5400 5394
5401 void LCodeGen::DoDeoptimize(LDeoptimize* instr) { 5395 void LCodeGen::DoDeoptimize(LDeoptimize* instr) {
5402 if (instr->hydrogen_value()->IsSoftDeoptimize()) { 5396 Deoptimizer::BailoutType type = instr->hydrogen()->type();
5403 SoftDeoptimize(instr->environment()); 5397 // TODO(danno): Stubs expect all deopts to be lazy for historical reasons (the
5404 } else { 5398 // needed return address), even though the implementation of LAZY and EAGER is
5405 DeoptimizeIf(no_condition, instr->environment()); 5399 // now identical. When LAZY is eventually completely folded into EAGER, remove
5400 // the special case below.
5401 if (info()->IsStub() && type == Deoptimizer::EAGER) {
5402 type = Deoptimizer::LAZY;
5406 } 5403 }
5404 DeoptimizeIf(no_condition, instr->environment(), type);
5407 } 5405 }
5408 5406
5409 5407
5410 void LCodeGen::DoDummyUse(LDummyUse* instr) { 5408 void LCodeGen::DoDummyUse(LDummyUse* instr) {
5411 // Nothing to see here, move on! 5409 // Nothing to see here, move on!
5412 } 5410 }
5413 5411
5414 5412
5415 void LCodeGen::DoDeleteProperty(LDeleteProperty* instr) { 5413 void LCodeGen::DoDeleteProperty(LDeleteProperty* instr) {
5416 LOperand* obj = instr->object(); 5414 LOperand* obj = instr->object();
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
5605 FixedArray::kHeaderSize - kPointerSize)); 5603 FixedArray::kHeaderSize - kPointerSize));
5606 __ bind(&done); 5604 __ bind(&done);
5607 } 5605 }
5608 5606
5609 5607
5610 #undef __ 5608 #undef __
5611 5609
5612 } } // namespace v8::internal 5610 } } // namespace v8::internal
5613 5611
5614 #endif // V8_TARGET_ARCH_X64 5612 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.h ('k') | src/x64/lithium-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698