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

Side by Side Diff: src/x64/lithium-codegen-x64.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 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 679 matching lines...) Expand 10 before | Expand all | Expand 10 after
690 690
691 void LCodeGen::DeoptimizeIf(Condition cc, 691 void LCodeGen::DeoptimizeIf(Condition cc,
692 LEnvironment* environment) { 692 LEnvironment* environment) {
693 Deoptimizer::BailoutType bailout_type = info()->IsStub() 693 Deoptimizer::BailoutType bailout_type = info()->IsStub()
694 ? Deoptimizer::LAZY 694 ? Deoptimizer::LAZY
695 : Deoptimizer::EAGER; 695 : Deoptimizer::EAGER;
696 DeoptimizeIf(cc, environment, bailout_type); 696 DeoptimizeIf(cc, environment, bailout_type);
697 } 697 }
698 698
699 699
700 void LCodeGen::SoftDeoptimize(LEnvironment* environment) { 700 void LCodeGen::Deoptimize(LEnvironment* environment) {
701 ASSERT(!info()->IsStub()); 701 ASSERT(!info()->IsStub());
702 DeoptimizeIf(no_condition, environment, Deoptimizer::SOFT); 702 DeoptimizeIf(no_condition, environment, Deoptimizer::SOFT);
703 } 703 }
704 704
705 705
706 void LCodeGen::RegisterDependentCodeForEmbeddedMaps(Handle<Code> code) { 706 void LCodeGen::RegisterDependentCodeForEmbeddedMaps(Handle<Code> code) {
707 ZoneList<Handle<Map> > maps(1, zone()); 707 ZoneList<Handle<Map> > maps(1, zone());
708 int mode_mask = RelocInfo::ModeMask(RelocInfo::EMBEDDED_OBJECT); 708 int mode_mask = RelocInfo::ModeMask(RelocInfo::EMBEDDED_OBJECT);
709 for (RelocIterator it(*code, mode_mask); !it.done(); it.next()) { 709 for (RelocIterator it(*code, mode_mask); !it.done(); it.next()) {
710 RelocInfo::Mode mode = it.rinfo()->rmode(); 710 RelocInfo::Mode mode = it.rinfo()->rmode();
(...skipping 4634 matching lines...) Expand 10 before | Expand all | Expand 10 after
5345 EnsureSpaceForLazyDeopt(Deoptimizer::patch_size()); 5345 EnsureSpaceForLazyDeopt(Deoptimizer::patch_size());
5346 last_lazy_deopt_pc_ = masm()->pc_offset(); 5346 last_lazy_deopt_pc_ = masm()->pc_offset();
5347 ASSERT(instr->HasEnvironment()); 5347 ASSERT(instr->HasEnvironment());
5348 LEnvironment* env = instr->environment(); 5348 LEnvironment* env = instr->environment();
5349 RegisterEnvironmentForDeoptimization(env, Safepoint::kLazyDeopt); 5349 RegisterEnvironmentForDeoptimization(env, Safepoint::kLazyDeopt);
5350 safepoints_.RecordLazyDeoptimizationIndex(env->deoptimization_index()); 5350 safepoints_.RecordLazyDeoptimizationIndex(env->deoptimization_index());
5351 } 5351 }
5352 5352
5353 5353
5354 void LCodeGen::DoDeoptimize(LDeoptimize* instr) { 5354 void LCodeGen::DoDeoptimize(LDeoptimize* instr) {
5355 if (instr->hydrogen_value()->IsSoftDeoptimize()) { 5355 if (instr->hydrogen_value()->IsDeoptimize()) {
5356 SoftDeoptimize(instr->environment()); 5356 Deoptimize(instr->environment());
Jakob Kummerow 2013/07/22 16:53:12 see ia32 comment
danno 2013/07/23 12:18:14 Done.
5357 } else { 5357 } else {
5358 DeoptimizeIf(no_condition, instr->environment()); 5358 DeoptimizeIf(no_condition, instr->environment());
5359 } 5359 }
5360 } 5360 }
5361 5361
5362 5362
5363 void LCodeGen::DoDummyUse(LDummyUse* instr) { 5363 void LCodeGen::DoDummyUse(LDummyUse* instr) {
5364 // Nothing to see here, move on! 5364 // Nothing to see here, move on!
5365 } 5365 }
5366 5366
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
5526 FixedArray::kHeaderSize - kPointerSize)); 5526 FixedArray::kHeaderSize - kPointerSize));
5527 __ bind(&done); 5527 __ bind(&done);
5528 } 5528 }
5529 5529
5530 5530
5531 #undef __ 5531 #undef __
5532 5532
5533 } } // namespace v8::internal 5533 } } // namespace v8::internal
5534 5534
5535 #endif // V8_TARGET_ARCH_X64 5535 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698