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

Side by Side Diff: src/compiler/ia32/code-generator-ia32.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
« no previous file with comments | « src/compiler/common-operator.cc ('k') | src/compiler/instruction-selector.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 // 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 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 break; 449 break;
450 case kArchTableSwitch: 450 case kArchTableSwitch:
451 AssembleArchTableSwitch(instr); 451 AssembleArchTableSwitch(instr);
452 break; 452 break;
453 case kArchNop: 453 case kArchNop:
454 // don't emit code for nops. 454 // don't emit code for nops.
455 break; 455 break;
456 case kArchDeoptimize: { 456 case kArchDeoptimize: {
457 int deopt_state_id = 457 int deopt_state_id =
458 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore()); 458 BuildTranslation(instr, -1, 0, OutputFrameStateCombine::Ignore());
459 AssembleDeoptimizerCall(deopt_state_id, Deoptimizer::EAGER); 459 Deoptimizer::BailoutType bailout_type =
460 Deoptimizer::BailoutType(MiscField::decode(instr->opcode()));
461 AssembleDeoptimizerCall(deopt_state_id, bailout_type);
460 break; 462 break;
461 } 463 }
462 case kArchRet: 464 case kArchRet:
463 AssembleReturn(); 465 AssembleReturn();
464 break; 466 break;
465 case kArchStackPointer: 467 case kArchStackPointer:
466 __ mov(i.OutputRegister(), esp); 468 __ mov(i.OutputRegister(), esp);
467 break; 469 break;
468 case kArchFramePointer: 470 case kArchFramePointer:
469 __ mov(i.OutputRegister(), ebp); 471 __ mov(i.OutputRegister(), ebp);
(...skipping 1182 matching lines...) Expand 10 before | Expand all | Expand 10 after
1652 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; 1654 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
1653 __ Nop(padding_size); 1655 __ Nop(padding_size);
1654 } 1656 }
1655 } 1657 }
1656 1658
1657 #undef __ 1659 #undef __
1658 1660
1659 } // namespace compiler 1661 } // namespace compiler
1660 } // namespace internal 1662 } // namespace internal
1661 } // namespace v8 1663 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/common-operator.cc ('k') | src/compiler/instruction-selector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698