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

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

Issue 1511883002: [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
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/ast/scopes.h" 5 #include "src/ast/scopes.h"
6 #include "src/compiler/code-generator.h" 6 #include "src/compiler/code-generator.h"
7 #include "src/compiler/code-generator-impl.h" 7 #include "src/compiler/code-generator-impl.h"
8 #include "src/compiler/gap-resolver.h" 8 #include "src/compiler/gap-resolver.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/compiler/osr.h" 10 #include "src/compiler/osr.h"
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 break; 570 break;
571 case kArchTableSwitch: 571 case kArchTableSwitch:
572 AssembleArchTableSwitch(instr); 572 AssembleArchTableSwitch(instr);
573 break; 573 break;
574 case kArchNop: 574 case kArchNop:
575 // don't emit code for nops. 575 // don't emit code for nops.
576 break; 576 break;
577 case kArchDeoptimize: { 577 case kArchDeoptimize: {
578 int deopt_state_id = 578 int deopt_state_id =
579 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); 579 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore());
580 AssembleDeoptimizerCall(deopt_state_id, Deoptimizer::EAGER); 580 Deoptimizer::BailoutType bailout_type =
581 Deoptimizer::BailoutType(MiscField::decode(instr->opcode()));
582 AssembleDeoptimizerCall(deopt_state_id, bailout_type);
581 break; 583 break;
582 } 584 }
583 case kArchRet: 585 case kArchRet:
584 AssembleReturn(); 586 AssembleReturn();
585 break; 587 break;
586 case kArchStackPointer: 588 case kArchStackPointer:
587 __ mov(i.OutputRegister(), sp); 589 __ mov(i.OutputRegister(), sp);
588 break; 590 break;
589 case kArchFramePointer: 591 case kArchFramePointer:
590 __ mov(i.OutputRegister(), fp); 592 __ mov(i.OutputRegister(), fp);
(...skipping 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after
1700 padding_size -= v8::internal::Assembler::kInstrSize; 1702 padding_size -= v8::internal::Assembler::kInstrSize;
1701 } 1703 }
1702 } 1704 }
1703 } 1705 }
1704 1706
1705 #undef __ 1707 #undef __
1706 1708
1707 } // namespace compiler 1709 } // namespace compiler
1708 } // namespace internal 1710 } // namespace internal
1709 } // namespace v8 1711 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-native-context-specialization.cc ('k') | src/compiler/mips64/code-generator-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698