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

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

Issue 1508323002: X87: [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 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 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 // of this instruction. 498 // of this instruction.
499 if (double_register_param_count > 0) { 499 if (double_register_param_count > 0) {
500 x87_layout = (0 << 3) | 1; 500 x87_layout = (0 << 3) | 1;
501 } 501 }
502 // The layout of x87 register stack is loaded on the top of FPU register 502 // The layout of x87 register stack is loaded on the top of FPU register
503 // stack for deoptimization. 503 // stack for deoptimization.
504 __ push(Immediate(x87_layout)); 504 __ push(Immediate(x87_layout));
505 __ fild_s(MemOperand(esp, 0)); 505 __ fild_s(MemOperand(esp, 0));
506 __ lea(esp, Operand(esp, kPointerSize)); 506 __ lea(esp, Operand(esp, kPointerSize));
507 507
508 AssembleDeoptimizerCall(deopt_state_id, Deoptimizer::EAGER); 508 Deoptimizer::BailoutType bailout_type =
509 Deoptimizer::BailoutType(MiscField::decode(instr->opcode()));
510 AssembleDeoptimizerCall(deopt_state_id, bailout_type);
509 break; 511 break;
510 } 512 }
511 case kArchRet: 513 case kArchRet:
512 AssembleReturn(); 514 AssembleReturn();
513 break; 515 break;
514 case kArchFramePointer: 516 case kArchFramePointer:
515 __ mov(i.OutputRegister(), ebp); 517 __ mov(i.OutputRegister(), ebp);
516 break; 518 break;
517 case kArchStackPointer: 519 case kArchStackPointer:
518 __ mov(i.OutputRegister(), esp); 520 __ mov(i.OutputRegister(), esp);
(...skipping 1486 matching lines...) Expand 10 before | Expand all | Expand 10 after
2005 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; 2007 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc;
2006 __ Nop(padding_size); 2008 __ Nop(padding_size);
2007 } 2009 }
2008 } 2010 }
2009 2011
2010 #undef __ 2012 #undef __
2011 2013
2012 } // namespace compiler 2014 } // namespace compiler
2013 } // namespace internal 2015 } // namespace internal
2014 } // namespace v8 2016 } // 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