OLD | NEW |
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 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
567 } | 567 } |
568 case kArchRet: | 568 case kArchRet: |
569 AssembleReturn(); | 569 AssembleReturn(); |
570 break; | 570 break; |
571 case kArchFramePointer: | 571 case kArchFramePointer: |
572 __ mov(i.OutputRegister(), ebp); | 572 __ mov(i.OutputRegister(), ebp); |
573 break; | 573 break; |
574 case kArchStackPointer: | 574 case kArchStackPointer: |
575 __ mov(i.OutputRegister(), esp); | 575 __ mov(i.OutputRegister(), esp); |
576 break; | 576 break; |
| 577 case kArchParentFramePointer: |
| 578 if (frame_access_state()->frame()->needs_frame()) { |
| 579 __ mov(i.OutputRegister(), Operand(ebp, 0)); |
| 580 } else { |
| 581 __ mov(i.OutputRegister(), ebp); |
| 582 } |
| 583 break; |
577 case kArchTruncateDoubleToI: { | 584 case kArchTruncateDoubleToI: { |
578 if (!instr->InputAt(0)->IsDoubleRegister()) { | 585 if (!instr->InputAt(0)->IsDoubleRegister()) { |
579 __ fld_d(i.InputOperand(0)); | 586 __ fld_d(i.InputOperand(0)); |
580 } | 587 } |
581 __ TruncateX87TOSToI(i.OutputRegister()); | 588 __ TruncateX87TOSToI(i.OutputRegister()); |
582 if (!instr->InputAt(0)->IsDoubleRegister()) { | 589 if (!instr->InputAt(0)->IsDoubleRegister()) { |
583 __ fstp(0); | 590 __ fstp(0); |
584 } | 591 } |
585 break; | 592 break; |
586 } | 593 } |
(...skipping 1647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2234 void CodeGenerator::EnsureSpaceForLazyDeopt() { | 2241 void CodeGenerator::EnsureSpaceForLazyDeopt() { |
2235 is_handler_entry_point = true; | 2242 is_handler_entry_point = true; |
2236 DoEnsureSpaceForLazyDeopt(info(), masm(), last_lazy_deopt_pc_); | 2243 DoEnsureSpaceForLazyDeopt(info(), masm(), last_lazy_deopt_pc_); |
2237 } | 2244 } |
2238 | 2245 |
2239 #undef __ | 2246 #undef __ |
2240 | 2247 |
2241 } // namespace compiler | 2248 } // namespace compiler |
2242 } // namespace internal | 2249 } // namespace internal |
2243 } // namespace v8 | 2250 } // namespace v8 |
OLD | NEW |