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

Side by Side Diff: src/compiler/ppc/code-generator-ppc.cc

Issue 1518483002: PPC: [turbofan] Add initial support for SOFT deopts. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/compiler/code-generator-impl.h" 8 #include "src/compiler/code-generator-impl.h"
9 #include "src/compiler/gap-resolver.h" 9 #include "src/compiler/gap-resolver.h"
10 #include "src/compiler/node-matchers.h" 10 #include "src/compiler/node-matchers.h"
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after
752 AssembleArchTableSwitch(instr); 752 AssembleArchTableSwitch(instr);
753 DCHECK_EQ(LeaveRC, i.OutputRCBit()); 753 DCHECK_EQ(LeaveRC, i.OutputRCBit());
754 break; 754 break;
755 case kArchNop: 755 case kArchNop:
756 // don't emit code for nops. 756 // don't emit code for nops.
757 DCHECK_EQ(LeaveRC, i.OutputRCBit()); 757 DCHECK_EQ(LeaveRC, i.OutputRCBit());
758 break; 758 break;
759 case kArchDeoptimize: { 759 case kArchDeoptimize: {
760 int deopt_state_id = 760 int deopt_state_id =
761 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); 761 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore());
762 AssembleDeoptimizerCall(deopt_state_id, Deoptimizer::EAGER); 762 Deoptimizer::BailoutType bailout_type =
763 Deoptimizer::BailoutType(MiscField::decode(instr->opcode()));
764 AssembleDeoptimizerCall(deopt_state_id, bailout_type);
763 break; 765 break;
764 } 766 }
765 case kArchRet: 767 case kArchRet:
766 AssembleReturn(); 768 AssembleReturn();
767 DCHECK_EQ(LeaveRC, i.OutputRCBit()); 769 DCHECK_EQ(LeaveRC, i.OutputRCBit());
768 break; 770 break;
769 case kArchStackPointer: 771 case kArchStackPointer:
770 __ mr(i.OutputRegister(), sp); 772 __ mr(i.OutputRegister(), sp);
771 DCHECK_EQ(LeaveRC, i.OutputRCBit()); 773 DCHECK_EQ(LeaveRC, i.OutputRCBit());
772 break; 774 break;
(...skipping 997 matching lines...) Expand 10 before | Expand all | Expand 10 after
1770 padding_size -= v8::internal::Assembler::kInstrSize; 1772 padding_size -= v8::internal::Assembler::kInstrSize;
1771 } 1773 }
1772 } 1774 }
1773 } 1775 }
1774 1776
1775 #undef __ 1777 #undef __
1776 1778
1777 } // namespace compiler 1779 } // namespace compiler
1778 } // namespace internal 1780 } // namespace internal
1779 } // namespace v8 1781 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698